Kubeconform rules for Bazel
This repository contains basic rules for Bazel that can be used to run Kubeconform on YAML files to test schema compliance.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bjencks_rules_kubeconform",
urls = ["https://github.com/bjencks/rules_kubeconform/releases/download/v0.1/rules_kubeconform-v0.1.tar.gz"],
sha256 = "76ae8931516ea298d4d48b8edaf584dc3ecb923bfd9dc321141ff3694e3d20a9",
)
load("@bjencks_rules_kubeconform//kubeconform:deps.bzl", "kubeconform_register")
kubeconform_register()
Test compliance of a simple YAML file:
load("@bjencks_rules_kubeconform//kubeconform:kubeconform.bzl", "kubeconform_test")
kubeconform_test(
name = "my-file-test",
src = "my-file.yaml",
)
This is not an officially supported Google product