kustomizeconfig-generator

command
v3.0.0-pre1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL