Docs on Kubeconform - Fast Kubernetes manifests validation!http://kubeconform.mandragor.org/docs/Recent content in Docs on Kubeconform - Fast Kubernetes manifests validation!Hugo -- gohugo.ioen-usFri, 02 Jul 2021 00:00:00 +0000Installationhttp://kubeconform.mandragor.org/docs/installation/Fri, 02 Jul 2021 00:00:00 +0000http://kubeconform.mandragor.org/docs/installation/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.Usagehttp://kubeconform.mandragor.org/docs/usage/Fri, 02 Jul 2021 00:00:00 +0000http://kubeconform.mandragor.org/docs/usage/$ ./bin/kubeconform -h Usage: ./bin/kubeconform [OPTION]... [FILE OR FOLDER]... -cache string cache schemas downloaded via HTTP to this folder -cpu-prof string debug - log CPU profiling to file -exit-on-error immediately stop execution when the first error is encountered -h show help information -ignore-filename-pattern value regular expression specifying paths to ignore (can be specified multiple times) -ignore-missing-schemas skip files with missing schemas instead of failing -insecure-skip-tls-verify disable verification of the server's SSL certificate.Custom Resources supporthttp://kubeconform.mandragor.org/docs/crd-support/Fri, 02 Jul 2021 00:00:00 +0000http://kubeconform.mandragor.org/docs/crd-support/When the -schema-location parameter is not used, or set to “default”, kubeconform will default to downloading schemas from https://github.com/yannh/kubernetes-json-schema. Kubeconform however supports passing one, or multiple, schemas locations - HTTP(s) URLs, or local filesystem paths, in which case it will lookup for schema definitions in each of them, in order, stopping as soon as a matching file is found. If the -schema-location value does not end with ‘.json’, Kubeconform will assume filenames / a file structure identical to that of kubernetesjsonschema.Github Actionhttp://kubeconform.mandragor.org/docs/usage-as-github-action/Fri, 02 Jul 2021 00:00:00 +0000http://kubeconform.mandragor.org/docs/usage-as-github-action/Kubeconform is publishes Docker Images to Github’s new Container Registry, ghcr.io. These images can be used directly in a Github Action, once logged in using a Github Token. name: kubeconform on: push jobs: kubeconform: runs-on: ubuntu-latest steps: - name: login to Github Packages run: echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin - uses: actions/checkout@v2 - uses: docker://ghcr.io/yannh/kubeconform:master with: entrypoint: '/kubeconform' args: "-summary -output json kubeconfigs/" Note on pricing: Kubeconform relies on Github Container Registry which is currently in Beta.Kubeconform as a Go modulehttp://kubeconform.mandragor.org/docs/using-as-a-go-module/Fri, 02 Jul 2021 00:00:00 +0000http://kubeconform.mandragor.org/docs/using-as-a-go-module/Warning: This is a work-in-progress, the interface is not yet considered stable. Feedback is encouraged. Kubeconform contains a package that can be used as a library. An example of usage can be found in examples/main.go Additional documentation on pkg.go.devConversion of CRD to JSON Schemahttp://kubeconform.mandragor.org/docs/json-schema-conversion/Fri, 02 Jul 2021 00:00:00 +0000http://kubeconform.mandragor.org/docs/json-schema-conversion/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}).