Skip to content

feat: consolidate trustee and kyverno overrides via extraValueFiles#85

Open
butler54 wants to merge 1 commit into
validatedpatterns:mainfrom
butler54:feat/dry-overrides-extravaluefiles
Open

feat: consolidate trustee and kyverno overrides via extraValueFiles#85
butler54 wants to merge 1 commit into
validatedpatterns:mainfrom
butler54:feat/dry-overrides-extravaluefiles

Conversation

@butler54
Copy link
Copy Markdown
Collaborator

Consolidate duplicated inline overrides across profiles by using the VP framework's extraValueFiles mechanism.

Changes

Trustee overrides:

  • Fix overrides/values-trustee.yaml: remove FIXME global.coco.secured, add kbs.admin.format and kbs.https.enabled
  • Wire via extraValueFiles in: values-simple.yaml, values-baremetal.yaml, values-baremetal-gpu.yaml, values-trusted-hub.yaml
  • Remove inline duplicates (admin.format, secured, https, secretResources)
  • Keep profile-specific inline overrides: tdx, collateralService, gpu.enabled

Kyverno overrides:

  • Create overrides/values-kyverno.yaml with securityContext nulls + CRD/report disables for OpenShift compatibility
  • Wire via extraValueFiles in: values-simple.yaml, values-baremetal.yaml, values-baremetal-gpu.yaml
  • Remove inline duplicates (~15 lines per profile)
  • Keep backgroundController.resources inline in baremetal/baremetal-gpu only

Impact

Reduces ~25 lines of duplication per profile while maintaining profile-specific customization. No functional change — same configuration values, just DRYer organization.

Relates to Wave 1 PR 1B of the bare metal attestation hardening plan.

Remove duplicated inline overrides across profiles by consolidating
common configuration into shared override files loaded via extraValueFiles.

Changes:
- Fix overrides/values-trustee.yaml: remove FIXME global.coco.secured,
  add kbs.admin.format and kbs.https.enabled
- Create overrides/values-kyverno.yaml with securityContext nulls and
  CRD/report disables for OpenShift compatibility
- Wire both override files via extraValueFiles in values-simple.yaml,
  values-baremetal.yaml, values-baremetal-gpu.yaml, values-trusted-hub.yaml
- Remove inline duplicates (admin.format, secured, https, secretResources,
  all kyverno securityContext/CRD overrides)
- Keep profile-specific inline overrides: tdx, collateralService, gpu.enabled,
  backgroundController.resources

Reduces ~25 lines of duplication per profile while maintaining
profile-specific customization.
@butler54 butler54 requested a review from a team May 26, 2026 10:48
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.

1 participant