Skip to content

Regenerate CRDs with generateEmbeddedObjectMeta flag - #402

Merged
sky333999 merged 1 commit into
mainfrom
sky333999/operator-helm
Jul 23, 2026
Merged

Regenerate CRDs with generateEmbeddedObjectMeta flag#402
sky333999 merged 1 commit into
mainfrom
sky333999/operator-helm

Conversation

@sky333999

Copy link
Copy Markdown
Contributor

Description

PR #395 (prometheus/k8s dependency bump) included regenerated CRDs that were produced without the Makefile's CRD_OPTIONS="crd:generateEmbeddedObjectMeta=true", which stripped the embedded ObjectMeta schema (labels, annotations, finalizers, name, namespace) from PVC template metadata in the AmazonCloudWatchAgent, DcgmExporter, and NeuronMonitor CRDs.

Because those metadata schemas became bare type: object with no properties and no x-kubernetes-preserve-unknown-fields, structural schema pruning would silently strip labels/annotations that users set on volumeClaimTemplates / ephemeral volume claim template metadata in their CRs.

This PR restores the schema by regenerating via make manifests (which applies the flag). Pure additions: 3 files, +68 lines, four restored ObjectMeta blocks. No other generated manifests changed.

Verification

  • make manifests output is now stable (re-running produces no diff)
  • YAML validated; restored blocks confirmed under the correct PVC template metadata parents
  • Instrumentation CRD unaffected (it has no embedded PVC metadata)

@sky333999
sky333999 merged commit a8d766c into main Jul 23, 2026
10 of 11 checks passed
@sky333999
sky333999 deleted the sky333999/operator-helm branch July 23, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants