chore(kb): add article about kubeconform

This commit is contained in:
Michele Cereda
2024-04-12 20:17:28 +02:00
parent 0ac76f5bf9
commit 562d7f789c
3 changed files with 81 additions and 6 deletions

View File

@@ -146,6 +146,7 @@
"kivi", "kivi",
"knockd", "knockd",
"kubeconfig", "kubeconfig",
"kubeconform",
"kubectx", "kubectx",
"kubelet", "kubelet",
"kubens", "kubens",

View File

@@ -0,0 +1,60 @@
# Kubeconform
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
<details>
<summary>Installation</summary>
```sh
brew install 'kubeconform'
```
</details>
<details>
<summary>Usage</summary>
```sh
kubeconform 'manifest.yaml'
kubeconform -verbose -skip 'AWX' -summary 'manifest.yaml'
kubeconform … -n $(nproc) \
-schema-location 'default' \
-schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
'manifest.yaml'
```
</details>
<!-- Uncomment if needed
<details>
<summary>Real world use cases</summary>
</details>
-->
## Further readings
- [Github]
- [`kubeconform-helm`][kubeconform-helm]
### Sources
- [`kubeval`][kubeval]
<!--
References
-->
<!-- In-article sections -->
<!-- Knowledge base -->
[kubeval]: kubeval.md
<!-- Files -->
<!-- Upstream -->
[github]: https://github.com/yannh/kubeconform
<!-- Others -->
[kubeconform-helm]: https://github.com/jtyr/kubeconform-helm

View File

@@ -1,5 +1,20 @@
# Kubeval # Kubeval
<div class="alert" style="
background-color: rgba(255,0,0,0.0625);
border: solid tomato; /* #FF6347 */
margin: 1em 0;
padding: 1em 1em 0;
">
<header style="
font-weight: bold;
margin-bottom: 0.5em;
">Deprecated</header>
Check out [`kubeconform`][kubeconform] or other tools.
</div>
Validates one or more Kubernetes configuration files. Validates one or more Kubernetes configuration files.
## Table of contents <!-- omit in toc --> ## Table of contents <!-- omit in toc -->
@@ -7,7 +22,7 @@ Validates one or more Kubernetes configuration files.
1. [TL;DR](#tldr) 1. [TL;DR](#tldr)
1. [Usage](#usage) 1. [Usage](#usage)
1. [Further readings](#further-readings) 1. [Further readings](#further-readings)
1. [Sources](#sources) 1. [Sources](#sources)
## TL;DR ## TL;DR
@@ -36,10 +51,10 @@ Validation failed
- [Website] - [Website]
- [Github] - [Github]
- [Kubernetes]
- [`kubeconform`][kubeconform]
## Sources ### Sources
All the references in the [further readings] section, plus the following:
- [Validating kubernetes YAML files with kubeval] - [Validating kubernetes YAML files with kubeval]
@@ -52,9 +67,8 @@ All the references in the [further readings] section, plus the following:
[website]: https://www.kubeval.com [website]: https://www.kubeval.com
<!-- In-article sections --> <!-- In-article sections -->
[further readings]: #further-readings
<!-- Knowledge base --> <!-- Knowledge base -->
[kubeconform]: kubeconform.md
[kubernetes]: README.md [kubernetes]: README.md
<!-- Others --> <!-- Others -->