Documentation
¶
Overview ¶
Command kustomizeconfig-generator generates examples/components/kustomizeconfig/kustomizeconfig.yaml from the ORC API types.
It discovers cross-references between ORC objects (and core Secrets) by scanning api/v1alpha1 for fields annotated with an "+orc:kustomize:ref=<Kind>" marker, then walks the actual (reflected) struct layout of every registered ORC Kind's Spec to compute the JSON path of each annotated field. The result is emitted as a kustomize Component "nameReference" configuration, grouped by referenced Kind.
The "kustomizeref" golangci-lint rule (tools/orc-api-linter) separately verifies that every KubernetesNameRef field carries the marker in the first place; a missing marker produces no diff here, so `make lint` is what catches that case, not this generator.