mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-21 19:19:52 +00:00
Update website
This commit is contained in:
parent
2b3139b1db
commit
d10c9bde67
24 changed files with 235 additions and 129 deletions
|
|
@ -17,27 +17,29 @@
|
|||
</div>
|
||||
<div id="content"><ul id="menu">
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/overview/">Overview</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/installation/">Installation</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage/">Usage</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/crd-support/">Custom Resources support</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">OpenAPI to JSON Schema conversion</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/">Github Action</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/">Kubeconform as a Go module</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">Conversion of CRD to JSON Schema</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="prev">< Github Action</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="prev">< Usage</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="next">Usage ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/" id="next">OpenAPI to JSON Schema conversion ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -84,11 +86,11 @@ Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0 Skipped: 0
|
|||
</div>
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="prev">< Github Action</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="prev">< Usage</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="next">Usage ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/" id="next">OpenAPI to JSON Schema conversion ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,17 @@
|
|||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Fri, 02 Jul 2021 00:00:00 +0000</lastBuildDate><atom:link href="http://kubeconform.mandragor.org/docs/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Overview</title>
|
||||
<link>http://kubeconform.mandragor.org/docs/overview/</link>
|
||||
<pubDate>Fri, 02 Jul 2021 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>http://kubeconform.mandragor.org/docs/overview/</guid>
|
||||
<description>Kubeconform is a Kubernetes manifests validation tool. Build it into your CI to validate your Kubernetes configuration!
|
||||
It is inspired by, contains code from and is designed to stay close to Kubeval, but with the following improvements:
|
||||
high performance: will validate &amp; download manifests over multiple routines, caching downloaded files in memory configurable list of remote, or local schemas locations, enabling validating Kubernetes custom resources (CRDs) and offline validation capabilities uses by default a self-updating fork of the schemas registry maintained by the kubernetes-json-schema project - which guarantees up-to-date schemas for all recent versions of Kubernetes.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Installation</title>
|
||||
<link>http://kubeconform.mandragor.org/docs/installation/</link>
|
||||
|
|
@ -16,8 +27,7 @@
|
|||
<description>Linux Download the latest release from our release page.
|
||||
For example, for Linux on x86_64 architecture:
|
||||
curl -L https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xvzf - && \ sudo mv kubeconform /usr/local/bin/ MacOs Kubeconform is available to install using Homebrew: $ brew install kubeconform
|
||||
Windows Download the latest release from our release page.
|
||||
You can also download the latest version from the release page.</description>
|
||||
Windows Download the latest release from our release page.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
@ -39,6 +49,16 @@ You can also download the latest version from the release page.</description>
|
|||
If the -schema-location value does not end with &lsquo;.json&rsquo;, Kubeconform will assume filenames / a file structure identical to that of kubernetesjsonschema.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>OpenAPI to JSON Schema conversion</title>
|
||||
<link>http://kubeconform.mandragor.org/docs/json-schema-conversion/</link>
|
||||
<pubDate>Fri, 02 Jul 2021 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>http://kubeconform.mandragor.org/docs/json-schema-conversion/</guid>
|
||||
<description>Kubeconform uses JSON schemas to validate Kubernetes resources. For custom resources, the CustomResourceDefinition first needs to be converted to JSON Schema. A script is provided to convert these CustomResourceDefinitions to JSON schema. Here is an example how to use it:
|
||||
#!/bin/bash $ ./scripts/openapi2jsonschema.py https://raw.githubusercontent.com/aws/amazon-sagemaker-operator-for-k8s/master/config/crd/bases/sagemaker.aws.amazon.com_trainingjobs.yaml JSON schema written to trainingjob_v1.json The FILENAME_FORMAT environment variable can be used to change the output file name (Available variables: kind, group, version) (Default: {kind}_{version}).</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Github Action</title>
|
||||
<link>http://kubeconform.mandragor.org/docs/usage-as-github-action/</link>
|
||||
|
|
@ -60,15 +80,5 @@ Kubeconform contains a package that can be used as a library. An example of usag
|
|||
Additional documentation on pkg.go.dev</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Conversion of CRD to JSON Schema</title>
|
||||
<link>http://kubeconform.mandragor.org/docs/json-schema-conversion/</link>
|
||||
<pubDate>Fri, 02 Jul 2021 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>http://kubeconform.mandragor.org/docs/json-schema-conversion/</guid>
|
||||
<description>Kubeconform uses JSON schemas to validate Kubernetes resources. For custom resources, the CustomResourceDefinition first needs to be converted to JSON Schema. A script is provided to convert these CustomResourceDefinitions to JSON schema. Here is an example how to use it:
|
||||
#!/bin/bash $ ./scripts/openapi2jsonschema.py https://raw.githubusercontent.com/aws/amazon-sagemaker-operator-for-k8s/master/config/crd/bases/sagemaker.aws.amazon.com_trainingjobs.yaml JSON schema written to trainingjob_v1.json The FILENAME_FORMAT environment variable can be used to change the output file name (Available variables: kind, group, version) (Default: {kind}_{version}).</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
|||
|
|
@ -17,25 +17,29 @@
|
|||
</div>
|
||||
<div id="content"><ul id="menu">
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/overview/">Overview</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/installation/">Installation</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage/">Usage</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/crd-support/">Custom Resources support</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">OpenAPI to JSON Schema conversion</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/">Github Action</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/">Kubeconform as a Go module</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">Conversion of CRD to JSON Schema</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/overview/" id="prev">< Overview</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="prev">< Usage</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="next">Usage ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -55,14 +59,15 @@ sudo mv kubeconform /usr/local/bin/
|
|||
</code></pre></p>
|
||||
<h2 id="windows">Windows</h2>
|
||||
<p>Download the latest release from our <a href="https://github.com/yannh/kubeconform/releases">release page</a>.</p>
|
||||
<p>You can also download the latest version from the <a href="https://github.com/yannh/kubeconform/releases">release page</a>.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/overview/" id="prev">< Overview</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="prev">< Usage</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage/" id="next">Usage ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="author" content="Yann Hamon">
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css"><link rel="stylesheet" type="text/css" href="/css/prism.css">
|
||||
<title>Kubeconform - Fast Kubernetes manifests validation! | Conversion of CRD to JSON Schema</title>
|
||||
<title>Kubeconform - Fast Kubernetes manifests validation! | OpenAPI to JSON Schema conversion</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main-container"><div id="header">
|
||||
|
|
@ -17,30 +17,34 @@
|
|||
</div>
|
||||
<div id="content"><ul id="menu">
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/overview/">Overview</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/installation/">Installation</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage/">Usage</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/crd-support/">Custom Resources support</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">OpenAPI to JSON Schema conversion</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/">Github Action</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/">Kubeconform as a Go module</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">Conversion of CRD to JSON Schema</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="prev">< Custom Resources support</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/" id="next">Kubeconform as a Go module ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="next">Github Action ></a>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content-text">
|
||||
<h1>Conversion of CRD to JSON Schema</h1>
|
||||
<h1>OpenAPI to JSON Schema conversion</h1>
|
||||
<p>Kubeconform uses JSON schemas to validate Kubernetes resources. For custom resources, the CustomResourceDefinition
|
||||
first needs to be converted to JSON Schema. A script is provided to convert these CustomResourceDefinitions
|
||||
to JSON schema. Here is an example how to use it:</p>
|
||||
|
|
@ -60,9 +64,11 @@ JSON schema written to trainingjob-sagemaker-v1.json
|
|||
</div>
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="prev">< Custom Resources support</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/" id="next">Kubeconform as a Go module ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="next">Github Action ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,27 +17,29 @@
|
|||
</div>
|
||||
<div id="content"><ul id="menu">
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/overview/">Overview</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/installation/">Installation</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage/">Usage</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/crd-support/">Custom Resources support</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">OpenAPI to JSON Schema conversion</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/">Github Action</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/">Kubeconform as a Go module</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">Conversion of CRD to JSON Schema</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/" id="prev">< Kubeconform as a Go module</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/" id="prev">< OpenAPI to JSON Schema conversion</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="next">Custom Resources support ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/" id="next">Kubeconform as a Go module ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -69,11 +71,11 @@ case, I might publish the Docker image to a different platform.</p>
|
|||
</div>
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/" id="prev">< Kubeconform as a Go module</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/" id="prev">< OpenAPI to JSON Schema conversion</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="next">Custom Resources support ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/" id="next">Kubeconform as a Go module ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,27 +17,29 @@
|
|||
</div>
|
||||
<div id="content"><ul id="menu">
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/overview/">Overview</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/installation/">Installation</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage/">Usage</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/crd-support/">Custom Resources support</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">OpenAPI to JSON Schema conversion</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/">Github Action</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/">Kubeconform as a Go module</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">Conversion of CRD to JSON Schema</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="prev">< Custom Resources support</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/installation/" id="prev">< Installation</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/installation/" id="next">Installation ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="next">Custom Resources support ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -125,11 +127,11 @@ Summary: 65 resources found in 34 files - Valid: 55, Invalid: 2, Errors: 8 Skipp
|
|||
</div>
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="prev">< Custom Resources support</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/installation/" id="prev">< Installation</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/installation/" id="next">Installation ></a>
|
||||
<a href="http://kubeconform.mandragor.org/docs/crd-support/" id="next">Custom Resources support ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,27 +17,27 @@
|
|||
</div>
|
||||
<div id="content"><ul id="menu">
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/overview/">Overview</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/installation/">Installation</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage/">Usage</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/crd-support/">Custom Resources support</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">OpenAPI to JSON Schema conversion</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/">Github Action</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/using-as-a-go-module/">Kubeconform as a Go module</a></li>
|
||||
|
||||
<li><a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/">Conversion of CRD to JSON Schema</a></li>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="prev">< Github Action</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/" id="prev">< Conversion of CRD to JSON Schema</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="next">Github Action ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -51,11 +51,9 @@ An example of usage can be found in <a href="https://github.com/yannh/kubeconfor
|
|||
</div>
|
||||
|
||||
<div class="navig">
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="prev">< Github Action</a>
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/json-schema-conversion/" id="prev">< Conversion of CRD to JSON Schema</a>
|
||||
|
||||
|
||||
<a href="http://kubeconform.mandragor.org/docs/usage-as-github-action/" id="next">Github Action ></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue