@intentius/chant-lexicon-k8s 0.124.97 → 0.124.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/apps.d.ts +0 -1
- package/dist/actions/batch.d.ts +0 -1
- package/dist/actions/core.d.ts +0 -1
- package/dist/actions/index.d.ts +0 -1
- package/dist/actions/networking.d.ts +0 -1
- package/dist/actions/rbac.d.ts +0 -1
- package/dist/api/classify.d.ts +0 -1
- package/dist/api/connect.d.ts +0 -1
- package/dist/api/fake-cluster.d.ts +0 -1
- package/dist/api/operation-surface.d.ts +0 -1
- package/dist/api/owner-chain.d.ts +0 -1
- package/dist/api/sweep-types.d.ts +0 -1
- package/dist/application-paths.d.ts +3 -0
- package/dist/application-paths.js +95 -0
- package/dist/application-set.d.ts +45 -0
- package/dist/application-set.js +303 -0
- package/dist/behaviour-kinds.d.ts +0 -1
- package/dist/cluster-secret.d.ts +35 -0
- package/dist/cluster-secret.js +55 -0
- package/dist/codegen/docs-cli.d.ts +0 -1
- package/dist/codegen/docs.d.ts +0 -1
- package/dist/codegen/generate-cli.d.ts +0 -1
- package/dist/codegen/generate-lexicon.d.ts +7 -1
- package/dist/codegen/generate-lexicon.js +2 -0
- package/dist/codegen/generate-list-map-keys.d.ts +0 -1
- package/dist/codegen/generate-operations.d.ts +0 -1
- package/dist/codegen/generate-typescript.d.ts +0 -1
- package/dist/codegen/generate.d.ts +0 -1
- package/dist/codegen/naming.d.ts +0 -1
- package/dist/codegen/package.d.ts +0 -1
- package/dist/codegen/patches.d.ts +0 -1
- package/dist/codegen/typecheck.d.ts +0 -1
- package/dist/codegen/versions.d.ts +0 -1
- package/dist/components/argo-app.d.ts +0 -1
- package/dist/components/builders.d.ts +0 -1
- package/dist/components/capability-plugin.d.ts +0 -1
- package/dist/components/flux-reconcile.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/kubectl-apply.d.ts +0 -1
- package/dist/components/kustomize-apply.d.ts +6 -1
- package/dist/components/kustomize-apply.js +1 -1
- package/dist/composites/adot-collector.d.ts +0 -1
- package/dist/composites/agic-ingress.d.ts +0 -1
- package/dist/composites/aks-external-dns-agent.d.ts +0 -1
- package/dist/composites/alb-ingress.d.ts +0 -1
- package/dist/composites/argo-app.d.ts +0 -1
- package/dist/composites/autoscaled-service.d.ts +0 -1
- package/dist/composites/azure-disk-storage-class.d.ts +0 -1
- package/dist/composites/azure-file-storage-class.d.ts +0 -1
- package/dist/composites/azure-monitor-collector.d.ts +0 -1
- package/dist/composites/batch-job.d.ts +0 -1
- package/dist/composites/catalog.d.ts +0 -1
- package/dist/composites/cockroachdb-cluster.d.ts +0 -1
- package/dist/composites/cockroachdb-region-stack.d.ts +0 -1
- package/dist/composites/config-connector-context.d.ts +0 -1
- package/dist/composites/configured-app.d.ts +0 -1
- package/dist/composites/cron-schedule.d.ts +0 -1
- package/dist/composites/cron-workload.d.ts +0 -1
- package/dist/composites/ebs-storage-class.d.ts +0 -1
- package/dist/composites/efs-storage-class.d.ts +0 -1
- package/dist/composites/external-dns-agent.d.ts +0 -1
- package/dist/composites/filestore-storage-class.d.ts +0 -1
- package/dist/composites/fluent-bit-agent.d.ts +0 -1
- package/dist/composites/flux-app.d.ts +0 -1
- package/dist/composites/gce-ingress.d.ts +0 -1
- package/dist/composites/gce-pd-storage-class.d.ts +0 -1
- package/dist/composites/gke-external-dns-agent.d.ts +0 -1
- package/dist/composites/gke-fluent-bit-agent.d.ts +0 -1
- package/dist/composites/gke-gateway.d.ts +0 -1
- package/dist/composites/gke-otel-collector.d.ts +0 -1
- package/dist/composites/index.d.ts +0 -1
- package/dist/composites/inference-service.d.ts +0 -1
- package/dist/composites/irsa-service-account.d.ts +0 -1
- package/dist/composites/member-defaults.d.ts +0 -1
- package/dist/composites/metrics-server.d.ts +0 -1
- package/dist/composites/model.d.ts +0 -1
- package/dist/composites/monitored-service.d.ts +0 -1
- package/dist/composites/namespace-env.d.ts +0 -1
- package/dist/composites/network-isolated-app.d.ts +0 -1
- package/dist/composites/node-agent.d.ts +0 -1
- package/dist/composites/operator-stack.d.ts +0 -1
- package/dist/composites/otel-collector-agent.d.ts +0 -1
- package/dist/composites/otel-collector-gateway.d.ts +0 -1
- package/dist/composites/otel-collector-node.d.ts +0 -1
- package/dist/composites/otel-collector-rbac.d.ts +0 -1
- package/dist/composites/otel-collector-shape.d.ts +0 -1
- package/dist/composites/otel-collector.d.ts +0 -1
- package/dist/composites/otel-operator-collector.d.ts +0 -1
- package/dist/composites/ray-cluster.d.ts +0 -1
- package/dist/composites/ray-job.d.ts +0 -1
- package/dist/composites/ray-service.d.ts +0 -1
- package/dist/composites/secure-ingress.d.ts +0 -1
- package/dist/composites/security-context.d.ts +0 -1
- package/dist/composites/sidecar-app.d.ts +0 -1
- package/dist/composites/stateful-app.d.ts +0 -1
- package/dist/composites/vllm-serving-runtime.d.ts +0 -1
- package/dist/composites/web-app.d.ts +0 -1
- package/dist/composites/worker-pool.d.ts +0 -1
- package/dist/composites/workload-identity-sa.d.ts +0 -1
- package/dist/composites/workload-identity-service-account.d.ts +0 -1
- package/dist/config-schema.d.ts +8 -1
- package/dist/config-schema.js +6 -2
- package/dist/config.d.ts +26 -4
- package/dist/coverage.d.ts +0 -1
- package/dist/crd/crd-sources.d.ts +0 -1
- package/dist/crd/loader.d.ts +0 -1
- package/dist/crd/oci-chart.d.ts +0 -1
- package/dist/crd/parser.d.ts +0 -1
- package/dist/crd/parser.js +3 -0
- package/dist/crd/project-codegen.d.ts +0 -1
- package/dist/crd/types.d.ts +0 -1
- package/dist/deep-observe-hooks.d.ts +0 -1
- package/dist/deep-observe.d.ts +0 -1
- package/dist/default-labels.d.ts +0 -1
- package/dist/describe-resources.d.ts +0 -1
- package/dist/describe-stack-status.d.ts +0 -1
- package/dist/detect.d.ts +0 -1
- package/dist/effect-receipt-row.d.ts +0 -1
- package/dist/export-resources.d.ts +0 -1
- package/dist/generated/index.d.ts +0 -1
- package/{src → dist}/generated/lexicon-k8s.json +1984 -155
- package/dist/generated/runtime.d.ts +0 -1
- package/dist/group-namespace.d.ts +0 -1
- package/dist/helm-references.d.ts +112 -0
- package/dist/helm-references.js +389 -0
- package/dist/import/directory.d.ts +7 -0
- package/dist/import/directory.js +103 -0
- package/dist/import/embedded.d.ts +3 -1
- package/dist/import/embedded.js +34 -0
- package/dist/import/generator.d.ts +13 -5
- package/dist/import/generator.js +43 -57
- package/dist/import/live-export.d.ts +0 -1
- package/dist/import/parser.d.ts +0 -1
- package/dist/import/parser.js +62 -6
- package/dist/import/testdata/embedded/fixtures.d.ts +0 -1
- package/dist/import/typed-classes.d.ts +76 -0
- package/dist/import/typed-classes.js +164 -0
- package/dist/include/entity.d.ts +0 -1
- package/dist/include/resolve.d.ts +0 -1
- package/dist/index-identity.d.ts +0 -1
- package/dist/index-import.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/integrity.json +44 -42
- package/dist/kube/apply.d.ts +0 -1
- package/dist/kube/connect.d.ts +0 -1
- package/dist/kube/delete.d.ts +0 -1
- package/dist/kube/describe.d.ts +0 -1
- package/dist/kube/events.d.ts +0 -1
- package/dist/kube/flags.d.ts +0 -1
- package/dist/kube/get.d.ts +0 -1
- package/dist/kube/group.d.ts +0 -1
- package/dist/kube/logs.d.ts +0 -1
- package/dist/kube/project.d.ts +0 -1
- package/dist/kube/render.d.ts +0 -1
- package/dist/kube/source.d.ts +0 -1
- package/dist/kube/target.d.ts +0 -1
- package/dist/kube/testing.d.ts +0 -1
- package/dist/kube/top.d.ts +0 -1
- package/dist/kube/verdict.d.ts +0 -1
- package/dist/kube/wait.d.ts +0 -1
- package/dist/kustomize/render.d.ts +41 -3
- package/dist/kustomize/render.js +114 -7
- package/dist/kustomize/rendered-entity.d.ts +0 -1
- package/dist/kustomize/root.d.ts +3 -4
- package/dist/kustomize/root.js +6 -1
- package/dist/lint/audit-catalog.d.ts +0 -1
- package/dist/lint/audit-catalog.js +1 -0
- package/dist/lint/audit-lineage.d.ts +0 -1
- package/dist/lint/post-synth/argo-helpers.d.ts +3 -1
- package/dist/lint/post-synth/argo-helpers.js +8 -2
- package/dist/lint/post-synth/argo002.d.ts +0 -1
- package/dist/lint/post-synth/argo002.js +2 -1
- package/dist/lint/post-synth/argo003.d.ts +0 -1
- package/dist/lint/post-synth/argo003.js +2 -1
- package/dist/lint/post-synth/argo005.d.ts +0 -1
- package/dist/lint/post-synth/argo005.js +36 -9
- package/dist/lint/post-synth/crd-schema-helpers.d.ts +1 -2
- package/dist/lint/post-synth/crd-schema-helpers.js +3 -3
- package/dist/lint/post-synth/flux002.d.ts +0 -1
- package/dist/lint/post-synth/flux002.js +2 -1
- package/dist/lint/post-synth/flux003.d.ts +0 -1
- package/dist/lint/post-synth/flux003.js +2 -1
- package/dist/lint/post-synth/index.d.ts +0 -1
- package/dist/lint/post-synth/index.js +2 -0
- package/dist/lint/post-synth/k8s-helpers.d.ts +32 -1
- package/dist/lint/post-synth/k8s-helpers.js +57 -10
- package/dist/lint/post-synth/monitoring-selection-helpers.d.ts +0 -1
- package/dist/lint/post-synth/otel-placement-helpers.d.ts +0 -1
- package/dist/lint/post-synth/sops-helpers.d.ts +0 -1
- package/dist/lint/post-synth/top-level-fields-helpers.d.ts +16 -0
- package/dist/lint/post-synth/top-level-fields-helpers.js +45 -0
- package/dist/lint/post-synth/wk8005.d.ts +9 -1
- package/dist/lint/post-synth/wk8005.js +53 -3
- package/dist/lint/post-synth/wk8006.d.ts +0 -1
- package/dist/lint/post-synth/wk8006.js +4 -2
- package/dist/lint/post-synth/wk8041.d.ts +0 -1
- package/dist/lint/post-synth/wk8041.js +3 -2
- package/dist/lint/post-synth/wk8042.d.ts +0 -1
- package/dist/lint/post-synth/wk8042.js +2 -2
- package/dist/lint/post-synth/wk8101.d.ts +0 -1
- package/dist/lint/post-synth/wk8101.js +2 -2
- package/dist/lint/post-synth/wk8102.d.ts +0 -1
- package/dist/lint/post-synth/wk8102.js +7 -3
- package/dist/lint/post-synth/wk8103.d.ts +0 -1
- package/dist/lint/post-synth/wk8103.js +3 -2
- package/dist/lint/post-synth/wk8104.d.ts +0 -1
- package/dist/lint/post-synth/wk8104.js +3 -2
- package/dist/lint/post-synth/wk8105.d.ts +0 -1
- package/dist/lint/post-synth/wk8105.js +3 -2
- package/dist/lint/post-synth/wk8201.d.ts +0 -1
- package/dist/lint/post-synth/wk8201.js +3 -2
- package/dist/lint/post-synth/wk8202.d.ts +0 -1
- package/dist/lint/post-synth/wk8202.js +3 -2
- package/dist/lint/post-synth/wk8203.d.ts +0 -1
- package/dist/lint/post-synth/wk8203.js +3 -2
- package/dist/lint/post-synth/wk8204.d.ts +0 -1
- package/dist/lint/post-synth/wk8204.js +5 -2
- package/dist/lint/post-synth/wk8205.d.ts +0 -1
- package/dist/lint/post-synth/wk8205.js +3 -2
- package/dist/lint/post-synth/wk8207.d.ts +0 -1
- package/dist/lint/post-synth/wk8207.js +2 -2
- package/dist/lint/post-synth/wk8208.d.ts +0 -1
- package/dist/lint/post-synth/wk8208.js +2 -2
- package/dist/lint/post-synth/wk8209.d.ts +0 -1
- package/dist/lint/post-synth/wk8209.js +2 -2
- package/dist/lint/post-synth/wk8301.d.ts +0 -1
- package/dist/lint/post-synth/wk8301.js +3 -2
- package/dist/lint/post-synth/wk8302.d.ts +0 -1
- package/dist/lint/post-synth/wk8302.js +2 -2
- package/dist/lint/post-synth/wk8303.d.ts +0 -1
- package/dist/lint/post-synth/wk8303.js +2 -2
- package/dist/lint/post-synth/wk8304.d.ts +0 -1
- package/dist/lint/post-synth/wk8304.js +2 -2
- package/dist/lint/post-synth/wk8305.d.ts +0 -1
- package/dist/lint/post-synth/wk8305.js +2 -2
- package/dist/lint/post-synth/wk8306.d.ts +0 -1
- package/dist/lint/post-synth/wk8306.js +3 -2
- package/dist/lint/post-synth/wk8401.d.ts +0 -1
- package/dist/lint/post-synth/wk8401.js +2 -2
- package/dist/lint/post-synth/wk8402.d.ts +0 -1
- package/dist/lint/post-synth/wk8402.js +2 -2
- package/dist/lint/post-synth/wk8403.d.ts +0 -1
- package/dist/lint/post-synth/wk8403.js +2 -2
- package/dist/lint/post-synth/wk8404.d.ts +0 -1
- package/dist/lint/post-synth/wk8404.js +2 -2
- package/dist/lint/post-synth/wk8405.d.ts +0 -1
- package/dist/lint/post-synth/wk8405.js +2 -2
- package/dist/lint/post-synth/wk8406.d.ts +0 -1
- package/dist/lint/post-synth/wk8406.js +3 -2
- package/dist/lint/post-synth/wk8407.d.ts +0 -1
- package/dist/lint/post-synth/wk8407.js +2 -2
- package/dist/lint/post-synth/wk8501.d.ts +0 -1
- package/dist/lint/post-synth/wk8502.d.ts +0 -1
- package/dist/lint/post-synth/wk8503.d.ts +0 -1
- package/dist/lint/post-synth/wk8503.js +2 -2
- package/dist/lint/post-synth/wk8504.d.ts +0 -1
- package/dist/lint/post-synth/wk8505.d.ts +0 -1
- package/dist/lint/post-synth/wk8506.d.ts +14 -0
- package/dist/lint/post-synth/wk8506.js +38 -0
- package/dist/lint/post-synth/wk8601.d.ts +0 -1
- package/dist/lint/post-synth/wk8602.d.ts +0 -1
- package/dist/lint/post-synth/wk8603.d.ts +0 -1
- package/dist/lint/post-synth/wk8604.d.ts +0 -1
- package/dist/lint/post-synth/wk8605.d.ts +0 -1
- package/dist/lint/post-synth/wk8606.d.ts +0 -1
- package/dist/lint/post-synth/wk8701.d.ts +0 -1
- package/dist/lint/post-synth/wk8702.d.ts +0 -1
- package/dist/lint/post-synth/wk8703.d.ts +0 -1
- package/dist/lint/post-synth/wk8704.d.ts +0 -1
- package/dist/lint/post-synth/wk8705.d.ts +0 -1
- package/dist/lint/rules/argo-appset-single-project.d.ts +0 -1
- package/dist/lint/rules/argo-ast.d.ts +0 -1
- package/dist/lint/rules/argo-automated-prune.d.ts +0 -1
- package/dist/lint/rules/flux-source-ref-pin.d.ts +0 -1
- package/dist/lint/rules/hardcoded-namespace.d.ts +0 -1
- package/dist/lint/rules/latest-image-tag.d.ts +0 -1
- package/dist/lint/rules/missing-resource-limits.d.ts +0 -1
- package/dist/listed-types.d.ts +0 -1
- package/dist/lsp/completions.d.ts +0 -1
- package/dist/lsp/hover.d.ts +0 -1
- package/dist/manifest-entity.d.ts +0 -1
- package/dist/manifest-files.d.ts +16 -0
- package/dist/manifest-files.js +24 -0
- package/dist/manifest.json +1 -1
- package/dist/meta.json +1984 -155
- package/dist/micro-time.d.ts +0 -1
- package/dist/okf/index.md +1 -0
- package/dist/okf/rules/WK8506.md +11 -0
- package/dist/op/activities/apply-diff.d.ts +0 -1
- package/dist/op/activities/argo.d.ts +0 -1
- package/dist/op/activities/ensure-secret.d.ts +0 -1
- package/dist/op/activities/index.d.ts +0 -1
- package/dist/op/activities/kubectl.d.ts +0 -1
- package/dist/op/activities/wait-for-ready.d.ts +0 -1
- package/dist/op/builders.d.ts +0 -1
- package/dist/package-cli.d.ts +0 -1
- package/dist/patch/json-patch.d.ts +0 -1
- package/dist/patch/rendered-patch.d.ts +0 -1
- package/dist/plugin.d.ts +0 -1
- package/dist/plugin.js +2 -0
- package/dist/project-kinds.d.ts +0 -1
- package/dist/receipt-store.d.ts +0 -1
- package/dist/reference-catalog.d.ts +3 -2
- package/dist/reference-catalog.js +283 -15
- package/dist/rules/argo-helpers.ts +9 -2
- package/dist/rules/argo002.ts +2 -1
- package/dist/rules/argo003.ts +2 -1
- package/dist/rules/argo005.ts +36 -10
- package/dist/rules/crd-schema-helpers.ts +3 -3
- package/dist/rules/flux002.ts +2 -1
- package/dist/rules/flux003.ts +2 -1
- package/dist/rules/k8s-helpers.ts +56 -11
- package/dist/rules/top-level-fields-helpers.ts +54 -0
- package/dist/rules/wk8005.ts +56 -3
- package/dist/rules/wk8006.ts +4 -2
- package/dist/rules/wk8041.ts +3 -2
- package/dist/rules/wk8042.ts +2 -2
- package/dist/rules/wk8101.ts +2 -2
- package/dist/rules/wk8102.ts +7 -3
- package/dist/rules/wk8103.ts +3 -2
- package/dist/rules/wk8104.ts +3 -2
- package/dist/rules/wk8105.ts +3 -2
- package/dist/rules/wk8201.ts +3 -2
- package/dist/rules/wk8202.ts +3 -2
- package/dist/rules/wk8203.ts +3 -2
- package/dist/rules/wk8204.ts +5 -2
- package/dist/rules/wk8205.ts +3 -2
- package/dist/rules/wk8207.ts +2 -2
- package/dist/rules/wk8208.ts +2 -2
- package/dist/rules/wk8209.ts +2 -2
- package/dist/rules/wk8301.ts +3 -2
- package/dist/rules/wk8302.ts +2 -2
- package/dist/rules/wk8303.ts +2 -2
- package/dist/rules/wk8304.ts +2 -2
- package/dist/rules/wk8305.ts +2 -2
- package/dist/rules/wk8306.ts +3 -2
- package/dist/rules/wk8401.ts +2 -2
- package/dist/rules/wk8402.ts +2 -2
- package/dist/rules/wk8403.ts +2 -2
- package/dist/rules/wk8404.ts +2 -1
- package/dist/rules/wk8405.ts +2 -2
- package/dist/rules/wk8406.ts +3 -2
- package/dist/rules/wk8407.ts +2 -2
- package/dist/rules/wk8503.ts +2 -2
- package/dist/rules/wk8506.ts +43 -0
- package/dist/secret-labels.d.ts +0 -1
- package/dist/secret-store.d.ts +0 -1
- package/dist/serializer.d.ts +0 -1
- package/dist/sops/encrypted-secret-file.d.ts +0 -1
- package/dist/sops/entity.d.ts +0 -1
- package/dist/spec/fetch.d.ts +0 -1
- package/dist/spec/parse.d.ts +6 -1
- package/dist/spec/parse.js +1 -0
- package/dist/subscribe-changes.d.ts +0 -1
- package/dist/teardown.d.ts +0 -1
- package/dist/telemetry-release.d.ts +0 -1
- package/dist/top-level-fields.d.ts +24 -0
- package/dist/top-level-fields.js +35 -0
- package/dist/validate-cli.d.ts +0 -1
- package/dist/validate.d.ts +0 -1
- package/dist/variables.d.ts +0 -1
- package/dist/whoami.d.ts +0 -1
- package/dist/workspace-member.d.ts +15 -4
- package/dist/workspace-member.js +143 -21
- package/package.json +6 -7
- package/workspace-kinds.json +45 -6
- package/dist/actions/apps.d.ts.map +0 -1
- package/dist/actions/batch.d.ts.map +0 -1
- package/dist/actions/core.d.ts.map +0 -1
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/networking.d.ts.map +0 -1
- package/dist/actions/rbac.d.ts.map +0 -1
- package/dist/api/classify.d.ts.map +0 -1
- package/dist/api/connect.d.ts.map +0 -1
- package/dist/api/fake-cluster.d.ts.map +0 -1
- package/dist/api/operation-surface.d.ts.map +0 -1
- package/dist/api/owner-chain.d.ts.map +0 -1
- package/dist/api/sweep-types.d.ts.map +0 -1
- package/dist/behaviour-kinds.d.ts.map +0 -1
- package/dist/codegen/docs-cli.d.ts.map +0 -1
- package/dist/codegen/docs.d.ts.map +0 -1
- package/dist/codegen/generate-cli.d.ts.map +0 -1
- package/dist/codegen/generate-lexicon.d.ts.map +0 -1
- package/dist/codegen/generate-list-map-keys.d.ts.map +0 -1
- package/dist/codegen/generate-operations.d.ts.map +0 -1
- package/dist/codegen/generate-typescript.d.ts.map +0 -1
- package/dist/codegen/generate.d.ts.map +0 -1
- package/dist/codegen/naming.d.ts.map +0 -1
- package/dist/codegen/package.d.ts.map +0 -1
- package/dist/codegen/patches.d.ts.map +0 -1
- package/dist/codegen/typecheck.d.ts.map +0 -1
- package/dist/codegen/versions.d.ts.map +0 -1
- package/dist/components/argo-app.d.ts.map +0 -1
- package/dist/components/builders.d.ts.map +0 -1
- package/dist/components/capability-plugin.d.ts.map +0 -1
- package/dist/components/flux-reconcile.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/kubectl-apply.d.ts.map +0 -1
- package/dist/components/kustomize-apply.d.ts.map +0 -1
- package/dist/composites/adot-collector.d.ts.map +0 -1
- package/dist/composites/agic-ingress.d.ts.map +0 -1
- package/dist/composites/aks-external-dns-agent.d.ts.map +0 -1
- package/dist/composites/alb-ingress.d.ts.map +0 -1
- package/dist/composites/argo-app.d.ts.map +0 -1
- package/dist/composites/autoscaled-service.d.ts.map +0 -1
- package/dist/composites/azure-disk-storage-class.d.ts.map +0 -1
- package/dist/composites/azure-file-storage-class.d.ts.map +0 -1
- package/dist/composites/azure-monitor-collector.d.ts.map +0 -1
- package/dist/composites/batch-job.d.ts.map +0 -1
- package/dist/composites/catalog.d.ts.map +0 -1
- package/dist/composites/cockroachdb-cluster.d.ts.map +0 -1
- package/dist/composites/cockroachdb-region-stack.d.ts.map +0 -1
- package/dist/composites/config-connector-context.d.ts.map +0 -1
- package/dist/composites/configured-app.d.ts.map +0 -1
- package/dist/composites/cron-schedule.d.ts.map +0 -1
- package/dist/composites/cron-workload.d.ts.map +0 -1
- package/dist/composites/ebs-storage-class.d.ts.map +0 -1
- package/dist/composites/efs-storage-class.d.ts.map +0 -1
- package/dist/composites/external-dns-agent.d.ts.map +0 -1
- package/dist/composites/filestore-storage-class.d.ts.map +0 -1
- package/dist/composites/fluent-bit-agent.d.ts.map +0 -1
- package/dist/composites/flux-app.d.ts.map +0 -1
- package/dist/composites/gce-ingress.d.ts.map +0 -1
- package/dist/composites/gce-pd-storage-class.d.ts.map +0 -1
- package/dist/composites/gke-external-dns-agent.d.ts.map +0 -1
- package/dist/composites/gke-fluent-bit-agent.d.ts.map +0 -1
- package/dist/composites/gke-gateway.d.ts.map +0 -1
- package/dist/composites/gke-otel-collector.d.ts.map +0 -1
- package/dist/composites/index.d.ts.map +0 -1
- package/dist/composites/inference-service.d.ts.map +0 -1
- package/dist/composites/irsa-service-account.d.ts.map +0 -1
- package/dist/composites/member-defaults.d.ts.map +0 -1
- package/dist/composites/metrics-server.d.ts.map +0 -1
- package/dist/composites/model.d.ts.map +0 -1
- package/dist/composites/monitored-service.d.ts.map +0 -1
- package/dist/composites/namespace-env.d.ts.map +0 -1
- package/dist/composites/network-isolated-app.d.ts.map +0 -1
- package/dist/composites/node-agent.d.ts.map +0 -1
- package/dist/composites/operator-stack.d.ts.map +0 -1
- package/dist/composites/otel-collector-agent.d.ts.map +0 -1
- package/dist/composites/otel-collector-gateway.d.ts.map +0 -1
- package/dist/composites/otel-collector-node.d.ts.map +0 -1
- package/dist/composites/otel-collector-rbac.d.ts.map +0 -1
- package/dist/composites/otel-collector-shape.d.ts.map +0 -1
- package/dist/composites/otel-collector.d.ts.map +0 -1
- package/dist/composites/otel-operator-collector.d.ts.map +0 -1
- package/dist/composites/ray-cluster.d.ts.map +0 -1
- package/dist/composites/ray-job.d.ts.map +0 -1
- package/dist/composites/ray-service.d.ts.map +0 -1
- package/dist/composites/secure-ingress.d.ts.map +0 -1
- package/dist/composites/security-context.d.ts.map +0 -1
- package/dist/composites/sidecar-app.d.ts.map +0 -1
- package/dist/composites/stateful-app.d.ts.map +0 -1
- package/dist/composites/vllm-serving-runtime.d.ts.map +0 -1
- package/dist/composites/web-app.d.ts.map +0 -1
- package/dist/composites/worker-pool.d.ts.map +0 -1
- package/dist/composites/workload-identity-sa.d.ts.map +0 -1
- package/dist/composites/workload-identity-service-account.d.ts.map +0 -1
- package/dist/config-schema.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/coverage.d.ts.map +0 -1
- package/dist/crd/crd-sources.d.ts.map +0 -1
- package/dist/crd/loader.d.ts.map +0 -1
- package/dist/crd/oci-chart.d.ts.map +0 -1
- package/dist/crd/parser.d.ts.map +0 -1
- package/dist/crd/project-codegen.d.ts.map +0 -1
- package/dist/crd/types.d.ts.map +0 -1
- package/dist/deep-observe-hooks.d.ts.map +0 -1
- package/dist/deep-observe.d.ts.map +0 -1
- package/dist/default-labels.d.ts.map +0 -1
- package/dist/describe-resources.d.ts.map +0 -1
- package/dist/describe-stack-status.d.ts.map +0 -1
- package/dist/detect.d.ts.map +0 -1
- package/dist/effect-receipt-row.d.ts.map +0 -1
- package/dist/export-resources.d.ts.map +0 -1
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/runtime.d.ts.map +0 -1
- package/dist/group-namespace.d.ts.map +0 -1
- package/dist/import/embedded.d.ts.map +0 -1
- package/dist/import/generator.d.ts.map +0 -1
- package/dist/import/live-export.d.ts.map +0 -1
- package/dist/import/parser.d.ts.map +0 -1
- package/dist/import/testdata/embedded/fixtures.d.ts.map +0 -1
- package/dist/include/entity.d.ts.map +0 -1
- package/dist/include/resolve.d.ts.map +0 -1
- package/dist/index-identity.d.ts.map +0 -1
- package/dist/index-import.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/kube/apply.d.ts.map +0 -1
- package/dist/kube/connect.d.ts.map +0 -1
- package/dist/kube/delete.d.ts.map +0 -1
- package/dist/kube/describe.d.ts.map +0 -1
- package/dist/kube/events.d.ts.map +0 -1
- package/dist/kube/flags.d.ts.map +0 -1
- package/dist/kube/get.d.ts.map +0 -1
- package/dist/kube/group.d.ts.map +0 -1
- package/dist/kube/logs.d.ts.map +0 -1
- package/dist/kube/project.d.ts.map +0 -1
- package/dist/kube/render.d.ts.map +0 -1
- package/dist/kube/source.d.ts.map +0 -1
- package/dist/kube/target.d.ts.map +0 -1
- package/dist/kube/testing.d.ts.map +0 -1
- package/dist/kube/top.d.ts.map +0 -1
- package/dist/kube/verdict.d.ts.map +0 -1
- package/dist/kube/wait.d.ts.map +0 -1
- package/dist/kustomize/render.d.ts.map +0 -1
- package/dist/kustomize/rendered-entity.d.ts.map +0 -1
- package/dist/kustomize/root.d.ts.map +0 -1
- package/dist/lint/audit-catalog.d.ts.map +0 -1
- package/dist/lint/audit-lineage.d.ts.map +0 -1
- package/dist/lint/post-synth/argo-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/argo002.d.ts.map +0 -1
- package/dist/lint/post-synth/argo003.d.ts.map +0 -1
- package/dist/lint/post-synth/argo005.d.ts.map +0 -1
- package/dist/lint/post-synth/crd-schema-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/flux002.d.ts.map +0 -1
- package/dist/lint/post-synth/flux003.d.ts.map +0 -1
- package/dist/lint/post-synth/index.d.ts.map +0 -1
- package/dist/lint/post-synth/k8s-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/monitoring-selection-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/otel-placement-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/sops-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8005.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8006.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8041.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8042.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8101.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8102.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8103.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8104.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8105.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8201.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8202.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8203.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8204.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8205.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8207.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8208.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8209.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8301.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8302.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8303.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8304.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8305.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8306.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8401.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8402.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8403.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8404.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8405.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8406.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8407.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8501.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8502.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8503.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8504.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8505.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8601.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8602.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8603.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8604.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8605.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8606.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8701.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8702.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8703.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8704.d.ts.map +0 -1
- package/dist/lint/post-synth/wk8705.d.ts.map +0 -1
- package/dist/lint/rules/argo-appset-single-project.d.ts.map +0 -1
- package/dist/lint/rules/argo-ast.d.ts.map +0 -1
- package/dist/lint/rules/argo-automated-prune.d.ts.map +0 -1
- package/dist/lint/rules/flux-source-ref-pin.d.ts.map +0 -1
- package/dist/lint/rules/hardcoded-namespace.d.ts.map +0 -1
- package/dist/lint/rules/latest-image-tag.d.ts.map +0 -1
- package/dist/lint/rules/missing-resource-limits.d.ts.map +0 -1
- package/dist/listed-types.d.ts.map +0 -1
- package/dist/lsp/completions.d.ts.map +0 -1
- package/dist/lsp/hover.d.ts.map +0 -1
- package/dist/manifest-entity.d.ts.map +0 -1
- package/dist/micro-time.d.ts.map +0 -1
- package/dist/op/activities/apply-diff.d.ts.map +0 -1
- package/dist/op/activities/argo.d.ts.map +0 -1
- package/dist/op/activities/ensure-secret.d.ts.map +0 -1
- package/dist/op/activities/index.d.ts.map +0 -1
- package/dist/op/activities/kubectl.d.ts.map +0 -1
- package/dist/op/activities/wait-for-ready.d.ts.map +0 -1
- package/dist/op/builders.d.ts.map +0 -1
- package/dist/package-cli.d.ts.map +0 -1
- package/dist/patch/json-patch.d.ts.map +0 -1
- package/dist/patch/rendered-patch.d.ts.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/project-kinds.d.ts.map +0 -1
- package/dist/receipt-store.d.ts.map +0 -1
- package/dist/reference-catalog.d.ts.map +0 -1
- package/dist/secret-labels.d.ts.map +0 -1
- package/dist/secret-store.d.ts.map +0 -1
- package/dist/serializer.d.ts.map +0 -1
- package/dist/sops/encrypted-secret-file.d.ts.map +0 -1
- package/dist/sops/entity.d.ts.map +0 -1
- package/dist/spec/fetch.d.ts.map +0 -1
- package/dist/spec/parse.d.ts.map +0 -1
- package/dist/subscribe-changes.d.ts.map +0 -1
- package/dist/teardown.d.ts.map +0 -1
- package/dist/telemetry-release.d.ts.map +0 -1
- package/dist/validate-cli.d.ts.map +0 -1
- package/dist/validate.d.ts.map +0 -1
- package/dist/variables.d.ts.map +0 -1
- package/dist/whoami.d.ts.map +0 -1
- package/dist/workspace-member.d.ts.map +0 -1
- package/src/actions/actions.test.ts +0 -83
- package/src/actions/apps.ts +0 -23
- package/src/actions/batch.ts +0 -9
- package/src/actions/core.ts +0 -62
- package/src/actions/index.ts +0 -50
- package/src/actions/networking.ts +0 -15
- package/src/actions/rbac.ts +0 -13
- package/src/api/classify.test.ts +0 -170
- package/src/api/classify.ts +0 -154
- package/src/api/connect.ts +0 -104
- package/src/api/fake-cluster.ts +0 -231
- package/src/api/operation-surface.test.ts +0 -116
- package/src/api/operation-surface.ts +0 -130
- package/src/api/owner-chain.test.ts +0 -171
- package/src/api/owner-chain.ts +0 -144
- package/src/api/sweep-types.ts +0 -35
- package/src/behaviour-kinds.ts +0 -88
- package/src/codegen/declarations.test.ts +0 -118
- package/src/codegen/docs-cli.ts +0 -3
- package/src/codegen/docs.ts +0 -156
- package/src/codegen/generate-cli.ts +0 -41
- package/src/codegen/generate-crd-sources.test.ts +0 -49
- package/src/codegen/generate-lexicon.ts +0 -105
- package/src/codegen/generate-list-map-keys.test.ts +0 -112
- package/src/codegen/generate-list-map-keys.ts +0 -99
- package/src/codegen/generate-operations.ts +0 -56
- package/src/codegen/generate-typescript.ts +0 -162
- package/src/codegen/generate.ts +0 -231
- package/src/codegen/naming.test.ts +0 -63
- package/src/codegen/naming.ts +0 -201
- package/src/codegen/package.ts +0 -53
- package/src/codegen/patches.ts +0 -108
- package/src/codegen/snapshot.test.ts +0 -115
- package/src/codegen/typecheck.test.ts +0 -24
- package/src/codegen/typecheck.ts +0 -4
- package/src/codegen/versions.ts +0 -50
- package/src/components/argo-app.test.ts +0 -137
- package/src/components/argo-app.ts +0 -163
- package/src/components/builders.ts +0 -30
- package/src/components/capability-plugin.test.ts +0 -20
- package/src/components/capability-plugin.ts +0 -44
- package/src/components/flux-reconcile.test.ts +0 -145
- package/src/components/flux-reconcile.ts +0 -159
- package/src/components/index.ts +0 -44
- package/src/components/kubectl-apply-plan.k3d.e2e.test.ts +0 -127
- package/src/components/kubectl-apply.test.ts +0 -465
- package/src/components/kubectl-apply.ts +0 -570
- package/src/components/kustomize-apply.test.ts +0 -98
- package/src/components/kustomize-apply.ts +0 -104
- package/src/composites/__snapshots__/gke-otel-collector.snapshot.test.ts.snap +0 -335
- package/src/composites/adot-collector.ts +0 -258
- package/src/composites/agic-ingress.ts +0 -157
- package/src/composites/aks-external-dns-agent.ts +0 -211
- package/src/composites/alb-ingress.ts +0 -161
- package/src/composites/argo-app.ts +0 -381
- package/src/composites/autoscaled-service.ts +0 -293
- package/src/composites/azure-disk-storage-class.ts +0 -91
- package/src/composites/azure-file-storage-class.ts +0 -86
- package/src/composites/azure-monitor-collector.ts +0 -245
- package/src/composites/batch-job.ts +0 -230
- package/src/composites/catalog.test.ts +0 -39
- package/src/composites/catalog.ts +0 -4115
- package/src/composites/cockroachdb-cluster.ts +0 -528
- package/src/composites/cockroachdb-region-stack.ts +0 -553
- package/src/composites/composites.test.ts +0 -4291
- package/src/composites/config-connector-context.ts +0 -69
- package/src/composites/configured-app.ts +0 -231
- package/src/composites/cron-schedule.ts +0 -47
- package/src/composites/cron-workload.ts +0 -182
- package/src/composites/ebs-storage-class.ts +0 -105
- package/src/composites/efs-storage-class.ts +0 -86
- package/src/composites/external-dns-agent.ts +0 -181
- package/src/composites/filestore-storage-class.ts +0 -88
- package/src/composites/fluent-bit-agent.ts +0 -227
- package/src/composites/flux-app.ts +0 -298
- package/src/composites/gce-ingress.ts +0 -152
- package/src/composites/gce-pd-storage-class.ts +0 -94
- package/src/composites/gke-external-dns-agent.ts +0 -189
- package/src/composites/gke-fluent-bit-agent.ts +0 -232
- package/src/composites/gke-gateway.ts +0 -150
- package/src/composites/gke-otel-collector.snapshot.test.ts +0 -53
- package/src/composites/gke-otel-collector.ts +0 -156
- package/src/composites/index.ts +0 -133
- package/src/composites/inference-service.ts +0 -141
- package/src/composites/irsa-service-account.ts +0 -123
- package/src/composites/member-defaults.test.ts +0 -63
- package/src/composites/member-defaults.ts +0 -29
- package/src/composites/metrics-server.ts +0 -240
- package/src/composites/model.ts +0 -151
- package/src/composites/monitored-service.ts +0 -252
- package/src/composites/namespace-env.ts +0 -173
- package/src/composites/network-isolated-app.ts +0 -208
- package/src/composites/node-agent.ts +0 -242
- package/src/composites/operator-stack.ts +0 -387
- package/src/composites/otel-collector-agent.ts +0 -230
- package/src/composites/otel-collector-gateway.test.ts +0 -380
- package/src/composites/otel-collector-gateway.ts +0 -404
- package/src/composites/otel-collector-node.test.ts +0 -193
- package/src/composites/otel-collector-node.ts +0 -211
- package/src/composites/otel-collector-rbac.test.ts +0 -125
- package/src/composites/otel-collector-rbac.ts +0 -146
- package/src/composites/otel-collector-shape.ts +0 -163
- package/src/composites/otel-collector.ts +0 -209
- package/src/composites/otel-operator-collector.test.ts +0 -267
- package/src/composites/otel-operator-collector.ts +0 -221
- package/src/composites/ray-cluster.ts +0 -591
- package/src/composites/ray-job.ts +0 -236
- package/src/composites/ray-service.ts +0 -272
- package/src/composites/secure-ingress.ts +0 -160
- package/src/composites/security-context.ts +0 -10
- package/src/composites/sidecar-app.ts +0 -213
- package/src/composites/stateful-app.ts +0 -196
- package/src/composites/vllm-serving-runtime.test.ts +0 -167
- package/src/composites/vllm-serving-runtime.ts +0 -197
- package/src/composites/web-app.ts +0 -254
- package/src/composites/worker-pool.ts +0 -279
- package/src/composites/workload-identity-sa.ts +0 -127
- package/src/composites/workload-identity-service-account.ts +0 -123
- package/src/config-augmentation.test.ts +0 -100
- package/src/config-schema.ts +0 -109
- package/src/config.ts +0 -215
- package/src/coverage.test.ts +0 -27
- package/src/coverage.ts +0 -35
- package/src/crd/clickhouse-operators.test.ts +0 -105
- package/src/crd/cnpg.test.ts +0 -191
- package/src/crd/crd-sources.ts +0 -688
- package/src/crd/infisical.test.ts +0 -100
- package/src/crd/loader.test.ts +0 -90
- package/src/crd/loader.ts +0 -214
- package/src/crd/oci-chart.test.ts +0 -149
- package/src/crd/oci-chart.ts +0 -178
- package/src/crd/parser.test.ts +0 -585
- package/src/crd/parser.ts +0 -437
- package/src/crd/project-codegen.e2e.test.ts +0 -239
- package/src/crd/project-codegen.ts +0 -327
- package/src/crd/traefik.test.ts +0 -108
- package/src/crd/types.ts +0 -92
- package/src/deep-observe-hooks.ts +0 -361
- package/src/deep-observe.test.ts +0 -1160
- package/src/deep-observe.ts +0 -290
- package/src/default-labels.test.ts +0 -111
- package/src/default-labels.ts +0 -122
- package/src/describe-resources.test.ts +0 -1873
- package/src/describe-resources.ts +0 -839
- package/src/describe-stack-status.test.ts +0 -169
- package/src/describe-stack-status.ts +0 -143
- package/src/detect.ts +0 -9
- package/src/effect-receipt-row.test.ts +0 -285
- package/src/effect-receipt-row.ts +0 -268
- package/src/export-resources-io.test.ts +0 -97
- package/src/export-resources.ts +0 -72
- package/src/generated/index.d.ts +0 -8909
- package/src/generated/index.ts +0 -1153
- package/src/generated/runtime.ts +0 -4
- package/src/group-namespace.test.ts +0 -99
- package/src/group-namespace.ts +0 -103
- package/src/import/embedded-live.test.ts +0 -180
- package/src/import/embedded-roundtrip.test.ts +0 -298
- package/src/import/embedded-types.e2e.test.ts +0 -45
- package/src/import/embedded.test.ts +0 -189
- package/src/import/embedded.ts +0 -208
- package/src/import/generator.test.ts +0 -140
- package/src/import/generator.ts +0 -374
- package/src/import/live-export.test.ts +0 -114
- package/src/import/live-export.ts +0 -97
- package/src/import/operator-alerting-roundtrip.test.ts +0 -158
- package/src/import/operator-collector-roundtrip.test.ts +0 -105
- package/src/import/parser.test.ts +0 -174
- package/src/import/parser.ts +0 -230
- package/src/import/roundtrip-build.test.ts +0 -133
- package/src/import/roundtrip.test.ts +0 -86
- package/src/import/testdata/embedded/README.md +0 -14
- package/src/import/testdata/embedded/agent-observability.yaml +0 -2905
- package/src/import/testdata/embedded/alertmanager-configmap.yaml +0 -91
- package/src/import/testdata/embedded/fixtures.ts +0 -71
- package/src/import/testdata/embedded/grafana-dashboard-configmap.yaml +0 -364
- package/src/import/testdata/embedded/grafana-operator-dashboard.yaml +0 -363
- package/src/import/testdata/embedded/grafana-v2-dashboard-configmap.yaml +0 -851
- package/src/import/testdata/embedded/node-exporter-prometheusrule.yaml +0 -425
- package/src/import/testdata/embedded/otel-collector-daemonset.yaml +0 -225
- package/src/include/entity.ts +0 -119
- package/src/include/include.test.ts +0 -345
- package/src/include/resolve.ts +0 -204
- package/src/index-identity.ts +0 -119
- package/src/index-import.test.ts +0 -244
- package/src/index-import.ts +0 -181
- package/src/index.ts +0 -172
- package/src/kube/apply.test.ts +0 -105
- package/src/kube/apply.ts +0 -106
- package/src/kube/connect.ts +0 -55
- package/src/kube/delete.test.ts +0 -123
- package/src/kube/delete.ts +0 -174
- package/src/kube/describe.test.ts +0 -106
- package/src/kube/describe.ts +0 -195
- package/src/kube/events.test.ts +0 -115
- package/src/kube/events.ts +0 -160
- package/src/kube/flags.test.ts +0 -65
- package/src/kube/flags.ts +0 -114
- package/src/kube/get.test.ts +0 -195
- package/src/kube/get.ts +0 -190
- package/src/kube/group.test.ts +0 -33
- package/src/kube/group.ts +0 -125
- package/src/kube/logs.test.ts +0 -126
- package/src/kube/logs.ts +0 -96
- package/src/kube/project.test.ts +0 -57
- package/src/kube/project.ts +0 -106
- package/src/kube/render.test.ts +0 -142
- package/src/kube/render.ts +0 -252
- package/src/kube/source.test.ts +0 -138
- package/src/kube/source.ts +0 -139
- package/src/kube/target.test.ts +0 -67
- package/src/kube/target.ts +0 -89
- package/src/kube/testing.ts +0 -42
- package/src/kube/top.test.ts +0 -149
- package/src/kube/top.ts +0 -120
- package/src/kube/verdict.test.ts +0 -48
- package/src/kube/verdict.ts +0 -77
- package/src/kube/wait.test.ts +0 -125
- package/src/kube/wait.ts +0 -160
- package/src/kustomize/render.ts +0 -96
- package/src/kustomize/rendered-entity.ts +0 -82
- package/src/kustomize/root.test.ts +0 -309
- package/src/kustomize/root.ts +0 -95
- package/src/kustomize/search.test.ts +0 -101
- package/src/lifecycle-integration.test.ts +0 -325
- package/src/lint/audit-catalog.ts +0 -63
- package/src/lint/audit-lineage.ts +0 -127
- package/src/lint/post-synth/argo-helpers.ts +0 -47
- package/src/lint/post-synth/argo002.ts +0 -47
- package/src/lint/post-synth/argo003.ts +0 -80
- package/src/lint/post-synth/argo005.ts +0 -59
- package/src/lint/post-synth/crd-schema-helpers.ts +0 -235
- package/src/lint/post-synth/flux002.ts +0 -77
- package/src/lint/post-synth/flux003.ts +0 -75
- package/src/lint/post-synth/index.ts +0 -107
- package/src/lint/post-synth/k8s-helpers.test.ts +0 -236
- package/src/lint/post-synth/k8s-helpers.ts +0 -251
- package/src/lint/post-synth/monitoring-selection-helpers.ts +0 -185
- package/src/lint/post-synth/monitoring-selection.test.ts +0 -316
- package/src/lint/post-synth/otel-placement-helpers.ts +0 -333
- package/src/lint/post-synth/otel-placement.test.ts +0 -450
- package/src/lint/post-synth/post-synth.test.ts +0 -2798
- package/src/lint/post-synth/sops-helpers.ts +0 -76
- package/src/lint/post-synth/wk8005.ts +0 -54
- package/src/lint/post-synth/wk8006.ts +0 -63
- package/src/lint/post-synth/wk8041.ts +0 -68
- package/src/lint/post-synth/wk8042.ts +0 -43
- package/src/lint/post-synth/wk8101.ts +0 -60
- package/src/lint/post-synth/wk8102.ts +0 -37
- package/src/lint/post-synth/wk8103.ts +0 -40
- package/src/lint/post-synth/wk8104.ts +0 -64
- package/src/lint/post-synth/wk8105.ts +0 -40
- package/src/lint/post-synth/wk8201.ts +0 -50
- package/src/lint/post-synth/wk8202.ts +0 -41
- package/src/lint/post-synth/wk8203.ts +0 -41
- package/src/lint/post-synth/wk8204.ts +0 -81
- package/src/lint/post-synth/wk8205.ts +0 -51
- package/src/lint/post-synth/wk8207.ts +0 -40
- package/src/lint/post-synth/wk8208.ts +0 -40
- package/src/lint/post-synth/wk8209.ts +0 -40
- package/src/lint/post-synth/wk8301.ts +0 -54
- package/src/lint/post-synth/wk8302.ts +0 -41
- package/src/lint/post-synth/wk8303.ts +0 -93
- package/src/lint/post-synth/wk8304.ts +0 -65
- package/src/lint/post-synth/wk8305.ts +0 -112
- package/src/lint/post-synth/wk8306.ts +0 -45
- package/src/lint/post-synth/wk8401.ts +0 -93
- package/src/lint/post-synth/wk8402.ts +0 -38
- package/src/lint/post-synth/wk8403.ts +0 -55
- package/src/lint/post-synth/wk8404.ts +0 -49
- package/src/lint/post-synth/wk8405.ts +0 -85
- package/src/lint/post-synth/wk8406.ts +0 -55
- package/src/lint/post-synth/wk8407.ts +0 -66
- package/src/lint/post-synth/wk8501.ts +0 -40
- package/src/lint/post-synth/wk8502.ts +0 -39
- package/src/lint/post-synth/wk8503.ts +0 -220
- package/src/lint/post-synth/wk8504.ts +0 -51
- package/src/lint/post-synth/wk8505.ts +0 -65
- package/src/lint/post-synth/wk8601.ts +0 -44
- package/src/lint/post-synth/wk8602.ts +0 -133
- package/src/lint/post-synth/wk8603.ts +0 -66
- package/src/lint/post-synth/wk8604.ts +0 -36
- package/src/lint/post-synth/wk8605.test.ts +0 -153
- package/src/lint/post-synth/wk8605.ts +0 -133
- package/src/lint/post-synth/wk8606.ts +0 -27
- package/src/lint/post-synth/wk8701.ts +0 -37
- package/src/lint/post-synth/wk8702.ts +0 -43
- package/src/lint/post-synth/wk8703.ts +0 -37
- package/src/lint/post-synth/wk8704.ts +0 -134
- package/src/lint/post-synth/wk8705.ts +0 -45
- package/src/lint/rules/argo-appset-single-project.ts +0 -66
- package/src/lint/rules/argo-ast.ts +0 -121
- package/src/lint/rules/argo-automated-prune.ts +0 -75
- package/src/lint/rules/flux-source-ref-pin.ts +0 -52
- package/src/lint/rules/hardcoded-namespace.ts +0 -71
- package/src/lint/rules/latest-image-tag.ts +0 -121
- package/src/lint/rules/missing-resource-limits.ts +0 -111
- package/src/lint/rules/rules.test.ts +0 -421
- package/src/list-map-key-table.test.ts +0 -83
- package/src/list-map-order-key.test.ts +0 -119
- package/src/listed-types.test.ts +0 -76
- package/src/listed-types.ts +0 -70
- package/src/lsp/completions.test.ts +0 -64
- package/src/lsp/completions.ts +0 -21
- package/src/lsp/hover.test.ts +0 -69
- package/src/lsp/hover.ts +0 -69
- package/src/manifest-entity.test.ts +0 -78
- package/src/manifest-entity.ts +0 -82
- package/src/micro-time.test.ts +0 -48
- package/src/micro-time.ts +0 -51
- package/src/op/activities/apply-diff.ts +0 -87
- package/src/op/activities/argo.test.ts +0 -79
- package/src/op/activities/argo.ts +0 -163
- package/src/op/activities/ensure-secret.ts +0 -71
- package/src/op/activities/index.ts +0 -79
- package/src/op/activities/kubectl-plan.test.ts +0 -224
- package/src/op/activities/kubectl.test.ts +0 -662
- package/src/op/activities/kubectl.ts +0 -723
- package/src/op/activities/wait-for-ready.test.ts +0 -260
- package/src/op/activities/wait-for-ready.ts +0 -371
- package/src/op/builders.test.ts +0 -82
- package/src/op/builders.ts +0 -95
- package/src/package-cli.ts +0 -28
- package/src/patch/json-patch.test.ts +0 -91
- package/src/patch/json-patch.ts +0 -189
- package/src/patch/rendered-patch.test.ts +0 -143
- package/src/patch/rendered-patch.ts +0 -180
- package/src/plugin.test.ts +0 -273
- package/src/plugin.ts +0 -827
- package/src/project-kinds.ts +0 -75
- package/src/prometheus-rule-groups.test.ts +0 -135
- package/src/receipt-store.test.ts +0 -380
- package/src/receipt-store.ts +0 -290
- package/src/reference-catalog.test.ts +0 -173
- package/src/reference-catalog.ts +0 -157
- package/src/secret-labels.ts +0 -36
- package/src/secret-store.test.ts +0 -184
- package/src/secret-store.ts +0 -165
- package/src/serializer-ownership.test.ts +0 -44
- package/src/serializer-telemetry.test.ts +0 -146
- package/src/serializer.test.ts +0 -640
- package/src/serializer.ts +0 -655
- package/src/skills/chant-k8s-aks.md +0 -146
- package/src/skills/chant-k8s-argo.md +0 -190
- package/src/skills/chant-k8s-deployment-strategies.md +0 -183
- package/src/skills/chant-k8s-eks.md +0 -171
- package/src/skills/chant-k8s-flux.md +0 -162
- package/src/skills/chant-k8s-gke.md +0 -246
- package/src/skills/chant-k8s-patterns.md +0 -245
- package/src/skills/chant-k8s-ray.md +0 -252
- package/src/skills/chant-k8s-security.md +0 -237
- package/src/skills/chant-k8s.md +0 -307
- package/src/sops/encrypted-secret-file.test.ts +0 -333
- package/src/sops/encrypted-secret-file.ts +0 -264
- package/src/sops/entity.ts +0 -53
- package/src/spec/fetch.test.ts +0 -24
- package/src/spec/fetch.ts +0 -68
- package/src/spec/parse.test.ts +0 -262
- package/src/spec/parse.ts +0 -864
- package/src/subscribe-changes.test.ts +0 -368
- package/src/subscribe-changes.ts +0 -210
- package/src/teardown.test.ts +0 -240
- package/src/teardown.ts +0 -239
- package/src/telemetry-build.test.ts +0 -79
- package/src/telemetry-release.ts +0 -93
- package/src/testdata/include/bundle.yaml +0 -45
- package/src/testdata/indexed/listing.json +0 -67
- package/src/testdata/kustomize-root/base/deployment.yaml +0 -17
- package/src/testdata/kustomize-root/base/kustomization.yaml +0 -3
- package/src/testdata/kustomize-root/base/service.yaml +0 -9
- package/src/testdata/kustomize-root/overlays/prod/kustomization.yaml +0 -6
- package/src/testdata/manifests/configmap.yaml +0 -7
- package/src/testdata/manifests/deployment.yaml +0 -22
- package/src/testdata/manifests/full-app.yaml +0 -61
- package/src/testdata/manifests/secret.yaml +0 -7
- package/src/testdata/manifests/service.yaml +0 -15
- package/src/testdata/sops/db-credentials.sops.yaml +0 -23
- package/src/testdata/workspace-members/argo/guestbook.yaml +0 -28
- package/src/testdata/workspace-members/argo/namespace.yaml +0 -4
- package/src/testdata/workspace-members/flux/apps.yaml +0 -12
- package/src/testdata/workspace-members/flux/kustomization.yaml +0 -4
- package/src/validate-cli.ts +0 -21
- package/src/validate.test.ts +0 -29
- package/src/validate.ts +0 -53
- package/src/variables.ts +0 -36
- package/src/whoami.test.ts +0 -203
- package/src/whoami.ts +0 -122
- package/src/workspace-kinds.test.ts +0 -35
- package/src/workspace-member.test.ts +0 -154
- package/src/workspace-member.ts +0 -128
- /package/{src → dist}/generated/list-map-keys.json +0 -0
- /package/{src → dist}/generated/operations.json +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ARGO003: Application.spec.destination must reference a registered cluster
|
|
3
|
-
*
|
|
4
|
-
* An Argo `Application` targets a cluster via `spec.destination.server` (an API
|
|
5
|
-
* server URL) or `spec.destination.name` (a registered cluster name). External
|
|
6
|
-
* clusters are registered with a Secret labelled
|
|
7
|
-
* `argocd.argoproj.io/secret-type: cluster`. The in-cluster target
|
|
8
|
-
* (`https://kubernetes.default.svc` / name `in-cluster`) is always available.
|
|
9
|
-
* A destination that names neither a registered cluster nor the in-cluster
|
|
10
|
-
* target won't resolve at sync time.
|
|
11
|
-
*/
|
|
12
|
-
import type { PostSynthCheck, PostSynthContext, PostSynthDiagnostic } from "@intentius/chant/lint/post-synth";
|
|
13
|
-
import {
|
|
14
|
-
allManifests,
|
|
15
|
-
manifestsOfKind,
|
|
16
|
-
isClusterSecret,
|
|
17
|
-
secretField,
|
|
18
|
-
IN_CLUSTER_SERVER,
|
|
19
|
-
IN_CLUSTER_NAME,
|
|
20
|
-
} from "./argo-helpers";
|
|
21
|
-
|
|
22
|
-
export const argo003: PostSynthCheck = {
|
|
23
|
-
id: "ARGO003",
|
|
24
|
-
description: "Application.spec.destination must reference a registered cluster or the in-cluster target",
|
|
25
|
-
|
|
26
|
-
check(ctx: PostSynthContext): PostSynthDiagnostic[] {
|
|
27
|
-
const diagnostics: PostSynthDiagnostic[] = [];
|
|
28
|
-
const manifests = allManifests(ctx);
|
|
29
|
-
|
|
30
|
-
const registeredServers = new Set<string>([IN_CLUSTER_SERVER]);
|
|
31
|
-
const registeredNames = new Set<string>([IN_CLUSTER_NAME]);
|
|
32
|
-
for (const secret of manifests.filter(isClusterSecret)) {
|
|
33
|
-
const server = secretField(secret, "server");
|
|
34
|
-
if (server) registeredServers.add(server);
|
|
35
|
-
const name = secretField(secret, "name") ?? secret.metadata?.name;
|
|
36
|
-
if (typeof name === "string") registeredNames.add(name);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
for (const app of manifestsOfKind(manifests, "Application")) {
|
|
40
|
-
const name = app.metadata?.name ?? "Application";
|
|
41
|
-
const destination = app.spec?.destination as
|
|
42
|
-
| { server?: unknown; name?: unknown }
|
|
43
|
-
| undefined;
|
|
44
|
-
|
|
45
|
-
if (!destination || (destination.server === undefined && destination.name === undefined)) {
|
|
46
|
-
diagnostics.push({
|
|
47
|
-
checkId: "ARGO003",
|
|
48
|
-
severity: "error",
|
|
49
|
-
message: `Application "${name}" has no spec.destination.server or spec.destination.name — Argo cannot resolve a target cluster.`,
|
|
50
|
-
entity: name,
|
|
51
|
-
lexicon: "k8s",
|
|
52
|
-
});
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (typeof destination.server === "string" && !registeredServers.has(destination.server)) {
|
|
57
|
-
diagnostics.push({
|
|
58
|
-
checkId: "ARGO003",
|
|
59
|
-
severity: "error",
|
|
60
|
-
message: `Application "${name}" targets cluster server "${destination.server}", which is not registered. Register it with a cluster Secret (label argocd.argoproj.io/secret-type=cluster) or use the in-cluster target.`,
|
|
61
|
-
entity: name,
|
|
62
|
-
lexicon: "k8s",
|
|
63
|
-
});
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (typeof destination.name === "string" && !registeredNames.has(destination.name)) {
|
|
68
|
-
diagnostics.push({
|
|
69
|
-
checkId: "ARGO003",
|
|
70
|
-
severity: "error",
|
|
71
|
-
message: `Application "${name}" targets cluster name "${destination.name}", which is not registered. Register it with a cluster Secret or use the in-cluster target.`,
|
|
72
|
-
entity: name,
|
|
73
|
-
lexicon: "k8s",
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return diagnostics;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ARGO005: Application source.path should point at an existing directory (warn)
|
|
3
|
-
*
|
|
4
|
-
* When an Argo `Application` syncs from a git source it names a `source.path`
|
|
5
|
-
* inside the repo. In the common monorepo layout — Argo watches the same repo
|
|
6
|
-
* Chant builds — that path is relative to the build root, so a typo'd or moved
|
|
7
|
-
* path surfaces as a sync error only after deploy. This check warns when the
|
|
8
|
-
* path doesn't resolve to a directory under the build root.
|
|
9
|
-
*
|
|
10
|
-
* It is a warning, not an error: Applications that sync from a *different*
|
|
11
|
-
* remote repo legitimately reference paths that don't exist locally. Helm chart
|
|
12
|
-
* sources (`source.chart`) and pathless sources are skipped.
|
|
13
|
-
*/
|
|
14
|
-
import { existsSync, statSync } from "fs";
|
|
15
|
-
import { isAbsolute, resolve } from "path";
|
|
16
|
-
import type { PostSynthCheck, PostSynthContext, PostSynthDiagnostic } from "@intentius/chant/lint/post-synth";
|
|
17
|
-
import { allManifests, manifestsOfKind } from "./argo-helpers";
|
|
18
|
-
|
|
19
|
-
function dirExists(path: string): boolean {
|
|
20
|
-
try {
|
|
21
|
-
const full = isAbsolute(path) ? path : resolve(process.cwd(), path);
|
|
22
|
-
return existsSync(full) && statSync(full).isDirectory();
|
|
23
|
-
} catch {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const argo005: PostSynthCheck = {
|
|
29
|
-
id: "ARGO005",
|
|
30
|
-
description: "Application source.path should resolve to an existing directory under the build root",
|
|
31
|
-
|
|
32
|
-
check(ctx: PostSynthContext): PostSynthDiagnostic[] {
|
|
33
|
-
const diagnostics: PostSynthDiagnostic[] = [];
|
|
34
|
-
|
|
35
|
-
for (const app of manifestsOfKind(allManifests(ctx), "Application")) {
|
|
36
|
-
const name = app.metadata?.name ?? "Application";
|
|
37
|
-
const source = app.spec?.source as
|
|
38
|
-
| { path?: unknown; chart?: unknown }
|
|
39
|
-
| undefined;
|
|
40
|
-
if (!source) continue;
|
|
41
|
-
// Helm chart sources have no filesystem path.
|
|
42
|
-
if (typeof source.chart === "string" && source.chart !== "") continue;
|
|
43
|
-
|
|
44
|
-
const path = source.path;
|
|
45
|
-
if (typeof path !== "string" || path === "") continue;
|
|
46
|
-
if (dirExists(path)) continue;
|
|
47
|
-
|
|
48
|
-
diagnostics.push({
|
|
49
|
-
checkId: "ARGO005",
|
|
50
|
-
severity: "warning",
|
|
51
|
-
message: `Application "${name}" source.path "${path}" does not resolve to a directory under the build root. Confirm the path (or ignore if it lives in a different repo).`,
|
|
52
|
-
entity: name,
|
|
53
|
-
lexicon: "k8s",
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return diagnostics;
|
|
58
|
-
},
|
|
59
|
-
};
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared helpers for the custom-resource spec checks (WK8501, WK8502) — chant #1372.
|
|
3
|
-
*
|
|
4
|
-
* A CRD's constructor takes `spec: Record<string, unknown>`, so a misspelled
|
|
5
|
-
* or wrong-typed field type-checks, serializes, and is accepted by the API
|
|
6
|
-
* server (which prunes what the structural schema does not know) — the
|
|
7
|
-
* controller then runs with a default nobody chose. The generated lexicon JSON
|
|
8
|
-
* carries each CRD's `spec` field schema (`specSchema`); these helpers walk a
|
|
9
|
-
* synthesized manifest against it and report what the schema would reject.
|
|
10
|
-
*
|
|
11
|
-
* Excluded from check auto-discovery by the "helper" filename filter.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { createRequire } from "module";
|
|
15
|
-
import { moduleSourceUrl } from "@intentius/chant/module-source";
|
|
16
|
-
import type { PostSynthContext } from "@intentius/chant/lint/post-synth";
|
|
17
|
-
import type { CrdFieldSchema } from "../../spec/parse";
|
|
18
|
-
import { docsToManifests, type K8sManifest } from "./k8s-helpers";
|
|
19
|
-
import { projectSpecSchema } from "../../project-kinds";
|
|
20
|
-
|
|
21
|
-
export type { CrdFieldSchema };
|
|
22
|
-
|
|
23
|
-
interface LexiconEntry {
|
|
24
|
-
kind: "resource" | "property";
|
|
25
|
-
apiVersion?: string;
|
|
26
|
-
gvkKind?: string;
|
|
27
|
-
specSchema?: CrdFieldSchema;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
let cachedRegistry: Map<string, CrdFieldSchema> | null = null;
|
|
31
|
-
|
|
32
|
-
/** Registry key: `<apiVersion>/<kind>`, the pair a manifest carries verbatim. */
|
|
33
|
-
function registryKey(apiVersion: string, kind: string): string {
|
|
34
|
-
return `${apiVersion}/${kind}`;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Spec schemas of every CRD the lexicon ships, keyed by `apiVersion/kind`.
|
|
39
|
-
* Built-in kinds carry no `specSchema` and are never in the map.
|
|
40
|
-
*/
|
|
41
|
-
export function getCrdSchemaRegistry(): Map<string, CrdFieldSchema> {
|
|
42
|
-
if (cachedRegistry) return cachedRegistry;
|
|
43
|
-
cachedRegistry = new Map();
|
|
44
|
-
try {
|
|
45
|
-
// Built lazily so importing this module stays edge-safe: `createRequire`
|
|
46
|
-
// throws where import.meta.url is undefined (bundled Workers), and there
|
|
47
|
-
// the registry is simply empty.
|
|
48
|
-
const require = createRequire(moduleSourceUrl(import.meta.url));
|
|
49
|
-
const lexicon = require("../../generated/lexicon-k8s.json") as Record<string, LexiconEntry>;
|
|
50
|
-
for (const entry of Object.values(lexicon)) {
|
|
51
|
-
if (entry.kind === "resource" && entry.apiVersion && entry.gvkKind && entry.specSchema) {
|
|
52
|
-
cachedRegistry.set(registryKey(entry.apiVersion, entry.gvkKind), entry.specSchema);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
} catch {
|
|
56
|
-
// Lexicon JSON not yet generated — empty registry, checks pass.
|
|
57
|
-
}
|
|
58
|
-
return cachedRegistry;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** Test seam: replace the registry (pass `null` to reload from the lexicon JSON). */
|
|
62
|
-
export function setCrdSchemaRegistry(registry: Map<string, CrdFieldSchema> | null): void {
|
|
63
|
-
cachedRegistry = registry;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The schema for a manifest's `apiVersion`/`kind`: one the project generated
|
|
68
|
-
* from its own CRDs (`chant generate`, ../../project-kinds.ts) first, then one
|
|
69
|
-
* the lexicon ships.
|
|
70
|
-
*/
|
|
71
|
-
export function specSchemaFor(manifest: K8sManifest): CrdFieldSchema | undefined {
|
|
72
|
-
if (typeof manifest.apiVersion !== "string" || typeof manifest.kind !== "string") return undefined;
|
|
73
|
-
return (
|
|
74
|
-
projectSpecSchema(manifest.apiVersion, manifest.kind) ??
|
|
75
|
-
getCrdSchemaRegistry().get(registryKey(manifest.apiVersion, manifest.kind))
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** Every manifest in the build that has a shipped spec schema, with that schema. */
|
|
80
|
-
export function customResources(ctx: PostSynthContext): Array<{ manifest: K8sManifest; schema: CrdFieldSchema }> {
|
|
81
|
-
const out: Array<{ manifest: K8sManifest; schema: CrdFieldSchema }> = [];
|
|
82
|
-
for (const manifest of docsToManifests(ctx)) {
|
|
83
|
-
const schema = specSchemaFor(manifest);
|
|
84
|
-
if (schema) out.push({ manifest, schema });
|
|
85
|
-
}
|
|
86
|
-
return out;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface SpecFinding {
|
|
90
|
-
kind: "unknown-field" | "type-mismatch";
|
|
91
|
-
/** Dotted path under `spec`, e.g. `spec.source.s3bucket`. Array elements use `[i]`. */
|
|
92
|
-
path: string;
|
|
93
|
-
message: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Walk `value` against `schema` and report every field the schema does not
|
|
98
|
-
* list (unless the enclosing object is `open`) and every scalar whose type or
|
|
99
|
-
* enum membership the schema rejects. Untyped nodes pass anything.
|
|
100
|
-
*/
|
|
101
|
-
export function validateSpec(value: unknown, schema: CrdFieldSchema, path = "spec"): SpecFinding[] {
|
|
102
|
-
const findings: SpecFinding[] = [];
|
|
103
|
-
walk(value, schema, path, findings);
|
|
104
|
-
return findings;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function walk(value: unknown, schema: CrdFieldSchema, path: string, out: SpecFinding[]): void {
|
|
108
|
-
if (value === null || value === undefined) return;
|
|
109
|
-
|
|
110
|
-
// int-or-string and other deliberately untyped nodes accept anything.
|
|
111
|
-
if (!schema.type) return;
|
|
112
|
-
|
|
113
|
-
switch (schema.type) {
|
|
114
|
-
case "object": {
|
|
115
|
-
if (typeof value !== "object" || Array.isArray(value)) {
|
|
116
|
-
out.push(mismatch(path, "an object", value));
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const obj = value as Record<string, unknown>;
|
|
120
|
-
for (const [name, child] of Object.entries(obj)) {
|
|
121
|
-
const childSchema = schema.fields?.[name];
|
|
122
|
-
if (childSchema) {
|
|
123
|
-
walk(child, childSchema, `${path}.${name}`, out);
|
|
124
|
-
continue;
|
|
125
|
-
}
|
|
126
|
-
if (schema.open) continue;
|
|
127
|
-
const known = Object.keys(schema.fields ?? {});
|
|
128
|
-
const suggestion = suggestField(name, known);
|
|
129
|
-
const hint = suggestion ? ` (did you mean "${suggestion}"?)` : "";
|
|
130
|
-
out.push({
|
|
131
|
-
kind: "unknown-field",
|
|
132
|
-
path: `${path}.${name}`,
|
|
133
|
-
message: `unknown field "${path}.${name}"${hint}`,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
case "array": {
|
|
139
|
-
if (!Array.isArray(value)) {
|
|
140
|
-
out.push(mismatch(path, "an array", value));
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (schema.items) {
|
|
144
|
-
value.forEach((item, i) => walk(item, schema.items!, `${path}[${i}]`, out));
|
|
145
|
-
}
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
case "string": {
|
|
149
|
-
if (typeof value !== "string") {
|
|
150
|
-
// `x-kubernetes-int-or-string` never reaches here (untyped); a plain
|
|
151
|
-
// string field given a number is a real mismatch the server coerces
|
|
152
|
-
// or rejects depending on version, so say so.
|
|
153
|
-
out.push(mismatch(path, "a string", value));
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
checkEnum(value, schema, path, out);
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
case "integer":
|
|
160
|
-
case "number": {
|
|
161
|
-
if (typeof value !== "number" || (schema.type === "integer" && !Number.isInteger(value))) {
|
|
162
|
-
out.push(mismatch(path, schema.type === "integer" ? "an integer" : "a number", value));
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
checkEnum(value, schema, path, out);
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
case "boolean": {
|
|
169
|
-
if (typeof value !== "boolean") out.push(mismatch(path, "a boolean", value));
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function checkEnum(value: string | number, schema: CrdFieldSchema, path: string, out: SpecFinding[]): void {
|
|
176
|
-
if (!schema.enum || schema.enum.length === 0) return;
|
|
177
|
-
if (schema.enum.includes(String(value))) return;
|
|
178
|
-
out.push({
|
|
179
|
-
kind: "type-mismatch",
|
|
180
|
-
path,
|
|
181
|
-
message: `"${path}" must be one of ${schema.enum.map((v) => `"${v}"`).join(", ")}, got ${describe(value)}`,
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function mismatch(path: string, expected: string, value: unknown): SpecFinding {
|
|
186
|
-
return {
|
|
187
|
-
kind: "type-mismatch",
|
|
188
|
-
path,
|
|
189
|
-
message: `"${path}" expects ${expected}, got ${describe(value)}`,
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
function describe(value: unknown): string {
|
|
194
|
-
if (typeof value === "string") return `string "${value}"`;
|
|
195
|
-
if (typeof value === "number" || typeof value === "boolean") return `${typeof value} ${String(value)}`;
|
|
196
|
-
if (Array.isArray(value)) return "an array";
|
|
197
|
-
if (value !== null && typeof value === "object") return "an object";
|
|
198
|
-
return String(value);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/** Levenshtein distance between two strings. */
|
|
202
|
-
export function levenshtein(a: string, b: string): number {
|
|
203
|
-
const m = a.length;
|
|
204
|
-
const n = b.length;
|
|
205
|
-
const dp: number[][] = Array.from({ length: m + 1 }, () => Array<number>(n + 1).fill(0));
|
|
206
|
-
for (let i = 0; i <= m; i++) dp[i][0] = i;
|
|
207
|
-
for (let j = 0; j <= n; j++) dp[0][j] = j;
|
|
208
|
-
for (let i = 1; i <= m; i++) {
|
|
209
|
-
for (let j = 1; j <= n; j++) {
|
|
210
|
-
dp[i][j] = a[i - 1] === b[j - 1]
|
|
211
|
-
? dp[i - 1][j - 1]
|
|
212
|
-
: 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
return dp[m][n];
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/** Closest known field within Levenshtein distance 3 (case-insensitive), if any. */
|
|
219
|
-
export function suggestField(unknown: string, known: string[]): string | undefined {
|
|
220
|
-
let best: string | undefined;
|
|
221
|
-
let bestDist = 4;
|
|
222
|
-
for (const field of known) {
|
|
223
|
-
const dist = levenshtein(unknown.toLowerCase(), field.toLowerCase());
|
|
224
|
-
if (dist < bestDist) {
|
|
225
|
-
bestDist = dist;
|
|
226
|
-
best = field;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
return best;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/** `metadata.name` or the kind, for diagnostics. */
|
|
233
|
-
export function resourceLabel(manifest: K8sManifest): string {
|
|
234
|
-
return manifest.metadata?.name ?? manifest.kind ?? "resource";
|
|
235
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FLUX002: Kustomization.spec.sourceRef must reference a declared source
|
|
3
|
-
*
|
|
4
|
-
* A Flux `Kustomization` names its source in `spec.sourceRef` — a
|
|
5
|
-
* `GitRepository`, `OCIRepository`, or `Bucket` the source-controller fetches.
|
|
6
|
-
* If the referenced source isn't declared in the build, the
|
|
7
|
-
* kustomize-controller waits on an artifact that never arrives and the
|
|
8
|
-
* Kustomization stalls. The bootstrap-created `flux-system` GitRepository
|
|
9
|
-
* always exists on a bootstrapped cluster, so a reference to it is never
|
|
10
|
-
* flagged — the Flux analogue of ARGO002's built-in `default` project.
|
|
11
|
-
*/
|
|
12
|
-
import type { PostSynthCheck, PostSynthContext, PostSynthDiagnostic } from "@intentius/chant/lint/post-synth";
|
|
13
|
-
import { allManifests, manifestsOfKind } from "./argo-helpers";
|
|
14
|
-
|
|
15
|
-
/** Source kinds the kustomize-controller can reconcile from. */
|
|
16
|
-
const SOURCE_KINDS = ["GitRepository", "OCIRepository", "Bucket"] as const;
|
|
17
|
-
|
|
18
|
-
/** The GitRepository `flux bootstrap` creates alongside the controllers. */
|
|
19
|
-
const BOOTSTRAP_SOURCE_NAME = "flux-system";
|
|
20
|
-
|
|
21
|
-
export const flux002: PostSynthCheck = {
|
|
22
|
-
id: "FLUX002",
|
|
23
|
-
description: "Kustomization.spec.sourceRef must reference a declared source (or the bootstrap flux-system repo)",
|
|
24
|
-
|
|
25
|
-
check(ctx: PostSynthContext): PostSynthDiagnostic[] {
|
|
26
|
-
const diagnostics: PostSynthDiagnostic[] = [];
|
|
27
|
-
const manifests = allManifests(ctx);
|
|
28
|
-
|
|
29
|
-
// Declared sources, keyed "Kind/name". Namespace is deliberately ignored:
|
|
30
|
-
// an unset sourceRef.namespace resolves in the Kustomization's own, and
|
|
31
|
-
// the common estate keeps everything in flux-system anyway.
|
|
32
|
-
const declaredSources = new Set<string>();
|
|
33
|
-
for (const kind of SOURCE_KINDS) {
|
|
34
|
-
for (const source of manifestsOfKind(manifests, kind)) {
|
|
35
|
-
const name = source.metadata?.name;
|
|
36
|
-
if (typeof name === "string") declaredSources.add(`${kind}/${name}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
for (const kustomization of manifestsOfKind(manifests, "Kustomization")) {
|
|
41
|
-
// Flux and kustomize.config.k8s.io share the kind name; only the Flux CR
|
|
42
|
-
// carries a sourceRef-bearing spec.
|
|
43
|
-
const apiVersion = kustomization.apiVersion;
|
|
44
|
-
if (typeof apiVersion === "string" && !apiVersion.startsWith("kustomize.toolkit.fluxcd.io/")) continue;
|
|
45
|
-
|
|
46
|
-
const name = kustomization.metadata?.name ?? "Kustomization";
|
|
47
|
-
const sourceRef = kustomization.spec?.sourceRef as
|
|
48
|
-
| { kind?: unknown; name?: unknown }
|
|
49
|
-
| undefined;
|
|
50
|
-
|
|
51
|
-
if (!sourceRef || typeof sourceRef.name !== "string" || sourceRef.name === "") {
|
|
52
|
-
diagnostics.push({
|
|
53
|
-
checkId: "FLUX002",
|
|
54
|
-
severity: "error",
|
|
55
|
-
message: `Kustomization "${name}" has no spec.sourceRef.name — the kustomize-controller cannot resolve a source.`,
|
|
56
|
-
entity: name,
|
|
57
|
-
lexicon: "k8s",
|
|
58
|
-
});
|
|
59
|
-
continue;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const kind = typeof sourceRef.kind === "string" && sourceRef.kind !== "" ? sourceRef.kind : "GitRepository";
|
|
63
|
-
if (kind === "GitRepository" && sourceRef.name === BOOTSTRAP_SOURCE_NAME) continue;
|
|
64
|
-
if (declaredSources.has(`${kind}/${sourceRef.name}`)) continue;
|
|
65
|
-
|
|
66
|
-
diagnostics.push({
|
|
67
|
-
checkId: "FLUX002",
|
|
68
|
-
severity: "error",
|
|
69
|
-
message: `Kustomization "${name}" references ${kind} "${sourceRef.name}", which is not declared. Declare the source (e.g. FluxGitSource) or point sourceRef at the bootstrap flux-system repo.`,
|
|
70
|
-
entity: name,
|
|
71
|
-
lexicon: "k8s",
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return diagnostics;
|
|
76
|
-
},
|
|
77
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FLUX003: Kustomization.spec.dependsOn entries should name declared Kustomizations
|
|
3
|
-
*
|
|
4
|
-
* `dependsOn` is Flux's reconcile-ordering edge: the Kustomization stays
|
|
5
|
-
* pending until every named Kustomization is ready. The names are plain
|
|
6
|
-
* strings with no referential integrity — a typo, or an entry left behind
|
|
7
|
-
* after a rename, stalls the app silently. This check joins each entry
|
|
8
|
-
* against the Kustomizations the build actually declares.
|
|
9
|
-
*
|
|
10
|
-
* It is a warning, not an error: estates legitimately split infra and apps
|
|
11
|
-
* across repos, so a dependency (say `cert-manager`) may be declared by a
|
|
12
|
-
* build this one never sees. A self-referencing entry is flagged too — Flux
|
|
13
|
-
* can never satisfy it.
|
|
14
|
-
*/
|
|
15
|
-
import type { PostSynthCheck, PostSynthContext, PostSynthDiagnostic } from "@intentius/chant/lint/post-synth";
|
|
16
|
-
import { allManifests, manifestsOfKind } from "./argo-helpers";
|
|
17
|
-
import type { K8sManifest } from "./k8s-helpers";
|
|
18
|
-
|
|
19
|
-
/** Flux Kustomizations only — the kustomize.config.k8s.io kind shares the name. */
|
|
20
|
-
function fluxKustomizations(manifests: K8sManifest[]): K8sManifest[] {
|
|
21
|
-
return manifestsOfKind(manifests, "Kustomization").filter((m) => {
|
|
22
|
-
const apiVersion = m.apiVersion;
|
|
23
|
-
return typeof apiVersion !== "string" || apiVersion.startsWith("kustomize.toolkit.fluxcd.io/");
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const flux003: PostSynthCheck = {
|
|
28
|
-
id: "FLUX003",
|
|
29
|
-
description: "Kustomization.spec.dependsOn entries should name Kustomizations declared in the build",
|
|
30
|
-
|
|
31
|
-
check(ctx: PostSynthContext): PostSynthDiagnostic[] {
|
|
32
|
-
const diagnostics: PostSynthDiagnostic[] = [];
|
|
33
|
-
const kustomizations = fluxKustomizations(allManifests(ctx));
|
|
34
|
-
|
|
35
|
-
const declared = new Set(
|
|
36
|
-
kustomizations
|
|
37
|
-
.map((k) => k.metadata?.name)
|
|
38
|
-
.filter((n): n is string => typeof n === "string"),
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
for (const kustomization of kustomizations) {
|
|
42
|
-
const name = kustomization.metadata?.name ?? "Kustomization";
|
|
43
|
-
const dependsOn = kustomization.spec?.dependsOn;
|
|
44
|
-
if (!Array.isArray(dependsOn)) continue;
|
|
45
|
-
|
|
46
|
-
for (const entry of dependsOn) {
|
|
47
|
-
const depName = (entry as { name?: unknown } | null)?.name;
|
|
48
|
-
if (typeof depName !== "string" || depName === "") continue;
|
|
49
|
-
|
|
50
|
-
if (depName === name) {
|
|
51
|
-
diagnostics.push({
|
|
52
|
-
checkId: "FLUX003",
|
|
53
|
-
severity: "warning",
|
|
54
|
-
message: `Kustomization "${name}" depends on itself — Flux can never satisfy the edge and the app will not reconcile.`,
|
|
55
|
-
entity: name,
|
|
56
|
-
lexicon: "k8s",
|
|
57
|
-
});
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (declared.has(depName)) continue;
|
|
62
|
-
|
|
63
|
-
diagnostics.push({
|
|
64
|
-
checkId: "FLUX003",
|
|
65
|
-
severity: "warning",
|
|
66
|
-
message: `Kustomization "${name}" depends on Kustomization "${depName}", which nothing in the build declares — reconciliation stalls until it exists. Fix the name, or ignore if it is declared in another repo.`,
|
|
67
|
-
entity: name,
|
|
68
|
-
lexicon: "k8s",
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return diagnostics;
|
|
74
|
-
},
|
|
75
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// Code generated by chant generate. DO NOT EDIT.
|
|
2
|
-
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
3
|
-
import { argo002 } from "./argo002";
|
|
4
|
-
import { argo003 } from "./argo003";
|
|
5
|
-
import { argo005 } from "./argo005";
|
|
6
|
-
import { flux002 } from "./flux002";
|
|
7
|
-
import { flux003 } from "./flux003";
|
|
8
|
-
import { wk8005 } from "./wk8005";
|
|
9
|
-
import { wk8006 } from "./wk8006";
|
|
10
|
-
import { wk8041 } from "./wk8041";
|
|
11
|
-
import { wk8042 } from "./wk8042";
|
|
12
|
-
import { wk8101 } from "./wk8101";
|
|
13
|
-
import { wk8102 } from "./wk8102";
|
|
14
|
-
import { wk8103 } from "./wk8103";
|
|
15
|
-
import { wk8104 } from "./wk8104";
|
|
16
|
-
import { wk8105 } from "./wk8105";
|
|
17
|
-
import { wk8201 } from "./wk8201";
|
|
18
|
-
import { wk8202 } from "./wk8202";
|
|
19
|
-
import { wk8203 } from "./wk8203";
|
|
20
|
-
import { wk8204 } from "./wk8204";
|
|
21
|
-
import { wk8205 } from "./wk8205";
|
|
22
|
-
import { wk8207 } from "./wk8207";
|
|
23
|
-
import { wk8208 } from "./wk8208";
|
|
24
|
-
import { wk8209 } from "./wk8209";
|
|
25
|
-
import { wk8301 } from "./wk8301";
|
|
26
|
-
import { wk8302 } from "./wk8302";
|
|
27
|
-
import { wk8303 } from "./wk8303";
|
|
28
|
-
import { wk8304 } from "./wk8304";
|
|
29
|
-
import { wk8305 } from "./wk8305";
|
|
30
|
-
import { wk8306 } from "./wk8306";
|
|
31
|
-
import { wk8401 } from "./wk8401";
|
|
32
|
-
import { wk8402 } from "./wk8402";
|
|
33
|
-
import { wk8403 } from "./wk8403";
|
|
34
|
-
import { wk8404 } from "./wk8404";
|
|
35
|
-
import { wk8405 } from "./wk8405";
|
|
36
|
-
import { wk8406 } from "./wk8406";
|
|
37
|
-
import { wk8407 } from "./wk8407";
|
|
38
|
-
import { wk8501 } from "./wk8501";
|
|
39
|
-
import { wk8502 } from "./wk8502";
|
|
40
|
-
import { wk8503 } from "./wk8503";
|
|
41
|
-
import { wk8504 } from "./wk8504";
|
|
42
|
-
import { wk8505 } from "./wk8505";
|
|
43
|
-
import { wk8601 } from "./wk8601";
|
|
44
|
-
import { wk8602 } from "./wk8602";
|
|
45
|
-
import { wk8603 } from "./wk8603";
|
|
46
|
-
import { wk8604 } from "./wk8604";
|
|
47
|
-
import { wk8605 } from "./wk8605";
|
|
48
|
-
import { wk8606 } from "./wk8606";
|
|
49
|
-
import { wk8701 } from "./wk8701";
|
|
50
|
-
import { wk8702 } from "./wk8702";
|
|
51
|
-
import { wk8703 } from "./wk8703";
|
|
52
|
-
import { wk8704 } from "./wk8704";
|
|
53
|
-
import { wk8705 } from "./wk8705";
|
|
54
|
-
|
|
55
|
-
export const postSynthChecks: PostSynthCheck[] = [
|
|
56
|
-
argo002,
|
|
57
|
-
argo003,
|
|
58
|
-
argo005,
|
|
59
|
-
flux002,
|
|
60
|
-
flux003,
|
|
61
|
-
wk8005,
|
|
62
|
-
wk8006,
|
|
63
|
-
wk8041,
|
|
64
|
-
wk8042,
|
|
65
|
-
wk8101,
|
|
66
|
-
wk8102,
|
|
67
|
-
wk8103,
|
|
68
|
-
wk8104,
|
|
69
|
-
wk8105,
|
|
70
|
-
wk8201,
|
|
71
|
-
wk8202,
|
|
72
|
-
wk8203,
|
|
73
|
-
wk8204,
|
|
74
|
-
wk8205,
|
|
75
|
-
wk8207,
|
|
76
|
-
wk8208,
|
|
77
|
-
wk8209,
|
|
78
|
-
wk8301,
|
|
79
|
-
wk8302,
|
|
80
|
-
wk8303,
|
|
81
|
-
wk8304,
|
|
82
|
-
wk8305,
|
|
83
|
-
wk8306,
|
|
84
|
-
wk8401,
|
|
85
|
-
wk8402,
|
|
86
|
-
wk8403,
|
|
87
|
-
wk8404,
|
|
88
|
-
wk8405,
|
|
89
|
-
wk8406,
|
|
90
|
-
wk8407,
|
|
91
|
-
wk8501,
|
|
92
|
-
wk8502,
|
|
93
|
-
wk8503,
|
|
94
|
-
wk8504,
|
|
95
|
-
wk8505,
|
|
96
|
-
wk8601,
|
|
97
|
-
wk8602,
|
|
98
|
-
wk8603,
|
|
99
|
-
wk8604,
|
|
100
|
-
wk8605,
|
|
101
|
-
wk8606,
|
|
102
|
-
wk8701,
|
|
103
|
-
wk8702,
|
|
104
|
-
wk8703,
|
|
105
|
-
wk8704,
|
|
106
|
-
wk8705,
|
|
107
|
-
];
|