* feat(management-engine): reject a node profile whose profile and tag are already published Add a ValidatingAdmissionPolicy that denies creating a NodeProfile when another NodeProfile already publishes the same profile and tag. Policies live one rule per file under config/admission/policies, installed by config/state and by the Helm chart alongside the CRDs with the same retention. The NVKECluster reconciler keeps its ambiguity check, because the policy reads existing profiles from the API server cache. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * feat(management-engine): report a duplicate node profile as a field error The operator API mapped the unique-node-profile denial to a bare 422 with no field errors. translate now recognizes a ValidatingAdmissionPolicy denial by the policy name the API server puts in the cause, and reports the approved diagnostic from a per-policy table, mapped to the public shape like a schema cause. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(management-engine): map only the duplicate denial, not policy failures The API server reports a policy it cannot configure or evaluate under the same policy name as a denial. Each policy's diagnostic now also records the fixed start of its denial message, so a configuration or evaluation failure stays a bare 422 instead of reporting a duplicate. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * chore(management-engine): drop the admission message comment from the policy Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com>
Chart packaging extensions
make chart runs the pinned Kubebuilder Helm plugin in fresh staging and then
packages these extensions. Workload templates, values and state assets in
chart/ are generated output; chart/Chart.yaml is maintained
package metadata.
- Change runtime manifests under
config/managerorconfig/dev/*-api.yaml, and permission rules underconfig/rbac,config/devor the Go RBAC markers. Generation carries those changes into Helm; do not edit the generated Deployment or repeat its defaults. - Change chart-only installation behavior in
templates/,values.jsonandvalues.schema.jsonhere. These define component switches, target namespaces, connection references and the identities that state RBAC binds. ../chartgenapplies checked hooks to the plugin output for those choices. The manager and each API are generated in separate fresh plugin staging runs. API adapters scope native manager values to each API and add connection, identity and probe-value hooks. Defaults remain generated from source manifests. An unexpected hook shape fails generation, so a plugin upgrade requires review instead of silently dropping behavior.
The plugin preserves existing values by default. Fresh staging regenerates
runtime defaults before adding values.json, so source changes remain visible.
Source volumes are already present in the generated template; their duplicated
plugin extra-volume defaults are cleared before site additions are applied.
State schemas and RBAC are packaged from canonical files, with one maintained
copy of each definition.
Run make chart-check chart-assets-check to verify generation and installation
modes. The propagation test changes source resources, an environment variable,
a probe, a volume, envFrom and a permission, then verifies the final Helm
rendering for the manager and both APIs. Source connection flags are replaced by
named chart settings, so Kustomize-specific endpoints and paths do not become duplicate Helm arguments.
Created with AI assistance