pluhin / sa.it-academy.by

34 stars 261 forks source link

kubeconform mix resources, missing scheme for ArgoCD #2761

Open pluhin opened 1 month ago

pluhin commented 1 month ago
user@sa2-demo:~/15.K8s.ArgoCD$ kubeconform --summary -schema-location https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json -schema-location https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/gitrepository-source-v1.json flux-system/gotk-sync.yaml
flux-system/gotk-sync.yaml - Kustomization flux-monitoring is invalid: problem validating schema. Check JSON formatting: jsonschema: '/spec' does not validate with https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json#/properties/spec/required: missing properties: 'interval'
flux-system/gotk-sync.yaml - GitRepository flux-system is invalid: problem validating schema. Check JSON formatting: jsonschema: '/spec' does not validate with https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json#/properties/spec/required: missing properties: 'prune', 'sourceRef'
Summary: 3 resources found in 1 file - Valid: 1, Invalid: 2, Errors: 0, Skipped: 0
pluhin commented 1 month ago

missing:

pluhin commented 1 month ago
kubeconform --summary -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' -schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}-standalone{{.StrictSuffix}}/{{.ResourceKind}}{{.KindSuffix}}.json' flux-system/

https://github.com/yannh/kubeconform

pluhin commented 1 month ago

Aggregator for all schemas, exclude CRDs

kubeconform --summary \
-schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}-standalone{{.StrictSuffix}}/{{.ResourceKind}}{{.KindSuffix}}.json' \
-schema-location https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/{{.ResourceKind}}-{{.KindSuffix}}.json \
./folder