JSON schemas for the CRDs installed in the homelab cluster, for kubeconform.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
renovate[bot] 3f9462f41d
fix(deps): update pyyaml ( 6.0.3 → 6.0.4 ) (#17)
| datasource | package | from  | to    |
| ---------- | ------- | ----- | ----- |
| pypi       | pyyaml  | 6.0.3 | 6.0.4 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-27 05:33:30 +03:00
.github/workflows ci(github-action)!: Update actions/checkout action ( v4.4.0 → v7.0.1 ) (#12) 2026-11-20 12:51:16 +03:00
acme.cert-manager.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
argoproj.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
cert-manager.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
external-secrets.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
externaldns.k8s.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
gateway.networking.k8s.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
generators.external-secrets.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
helm.cattle.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
hub.traefik.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
k3s.cattle.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
longhorn.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
nfd.k8s-sigs.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
policy.cert-manager.io Add missing cluster CRD groups (#15) 2026-11-25 20:50:06 +03:00
postgres-operator.crunchydata.com Add missing cluster CRD groups (#15) 2026-11-25 20:50:06 +03:00
snapshot.storage.k8s.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
traefik.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
trust.cert-manager.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
upgrade.cattle.io Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
Utilities Preserve the catalog on refresh publication failure (#16) 2026-11-26 18:17:04 +03:00
.gitignore Add missing cluster CRD groups (#15) 2026-11-25 20:50:06 +03:00
LICENSE Catalog CRD schemas exported from the homelab cluster 2026-11-09 10:56:58 +03:00
README.md Preserve the catalog on refresh publication failure (#16) 2026-11-26 18:17:04 +03:00
renovate.json chore(deps): add renovate.json 2026-11-09 11:55:05 +03:00
requirements.txt fix(deps): update pyyaml ( 6.0.3 → 6.0.4 ) (#17) 2026-11-27 05:33:30 +03:00

CRDs-catalog

JSON schemas for the CustomResourceDefinitions installed in the homelab cluster, laid out for kubeconform:

<group>/<lowercase-kind>_<lowercase-version>.json

Only CRDs that run in the cluster live here. Homelab CI lists this catalog before datreeio/CRDs-catalog, so a schema missing here falls back to upstream:

kubeconform \
  -schema-location default \
  -schema-location 'https://raw.githubusercontent.com/zekihan/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
  -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
  manifests.yaml

Refresh

python3 -m venv .venv
.venv/bin/pip install --require-hashes --only-binary=:all: -r requirements.txt
.venv/bin/python Utilities/refresh.py --context cluster-1
git diff --stat
.venv/bin/python -m unittest discover -s Utilities/tests

refresh.py exports served CRD versions and replaces every non-hidden top-level directory whose name contains a dot, so removed CRDs disappear too. Do not keep unrelated files in those directories. --input crds.json reads a saved kubectl get crds -o json instead of contacting the cluster; it still replaces the catalog directories. An empty snapshot, a missing schema, or a duplicate output name stops the export before publication. Publication stages replacements on the catalog filesystem and keeps the old directories until the switch succeeds. If a switch fails, it restores the old directories. If restoration is incomplete, the error gives the path to the retained workspace for recovery.

Utilities/openapi2jsonschema.py comes from kubeconform through datreeio/CRDs-catalog, with a fix that only descends into subschemas, so defaults, enums and properties named properties convert correctly.