@intentius/chant-lexicon-k8s 0.124.98 → 0.124.100
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 +0 -1
- package/dist/application-set.d.ts +0 -1
- package/dist/behaviour-kinds.d.ts +0 -1
- package/dist/cluster-secret.d.ts +0 -1
- 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 +0 -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 +0 -1
- package/dist/config.d.ts +0 -1
- 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 +0 -1
- 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 +2 -3
- package/dist/import/generator.js +6 -2
- package/dist/import/live-export.d.ts +0 -1
- package/dist/import/parser.d.ts +0 -1
- package/dist/import/parser.js +34 -7
- package/dist/import/testdata/embedded/fixtures.d.ts +0 -1
- package/dist/import/typed-classes.d.ts +21 -2
- package/dist/import/typed-classes.js +41 -3
- 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 +5 -3
- 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 +0 -1
- package/dist/kustomize/rendered-entity.d.ts +0 -1
- package/dist/kustomize/root.d.ts +0 -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 +0 -1
- package/dist/lint/post-synth/argo002.d.ts +0 -1
- package/dist/lint/post-synth/argo003.d.ts +0 -1
- package/dist/lint/post-synth/argo005.d.ts +0 -1
- package/dist/lint/post-synth/crd-schema-helpers.d.ts +0 -1
- package/dist/lint/post-synth/flux002.d.ts +0 -1
- package/dist/lint/post-synth/flux003.d.ts +0 -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 +0 -1
- 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 +0 -1
- package/dist/lint/post-synth/wk8006.d.ts +0 -1
- package/dist/lint/post-synth/wk8041.d.ts +0 -1
- package/dist/lint/post-synth/wk8042.d.ts +0 -1
- package/dist/lint/post-synth/wk8101.d.ts +0 -1
- package/dist/lint/post-synth/wk8102.d.ts +0 -1
- package/dist/lint/post-synth/wk8103.d.ts +0 -1
- package/dist/lint/post-synth/wk8104.d.ts +0 -1
- package/dist/lint/post-synth/wk8105.d.ts +0 -1
- package/dist/lint/post-synth/wk8201.d.ts +0 -1
- package/dist/lint/post-synth/wk8202.d.ts +0 -1
- package/dist/lint/post-synth/wk8203.d.ts +0 -1
- package/dist/lint/post-synth/wk8204.d.ts +0 -1
- package/dist/lint/post-synth/wk8205.d.ts +0 -1
- package/dist/lint/post-synth/wk8207.d.ts +0 -1
- package/dist/lint/post-synth/wk8208.d.ts +0 -1
- package/dist/lint/post-synth/wk8209.d.ts +0 -1
- package/dist/lint/post-synth/wk8301.d.ts +0 -1
- package/dist/lint/post-synth/wk8302.d.ts +0 -1
- package/dist/lint/post-synth/wk8303.d.ts +0 -1
- package/dist/lint/post-synth/wk8304.d.ts +0 -1
- package/dist/lint/post-synth/wk8305.d.ts +0 -1
- package/dist/lint/post-synth/wk8306.d.ts +0 -1
- package/dist/lint/post-synth/wk8401.d.ts +0 -1
- package/dist/lint/post-synth/wk8402.d.ts +0 -1
- package/dist/lint/post-synth/wk8403.d.ts +0 -1
- package/dist/lint/post-synth/wk8404.d.ts +0 -1
- package/dist/lint/post-synth/wk8405.d.ts +0 -1
- package/dist/lint/post-synth/wk8406.d.ts +0 -1
- package/dist/lint/post-synth/wk8407.d.ts +0 -1
- 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/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 +0 -1
- package/dist/rules/top-level-fields-helpers.ts +54 -0
- 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 +0 -1
- package/dist/workspace-member.js +1 -9
- package/package.json +12 -13
- 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/application-paths.d.ts.map +0 -1
- package/dist/application-set.d.ts.map +0 -1
- package/dist/behaviour-kinds.d.ts.map +0 -1
- package/dist/cluster-secret.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/helm-references.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/import/typed-classes.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/application-paths.ts +0 -96
- package/src/application-set.test.ts +0 -130
- package/src/application-set.ts +0 -336
- package/src/behaviour-kinds.ts +0 -88
- package/src/cluster-secret.test.ts +0 -117
- package/src/cluster-secret.ts +0 -76
- 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 -110
- 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 -113
- package/src/config.ts +0 -235
- 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/helm-references.test.ts +0 -149
- package/src/helm-references.ts +0 -425
- 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 -197
- package/src/import/generator.ts +0 -348
- 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 -233
- package/src/import/parser.ts +0 -263
- package/src/import/roundtrip-build.test.ts +0 -224
- 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/import/typed-classes.ts +0 -168
- 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/helm.test.ts +0 -183
- package/src/kustomize/render.ts +0 -232
- package/src/kustomize/rendered-entity.ts +0 -82
- package/src/kustomize/root.test.ts +0 -309
- package/src/kustomize/root.ts +0 -100
- 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 -54
- package/src/lint/post-synth/argo002.ts +0 -48
- package/src/lint/post-synth/argo003.ts +0 -81
- package/src/lint/post-synth/argo005.ts +0 -85
- package/src/lint/post-synth/audit-identity.test.ts +0 -65
- package/src/lint/post-synth/crd-schema-helpers.ts +0 -235
- package/src/lint/post-synth/flux002.ts +0 -78
- package/src/lint/post-synth/flux003.ts +0 -76
- 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 -296
- 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 -2942
- package/src/lint/post-synth/sops-helpers.ts +0 -76
- package/src/lint/post-synth/wk8005.ts +0 -107
- package/src/lint/post-synth/wk8006.ts +0 -65
- package/src/lint/post-synth/wk8041.ts +0 -69
- 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 -41
- package/src/lint/post-synth/wk8103.ts +0 -41
- package/src/lint/post-synth/wk8104.ts +0 -65
- package/src/lint/post-synth/wk8105.ts +0 -41
- package/src/lint/post-synth/wk8201.ts +0 -51
- package/src/lint/post-synth/wk8202.ts +0 -42
- package/src/lint/post-synth/wk8203.ts +0 -42
- package/src/lint/post-synth/wk8204.ts +0 -84
- package/src/lint/post-synth/wk8205.ts +0 -52
- 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 -55
- 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 -46
- 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 -50
- package/src/lint/post-synth/wk8405.ts +0 -85
- package/src/lint/post-synth/wk8406.ts +0 -56
- 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 -251
- package/src/reference-catalog.ts +0 -438
- 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/helm-chart-missing/kustomization.yaml +0 -8
- package/src/testdata/helm-chart-root/charts/webchart/Chart.yaml +0 -3
- package/src/testdata/helm-chart-root/charts/webchart/templates/configmap.yaml +0 -6
- package/src/testdata/helm-chart-root/charts/webchart/values.yaml +0 -1
- package/src/testdata/helm-chart-root/kustomization.yaml +0 -9
- package/src/testdata/helm-chart-root/values.yaml +0 -1
- 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/argo-clusters/clusters.yaml +0 -34
- package/src/testdata/workspace-members/argo-set/all.yaml +0 -43
- package/src/testdata/workspace-members/flux/apps.yaml +0 -12
- package/src/testdata/workspace-members/flux/kustomization.yaml +0 -4
- package/src/testdata/workspace-members/plain/deploy.yaml +0 -27
- package/src/testdata/workspace-members/plain/es.yaml +0 -15
- package/src/testdata/workspace-members/templated/block.yaml +0 -6
- package/src/testdata/workspace-members/templated/chart-cm.yaml +0 -4
- package/src/testdata/workspace-members/templated/cm.yaml +0 -6
- 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 -43
- package/src/workspace-member.test.ts +0 -220
- package/src/workspace-member.ts +0 -269
- /package/{src → dist}/generated/list-map-keys.json +0 -0
- /package/{src → dist}/generated/operations.json +0 -0
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Embedded content through `chant import` (#2962): a manifest holding a
|
|
3
|
-
* collector config, rule groups or dashboard JSON imports as the owning
|
|
4
|
-
* lexicon's typed declarations, referenced from the k8s resource, and
|
|
5
|
-
* `chant build` gives back the same content.
|
|
6
|
-
*
|
|
7
|
-
* Fixtures (testdata/embedded/, provenance in its README.md): the
|
|
8
|
-
* opentelemetry-collector Helm chart's rendered daemonset-only example, the
|
|
9
|
-
* node-exporter PrometheusRule of kube-prometheus, a kube-prometheus
|
|
10
|
-
* dashboard ConfigMap with the Grafana sidecar label, the k8s build output
|
|
11
|
-
* of examples/agent-observability, the alertmanager Helm chart's ConfigMap
|
|
12
|
-
* holding Alertmanager's example config, and a ConfigMap holding a v2
|
|
13
|
-
* dashboard Grafana 13 exported (#3031), and a Grafana Operator
|
|
14
|
-
* GrafanaDashboard holding the kube-prometheus dashboard in spec.json (#3015).
|
|
15
|
-
*
|
|
16
|
-
* "The same" is per owner: a collector config equal as parsed YAML, rule
|
|
17
|
-
* groups equal as parsed YAML, an alertmanager.yml equal as the prometheus
|
|
18
|
-
* importer reads it (receivers and time intervals sorted by name, which the
|
|
19
|
-
* serializer does), a dashboard equal after the grafana lexicon's
|
|
20
|
-
* `normalizeDashboard` with its importer's edits applied (the grafana round
|
|
21
|
-
* trip's own measure). Content no lexicon claims, and a v2 dashboard, which
|
|
22
|
-
* grafana keeps as written, must come back as the same text.
|
|
23
|
-
* embedded-types.e2e.test.ts type-checks the generated source.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import { describe, expect, test } from "vitest";
|
|
27
|
-
import { join } from "path";
|
|
28
|
-
import { load, loadAll } from "js-yaml";
|
|
29
|
-
import { build } from "@intentius/chant/build";
|
|
30
|
-
import type { SerializerResult } from "@intentius/chant/serializer";
|
|
31
|
-
import { lintCommand } from "@intentius/chant/cli/commands/lint";
|
|
32
|
-
import { otelSerializer } from "@intentius/chant-lexicon-otel";
|
|
33
|
-
import { prometheusSerializer } from "@intentius/chant-lexicon-prometheus";
|
|
34
|
-
import { grafanaSerializer } from "@intentius/chant-lexicon-grafana";
|
|
35
|
-
import { parseGrafana, type DashboardResourceMetadata } from "@intentius/chant-lexicon-grafana/import/parser";
|
|
36
|
-
import { applyEdits } from "@intentius/chant-lexicon-grafana/import/edits";
|
|
37
|
-
import { normalizeDashboard } from "@intentius/chant-lexicon-grafana/import/normalize";
|
|
38
|
-
import { k8sSerializer } from "../serializer";
|
|
39
|
-
import { alertmanagerConfig, importManifest, read, removeDir, type Imported } from "./testdata/embedded/fixtures";
|
|
40
|
-
|
|
41
|
-
type Json = Record<string, unknown>;
|
|
42
|
-
|
|
43
|
-
interface RoundTrip extends Imported {
|
|
44
|
-
/** The source manifest's documents. */
|
|
45
|
-
input: Json[];
|
|
46
|
-
/** The rebuilt k8s documents. */
|
|
47
|
-
output: Json[];
|
|
48
|
-
buildErrors: unknown[];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function primary(out: string | SerializerResult | undefined): string {
|
|
52
|
-
if (out === undefined) return "";
|
|
53
|
-
return typeof out === "string" ? out : out.primary;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
async function roundTrip(fixture: string): Promise<RoundTrip> {
|
|
57
|
-
const yaml = read(fixture);
|
|
58
|
-
const imported = await importManifest(yaml);
|
|
59
|
-
try {
|
|
60
|
-
expect(imported.result.error).toBeUndefined();
|
|
61
|
-
expect(imported.result.success).toBe(true);
|
|
62
|
-
const result = await build(imported.srcDir, [k8sSerializer, otelSerializer, prometheusSerializer, grafanaSerializer]);
|
|
63
|
-
return {
|
|
64
|
-
...imported,
|
|
65
|
-
input: (loadAll(yaml) as Json[]).filter((d) => d),
|
|
66
|
-
output: (loadAll(primary(result.outputs.get("k8s"))) as Json[]).filter((d) => d),
|
|
67
|
-
buildErrors: result.errors,
|
|
68
|
-
};
|
|
69
|
-
} finally {
|
|
70
|
-
removeDir(imported.dir);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function find(docs: Json[], kind: string, name: string): Json {
|
|
75
|
-
const doc = docs.find((d) => d.kind === kind && (d.metadata as Json | undefined)?.name === name);
|
|
76
|
-
if (!doc) throw new Error(`no ${kind} ${name}`);
|
|
77
|
-
return doc;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** A collector config as the collector reads it: an empty component is `{}` whether written `{}` or left null. */
|
|
81
|
-
function collectorConfig(text: string): Json {
|
|
82
|
-
const doc = (load(text) ?? {}) as Json;
|
|
83
|
-
for (const section of ["receivers", "processors", "exporters", "connectors", "extensions"]) {
|
|
84
|
-
const s = doc[section] as Json | undefined;
|
|
85
|
-
if (!s) continue;
|
|
86
|
-
for (const id of Object.keys(s)) if (s[id] === null) s[id] = {};
|
|
87
|
-
}
|
|
88
|
-
return doc;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** A dashboard as the grafana round trip compares it: the importer's edits applied to the source, both normalized. */
|
|
92
|
-
function dashboards(source: string, rebuilt: string): { expected: Json; actual: Json } {
|
|
93
|
-
const [resource] = parseGrafana(source).resources;
|
|
94
|
-
const meta = resource.metadata as unknown as DashboardResourceMetadata;
|
|
95
|
-
return {
|
|
96
|
-
expected: normalizeDashboard(applyEdits(meta.source as Json, meta.edits)),
|
|
97
|
-
actual: normalizeDashboard(JSON.parse(rebuilt) as Json),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/** The directories of the generated source holding an owner's modules. */
|
|
102
|
-
function embeddedDirs(files: Record<string, string>): string[] {
|
|
103
|
-
return [...new Set(Object.keys(files).filter((p) => p.includes("/")).map((p) => p.split("/")[0]))].sort();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
describe("manifest -> TypeScript -> manifest, with embedded content imported by its owner", () => {
|
|
107
|
-
test("a collector's ConfigMap becomes typed otel declarations, and the DaemonSet comes back whole", async () => {
|
|
108
|
-
const out = await roundTrip("otel-collector-daemonset.yaml");
|
|
109
|
-
expect(out.buildErrors).toEqual([]);
|
|
110
|
-
expect(out.result.warnings).toEqual([]);
|
|
111
|
-
|
|
112
|
-
const main = out.files["main.ts"];
|
|
113
|
-
expect(main).toContain('import { collectorYaml } from "@intentius/chant-lexicon-otel";');
|
|
114
|
-
expect(main).toMatch(/relay: collectorYaml\(\[\s+jaeger,/);
|
|
115
|
-
expect(main).toContain('from "./example-opentelemetry-collector-agent/receivers";');
|
|
116
|
-
expect(out.files["example-opentelemetry-collector-agent/receivers.ts"]).toContain("new OtlpReceiver(");
|
|
117
|
-
expect(out.files["example-opentelemetry-collector-agent/pipelines.ts"]).toContain("new Pipeline(");
|
|
118
|
-
|
|
119
|
-
const name = "example-opentelemetry-collector-agent";
|
|
120
|
-
const before = find(out.input, "ConfigMap", name).data as Json;
|
|
121
|
-
const after = find(out.output, "ConfigMap", name).data as Json;
|
|
122
|
-
expect(collectorConfig(after.relay as string)).toEqual(collectorConfig(before.relay as string));
|
|
123
|
-
|
|
124
|
-
// The whole DaemonSet comes back, pod template included. The chart renders
|
|
125
|
-
// `spec:` followed by a whitespace-only line, which core's YAML reader
|
|
126
|
-
// used to read as the end of the template's spec, moving its keys up to
|
|
127
|
-
// the DaemonSet's spec (#2991).
|
|
128
|
-
const daemonSet = find(out.output, "DaemonSet", name);
|
|
129
|
-
expect(daemonSet).toEqual(find(out.input, "DaemonSet", name));
|
|
130
|
-
const template = (daemonSet.spec as Json).template as Json;
|
|
131
|
-
expect((template.spec as Json).serviceAccountName).toBe("example-opentelemetry-collector");
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
test("a PrometheusRule's spec.groups become prometheus RuleGroups", async () => {
|
|
135
|
-
const out = await roundTrip("node-exporter-prometheusrule.yaml");
|
|
136
|
-
expect(out.buildErrors).toEqual([]);
|
|
137
|
-
expect(out.result.warnings).toEqual([]);
|
|
138
|
-
|
|
139
|
-
const main = out.files["main.ts"];
|
|
140
|
-
expect(main).toContain('from "./node-exporter-rules/rules";');
|
|
141
|
-
expect(main).toMatch(/groups: \[[\s\S]*nodeExporter/);
|
|
142
|
-
expect(out.files["node-exporter-rules/rules.ts"]).toContain("new RuleGroup(");
|
|
143
|
-
|
|
144
|
-
const before = find(out.input, "PrometheusRule", "node-exporter-rules");
|
|
145
|
-
const after = find(out.output, "PrometheusRule", "node-exporter-rules");
|
|
146
|
-
expect(after).toEqual(before);
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
test("a dashboard ConfigMap with the sidecar label becomes a grafana Dashboard", async () => {
|
|
150
|
-
const out = await roundTrip("grafana-dashboard-configmap.yaml");
|
|
151
|
-
expect(out.buildErrors).toEqual([]);
|
|
152
|
-
|
|
153
|
-
const main = out.files["main.ts"];
|
|
154
|
-
expect(main).toContain('import { dashboardJson } from "@intentius/chant-lexicon-grafana";');
|
|
155
|
-
expect(main).toMatch(/"alertmanager-overview\.json": dashboardJson\(\w+\)/);
|
|
156
|
-
expect(out.files["grafana-dashboard-alertmanager-overview/dashboard.ts"]).toContain("new Dashboard(");
|
|
157
|
-
|
|
158
|
-
const name = "grafana-dashboard-alertmanager-overview";
|
|
159
|
-
const before = find(out.input, "ConfigMap", name);
|
|
160
|
-
const after = find(out.output, "ConfigMap", name);
|
|
161
|
-
expect(after.metadata).toEqual(before.metadata);
|
|
162
|
-
const { expected, actual } = dashboards(
|
|
163
|
-
(before.data as Json)["alertmanager-overview.json"] as string,
|
|
164
|
-
(after.data as Json)["alertmanager-overview.json"] as string,
|
|
165
|
-
);
|
|
166
|
-
expect(actual).toEqual(expected);
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
test("a Grafana Operator GrafanaDashboard's spec.json becomes a grafana Dashboard (#3015)", async () => {
|
|
170
|
-
const out = await roundTrip("grafana-operator-dashboard.yaml");
|
|
171
|
-
expect(out.buildErrors).toEqual([]);
|
|
172
|
-
|
|
173
|
-
const main = out.files["main.ts"];
|
|
174
|
-
expect(main).toContain('import { dashboardJson } from "@intentius/chant-lexicon-grafana";');
|
|
175
|
-
expect(main).toMatch(/json: dashboardJson\(\w+\)/);
|
|
176
|
-
expect(out.files["alertmanager-overview/dashboard.ts"]).toContain("new Dashboard(");
|
|
177
|
-
|
|
178
|
-
const before = find(out.input, "GrafanaDashboard", "alertmanager-overview");
|
|
179
|
-
const after = find(out.output, "GrafanaDashboard", "alertmanager-overview");
|
|
180
|
-
expect(after.metadata).toEqual(before.metadata);
|
|
181
|
-
const { json: beforeJson, ...beforeSpec } = before.spec as Json;
|
|
182
|
-
const { json: afterJson, ...afterSpec } = after.spec as Json;
|
|
183
|
-
expect(afterSpec).toEqual(beforeSpec);
|
|
184
|
-
const { expected, actual } = dashboards(beforeJson as string, afterJson as string);
|
|
185
|
-
expect(actual).toEqual(expected);
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
test("the alertmanager chart's ConfigMap becomes typed prometheus declarations through alertmanagerYaml (#3031)", async () => {
|
|
189
|
-
const out = await roundTrip("alertmanager-configmap.yaml");
|
|
190
|
-
expect(out.buildErrors).toEqual([]);
|
|
191
|
-
expect(out.result.warnings).toEqual([]);
|
|
192
|
-
|
|
193
|
-
const main = out.files["main.ts"];
|
|
194
|
-
expect(main).toContain('import { alertmanagerYaml } from "@intentius/chant-lexicon-prometheus";');
|
|
195
|
-
expect(main).toMatch(/"alertmanager\.yml": alertmanagerYaml\(\[\s+teamXMails,/);
|
|
196
|
-
expect(embeddedDirs(out.files)).toEqual(["alertmanager"]);
|
|
197
|
-
expect(out.files["alertmanager/receivers.ts"]).toContain("new Receiver(");
|
|
198
|
-
expect(out.files["alertmanager/routes.ts"]).toContain("new Route(");
|
|
199
|
-
expect(out.files["alertmanager/inhibit-rules.ts"]).toContain("new InhibitRule(");
|
|
200
|
-
expect(out.files["alertmanager/settings.ts"]).toContain("new AlertmanagerSettings(");
|
|
201
|
-
|
|
202
|
-
const before = find(out.input, "ConfigMap", "alertmanager");
|
|
203
|
-
const after = find(out.output, "ConfigMap", "alertmanager");
|
|
204
|
-
expect(after.metadata).toEqual(before.metadata);
|
|
205
|
-
const text = (after.data as Json)["alertmanager.yml"] as string;
|
|
206
|
-
expect(alertmanagerConfig(text)).toEqual(alertmanagerConfig((before.data as Json)["alertmanager.yml"] as string));
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
test("a v2 dashboard ConfigMap is kept as written, with a warning saying why (#3031)", async () => {
|
|
210
|
-
const out = await roundTrip("grafana-v2-dashboard-configmap.yaml");
|
|
211
|
-
expect(out.buildErrors).toEqual([]);
|
|
212
|
-
expect(out.result.warnings).toHaveLength(1);
|
|
213
|
-
expect(out.result.warnings[0]).toContain('ConfigMap grafana-dashboard-checkout-v2 data["checkout.json"] is a Grafana dashboard, kept as written:');
|
|
214
|
-
expect(out.result.warnings[0]).toContain("v2 dashboard");
|
|
215
|
-
expect(embeddedDirs(out.files)).toEqual([]);
|
|
216
|
-
expect(out.files["main.ts"]).not.toContain("dashboardJson");
|
|
217
|
-
|
|
218
|
-
const name = "grafana-dashboard-checkout-v2";
|
|
219
|
-
expect(find(out.output, "ConfigMap", name)).toEqual(find(out.input, "ConfigMap", name));
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
test("examples/agent-observability's k8s output: every ConfigMap value comes back, the owned ones typed", async () => {
|
|
223
|
-
const out = await roundTrip("agent-observability.yaml");
|
|
224
|
-
expect(out.buildErrors).toEqual([]);
|
|
225
|
-
expect(embeddedDirs(out.files)).toEqual([
|
|
226
|
-
"alertmanager-config",
|
|
227
|
-
"grafana-dashboard-genai-agents",
|
|
228
|
-
"grafana-dashboard-red-traces-span-metrics",
|
|
229
|
-
"grafana-dashboard-slo-support-agent-runs",
|
|
230
|
-
"otel-agent-config",
|
|
231
|
-
"otel-gateway-config",
|
|
232
|
-
"prometheus-config-prometheus",
|
|
233
|
-
"prometheus-config-rules",
|
|
234
|
-
]);
|
|
235
|
-
// The rule group an Slo() built comes back as that Slo, referenced by its rules.
|
|
236
|
-
expect(out.files["prometheus-config-rules/slos.ts"]).toContain("Slo(");
|
|
237
|
-
expect(Object.values(out.files).join("\n")).toMatch(/ruleFileYaml\(\[\w+\.rules\]\)/);
|
|
238
|
-
|
|
239
|
-
const configMaps = out.input.filter((d) => d.kind === "ConfigMap");
|
|
240
|
-
expect(configMaps.length).toBeGreaterThanOrEqual(7);
|
|
241
|
-
for (const before of configMaps) {
|
|
242
|
-
const name = (before.metadata as Json).name as string;
|
|
243
|
-
const after = find(out.output, "ConfigMap", name);
|
|
244
|
-
const data = before.data as Record<string, string>;
|
|
245
|
-
expect(Object.keys(after.data as Json).sort(), name).toEqual(Object.keys(data).sort());
|
|
246
|
-
for (const [key, text] of Object.entries(data)) {
|
|
247
|
-
const rebuilt = (after.data as Record<string, string>)[key];
|
|
248
|
-
const at = `${name} ${key}`;
|
|
249
|
-
if (key.endsWith(".json")) {
|
|
250
|
-
const { expected, actual } = dashboards(text, rebuilt);
|
|
251
|
-
expect(actual, at).toEqual(expected);
|
|
252
|
-
} else if (name.startsWith("otel-")) {
|
|
253
|
-
expect(collectorConfig(rebuilt), at).toEqual(collectorConfig(text));
|
|
254
|
-
} else {
|
|
255
|
-
expect(load(rebuilt), at).toEqual(load(text));
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
test("a detected manifest delegates the same way", async () => {
|
|
262
|
-
const imported = await importManifest(read("node-exporter-prometheusrule.yaml"), { detect: true });
|
|
263
|
-
try {
|
|
264
|
-
expect(imported.result.lexicon).toBe("k8s");
|
|
265
|
-
expect(imported.result.detected).toBe(true);
|
|
266
|
-
expect(imported.result.generatedFiles).toEqual(["main.ts", "node-exporter-rules/rules.ts"]);
|
|
267
|
-
} finally {
|
|
268
|
-
removeDir(imported.dir);
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
test("the owners' modules lint clean", async () => {
|
|
273
|
-
const yaml = [
|
|
274
|
-
read("otel-collector-daemonset.yaml"),
|
|
275
|
-
read("node-exporter-prometheusrule.yaml"),
|
|
276
|
-
read("grafana-dashboard-configmap.yaml"),
|
|
277
|
-
read("alertmanager-configmap.yaml"),
|
|
278
|
-
].join("\n---\n");
|
|
279
|
-
const imported = await importManifest(yaml);
|
|
280
|
-
try {
|
|
281
|
-
const dirs = embeddedDirs(imported.files);
|
|
282
|
-
expect(dirs).toEqual([
|
|
283
|
-
"alertmanager",
|
|
284
|
-
"example-opentelemetry-collector-agent",
|
|
285
|
-
"grafana-dashboard-alertmanager-overview",
|
|
286
|
-
"node-exporter-rules",
|
|
287
|
-
]);
|
|
288
|
-
for (const dir of dirs) {
|
|
289
|
-
const lint = await lintCommand({ path: join(imported.srcDir, dir), format: "stylish" });
|
|
290
|
-
if (lint.errorCount + lint.warningCount > 0) console.log(lint.output);
|
|
291
|
-
expect(lint.errorCount, dir).toBe(0);
|
|
292
|
-
expect(lint.warningCount, dir).toBe(0);
|
|
293
|
-
}
|
|
294
|
-
} finally {
|
|
295
|
-
removeDir(imported.dir);
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What `chant import` generates for manifests with embedded content (#2962,
|
|
3
|
-
* #3031)
|
|
4
|
-
* type-checks: the k8s module that references the owners' declarations, and
|
|
5
|
-
* the owners' modules. Compiling takes longer than the unit-test budget
|
|
6
|
-
* allows, so this runs with the e2e tests.
|
|
7
|
-
*/
|
|
8
|
-
import { describe, expect, test } from "vitest";
|
|
9
|
-
import { join } from "path";
|
|
10
|
-
import * as ts from "typescript";
|
|
11
|
-
import { importManifest, read, removeDir, repoRoot } from "./testdata/embedded/fixtures";
|
|
12
|
-
|
|
13
|
-
/** Type errors in the generated files, compiled with the repo's compiler options. */
|
|
14
|
-
function typeErrors(srcDir: string, paths: string[]): string[] {
|
|
15
|
-
const files = paths.map((p) => join(srcDir, p));
|
|
16
|
-
const configFile = ts.readConfigFile(join(repoRoot, "tsconfig.json"), ts.sys.readFile);
|
|
17
|
-
const parsed = ts.parseJsonConfigFileContent(configFile.config, ts.sys, repoRoot);
|
|
18
|
-
const program = ts.createProgram(files, { ...parsed.options, noEmit: true });
|
|
19
|
-
const real = (f: string) => ts.sys.realpath?.(f) ?? f;
|
|
20
|
-
const fileSet = new Set(files.map(real));
|
|
21
|
-
// A program that saw none of the files would pass vacuously.
|
|
22
|
-
expect(files.every((f) => program.getSourceFile(f) !== undefined)).toBe(true);
|
|
23
|
-
return ts
|
|
24
|
-
.getPreEmitDiagnostics(program)
|
|
25
|
-
.filter((d) => d.file && fileSet.has(real(d.file.fileName)))
|
|
26
|
-
.map((d) => `${real(d.file!.fileName).slice(real(srcDir).length + 1)}: ${ts.flattenDiagnosticMessageText(d.messageText, "\n")}`);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
describe("the source generated for embedded content type-checks", () => {
|
|
30
|
-
test.each([
|
|
31
|
-
"otel-collector-daemonset.yaml",
|
|
32
|
-
"node-exporter-prometheusrule.yaml",
|
|
33
|
-
"grafana-dashboard-configmap.yaml",
|
|
34
|
-
"agent-observability.yaml",
|
|
35
|
-
"alertmanager-configmap.yaml",
|
|
36
|
-
])("%s", async (fixture) => {
|
|
37
|
-
const imported = await importManifest(read(fixture));
|
|
38
|
-
try {
|
|
39
|
-
expect(imported.result.success).toBe(true);
|
|
40
|
-
expect(typeErrors(imported.srcDir, Object.keys(imported.files))).toEqual([]);
|
|
41
|
-
} finally {
|
|
42
|
-
removeDir(imported.dir);
|
|
43
|
-
}
|
|
44
|
-
}, 180_000);
|
|
45
|
-
});
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "vitest";
|
|
2
|
-
import { EmbeddedImports, type EmbeddedContent, type EmbeddedContentImporter } from "@intentius/chant/import/embedded";
|
|
3
|
-
import { K8sParser } from "./parser";
|
|
4
|
-
import { K8sGenerator } from "./generator";
|
|
5
|
-
|
|
6
|
-
const MANIFEST = `
|
|
7
|
-
apiVersion: v1
|
|
8
|
-
kind: ConfigMap
|
|
9
|
-
metadata:
|
|
10
|
-
name: otel-agent
|
|
11
|
-
labels:
|
|
12
|
-
app.kubernetes.io/name: otel-agent
|
|
13
|
-
data:
|
|
14
|
-
config.yaml: |
|
|
15
|
-
receivers:
|
|
16
|
-
otlp: {}
|
|
17
|
-
exporters:
|
|
18
|
-
debug: {}
|
|
19
|
-
service:
|
|
20
|
-
pipelines:
|
|
21
|
-
traces:
|
|
22
|
-
receivers: [otlp]
|
|
23
|
-
exporters: [debug]
|
|
24
|
-
plain.txt: just text
|
|
25
|
-
---
|
|
26
|
-
apiVersion: v1
|
|
27
|
-
kind: ConfigMap
|
|
28
|
-
metadata:
|
|
29
|
-
name: dashboards
|
|
30
|
-
labels:
|
|
31
|
-
grafana_dashboard: "1"
|
|
32
|
-
data:
|
|
33
|
-
api.json: '{"title": "API", "panels": [], "schemaVersion": 41}'
|
|
34
|
-
---
|
|
35
|
-
apiVersion: monitoring.coreos.com/v1
|
|
36
|
-
kind: PrometheusRule
|
|
37
|
-
metadata:
|
|
38
|
-
name: api-rules
|
|
39
|
-
spec:
|
|
40
|
-
groups:
|
|
41
|
-
- name: api
|
|
42
|
-
rules:
|
|
43
|
-
- alert: Down
|
|
44
|
-
expr: up == 0
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
/** Claims every offered piece of content, recording it, as `fake.ts` exporting `thing`. */
|
|
48
|
-
function claimAll(seen: EmbeddedContent[]): EmbeddedContentImporter {
|
|
49
|
-
return {
|
|
50
|
-
what: "anything",
|
|
51
|
-
matches: () => true,
|
|
52
|
-
import: (c) => {
|
|
53
|
-
seen.push(c);
|
|
54
|
-
return {
|
|
55
|
-
files: [{ path: "fake.ts", content: "const thing = 1;\n\nexport { thing };\n" }],
|
|
56
|
-
value: { bindings: [{ from: "fake.ts", name: "thing" }], shape: "single", through: { from: "@acme/fake", name: "render" } },
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
describe("k8s import offers embedded content (#2962)", () => {
|
|
63
|
-
test("without a resolver, everything is kept as written", () => {
|
|
64
|
-
const ir = new K8sParser().parse(MANIFEST);
|
|
65
|
-
expect((ir.resources[0].properties.data as Record<string, unknown>)["config.yaml"]).toContain("receivers:");
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
test("ConfigMap values that parse as documents, and a PrometheusRule's groups, are offered", () => {
|
|
69
|
-
const seen: EmbeddedContent[] = [];
|
|
70
|
-
const embedded = new EmbeddedImports([{ lexicon: "acme", importer: claimAll(seen) }]);
|
|
71
|
-
new K8sParser().parse(MANIFEST, { embedded });
|
|
72
|
-
|
|
73
|
-
// plain.txt is not a document and is not offered.
|
|
74
|
-
expect(seen.map((c) => [c.location, c.directory, c.select, c.expectedOwner?.lexicon])).toEqual([
|
|
75
|
-
['ConfigMap otel-agent data["config.yaml"]', "otel-agent-config", undefined, "otel"],
|
|
76
|
-
['ConfigMap dashboards data["api.json"]', "dashboards", undefined, "grafana"],
|
|
77
|
-
["PrometheusRule api-rules spec.groups", "api-rules", "groups", "prometheus"],
|
|
78
|
-
]);
|
|
79
|
-
expect(seen[1].labels).toEqual({ grafana_dashboard: "1" });
|
|
80
|
-
expect(seen[2].document).toEqual({ groups: [{ name: "api", rules: [{ alert: "Down", expr: "up == 0" }] }] });
|
|
81
|
-
expect(embedded.files.map((f) => f.path)).toEqual(["otel-agent-config/fake.ts", "dashboards/fake.ts", "api-rules/fake.ts"]);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
test("the generator references what the owner declared, and quotes keys that are not identifiers", () => {
|
|
85
|
-
const embedded = new EmbeddedImports([{ lexicon: "acme", importer: claimAll([]) }]);
|
|
86
|
-
const ir = new K8sParser().parse(MANIFEST, { embedded });
|
|
87
|
-
const [main] = new K8sGenerator().generate(ir);
|
|
88
|
-
expect(main.content).toContain('import { render } from "@acme/fake";');
|
|
89
|
-
expect(main.content).toContain('import { thing } from "./otel-agent-config/fake";');
|
|
90
|
-
expect(main.content).toContain('import { thing as thing2 } from "./dashboards/fake";');
|
|
91
|
-
expect(main.content).toContain('"config.yaml": render(thing),');
|
|
92
|
-
expect(main.content).toContain('"api.json": render(thing2),');
|
|
93
|
-
expect(main.content).toContain("groups: render(thing3),");
|
|
94
|
-
expect(main.content).toContain('"plain.txt": "just text",');
|
|
95
|
-
expect(main.content).toContain('"app.kubernetes.io/name": "otel-agent",');
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
test("when no installed lexicon imports it, the content is kept and the expected owner is named", () => {
|
|
99
|
-
const embedded = new EmbeddedImports([]);
|
|
100
|
-
const ir = new K8sParser().parse(MANIFEST, { embedded });
|
|
101
|
-
expect((ir.resources[0].properties.data as Record<string, unknown>)["config.yaml"]).toContain("receivers:");
|
|
102
|
-
expect(embedded.warnings).toHaveLength(3);
|
|
103
|
-
expect(embedded.warnings[0]).toMatch(/^ConfigMap otel-agent data\["config.yaml"\] looks like an OpenTelemetry Collector config/);
|
|
104
|
-
expect(embedded.warnings[0]).toContain("@intentius/chant-lexicon-otel");
|
|
105
|
-
expect(embedded.warnings[1]).toContain("@intentius/chant-lexicon-grafana");
|
|
106
|
-
expect(embedded.warnings[2]).toContain("@intentius/chant-lexicon-prometheus");
|
|
107
|
-
const [main] = new K8sGenerator().generate(ir);
|
|
108
|
-
expect(main.content).not.toContain("import { render");
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
test("a GrafanaDashboard's spec.json is offered as text, and replaced by the owner's reference (#3015)", () => {
|
|
112
|
-
const seen: EmbeddedContent[] = [];
|
|
113
|
-
const embedded = new EmbeddedImports([{ lexicon: "acme", importer: claimAll(seen) }]);
|
|
114
|
-
const ir = new K8sParser().parse(
|
|
115
|
-
`
|
|
116
|
-
apiVersion: grafana.integreatly.org/v1beta1
|
|
117
|
-
kind: GrafanaDashboard
|
|
118
|
-
metadata:
|
|
119
|
-
name: api
|
|
120
|
-
spec:
|
|
121
|
-
instanceSelector:
|
|
122
|
-
matchLabels:
|
|
123
|
-
dashboards: grafana
|
|
124
|
-
folderRef: grafana-folder-services
|
|
125
|
-
json: '{"title": "API", "panels": [], "schemaVersion": 41}'
|
|
126
|
-
---
|
|
127
|
-
apiVersion: grafana.integreatly.org/v1beta1
|
|
128
|
-
kind: GrafanaDashboard
|
|
129
|
-
metadata:
|
|
130
|
-
name: remote
|
|
131
|
-
spec:
|
|
132
|
-
instanceSelector: {}
|
|
133
|
-
url: https://grafana.com/api/dashboards/1860/revisions/37/download
|
|
134
|
-
`,
|
|
135
|
-
{ embedded },
|
|
136
|
-
);
|
|
137
|
-
expect(seen.map((c) => [c.location, c.directory, c.text, c.expectedOwner?.lexicon])).toEqual([
|
|
138
|
-
["GrafanaDashboard api spec.json", "api", '{"title": "API", "panels": [], "schemaVersion": 41}', "grafana"],
|
|
139
|
-
]);
|
|
140
|
-
const [main] = new K8sGenerator().generate(ir);
|
|
141
|
-
expect(main.content).toContain("json: render(thing),");
|
|
142
|
-
expect(main.content).toContain('folderRef: "grafana-folder-services",');
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
test("an alertmanager.yml and a v2 dashboard name their expected owners (#3031)", () => {
|
|
146
|
-
const embedded = new EmbeddedImports([]);
|
|
147
|
-
new K8sParser().parse(
|
|
148
|
-
`
|
|
149
|
-
apiVersion: v1
|
|
150
|
-
kind: ConfigMap
|
|
151
|
-
metadata:
|
|
152
|
-
name: alertmanager
|
|
153
|
-
data:
|
|
154
|
-
alertmanager.yml: |
|
|
155
|
-
route:
|
|
156
|
-
receiver: team
|
|
157
|
-
receivers:
|
|
158
|
-
- name: team
|
|
159
|
-
---
|
|
160
|
-
apiVersion: v1
|
|
161
|
-
kind: ConfigMap
|
|
162
|
-
metadata:
|
|
163
|
-
name: dashboards-v2
|
|
164
|
-
data:
|
|
165
|
-
checkout.json: '{"apiVersion": "dashboard.grafana.app/v2beta1", "kind": "Dashboard", "spec": {"elements": {}, "layout": {}}}'
|
|
166
|
-
`,
|
|
167
|
-
{ embedded },
|
|
168
|
-
);
|
|
169
|
-
expect(embedded.offered.map((c) => c.expectedOwner)).toEqual([
|
|
170
|
-
{ lexicon: "prometheus", what: "an Alertmanager config" },
|
|
171
|
-
{ lexicon: "grafana", what: "a Grafana dashboard" },
|
|
172
|
-
]);
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
describe("the k8s generator's imports", () => {
|
|
177
|
-
test("a constructor named inside a string value is not imported", () => {
|
|
178
|
-
const ir = new K8sParser().parse(`
|
|
179
|
-
apiVersion: v1
|
|
180
|
-
kind: ConfigMap
|
|
181
|
-
metadata:
|
|
182
|
-
name: app
|
|
183
|
-
data:
|
|
184
|
-
main.js: 'const x = new Widget("a");'
|
|
185
|
-
`);
|
|
186
|
-
const [main] = new K8sGenerator().generate(ir);
|
|
187
|
-
expect(main.content.split("\n")[0]).toBe('import { ConfigMap } from "@intentius/chant-lexicon-k8s";');
|
|
188
|
-
});
|
|
189
|
-
});
|