Skip to content

fix(kustomize): fix stale references and missing CRDs in kustomization#264

Open
sebest wants to merge 1 commit into
sgl-project:mainfrom
sebest:worktree-warm-crafting-key
Open

fix(kustomize): fix stale references and missing CRDs in kustomization#264
sebest wants to merge 1 commit into
sgl-project:mainfrom
sebest:worktree-warm-crafting-key

Conversation

@sebest
Copy link
Copy Markdown
Contributor

@sebest sebest commented Apr 9, 2026

Summary

  • config/rbac/kustomization.yaml: update rbgs_controller_role.yamlrole.yaml (renamed in chore(makefile): support to generate rbac in make manifests #209 but the kustomization reference was not updated, breaking kustomize build config/default)
  • config/crd/kustomization.yaml: add 5 missing CRD resources that were generated in config/crd/bases/ but not listed:
    • coordinatedpolicies.workloads.x-k8s.io
    • instances.workloads.x-k8s.io
    • instancesets.workloads.x-k8s.io
    • roleinstances.workloads.x-k8s.io
    • roleinstancesets.workloads.x-k8s.io
  • deploy/kubectl/manifests.yaml and config/manager/kustomization.yaml: regenerated via make build-installer

Test plan

  • kustomize build config/default succeeds
  • All 9 CRDs present in regenerated deploy/kubectl/manifests.yaml

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@sebest sebest force-pushed the worktree-warm-crafting-key branch 3 times, most recently from 720d3e3 to 3251327 Compare April 9, 2026 06:34
@sebest sebest changed the title fix(kustomize): update stale RBAC resource filename fix(kustomize): fix stale references and missing CRDs in kustomization Apr 9, 2026
@cheyang cheyang requested a review from Copilot April 9, 2026 07:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes kustomize build config/default breakage by updating stale kustomization references and ensuring all generated CRDs are included in the CRD kustomization, then regenerates the consolidated installer manifest to reflect the corrected inputs.

Changes:

  • Update RBAC kustomization to reference role.yaml (renamed previously) instead of the stale filename.
  • Add the missing generated CRD base YAMLs to config/crd/kustomization.yaml so they’re included in config/default.
  • Regenerate deploy/kubectl/manifests.yaml (and bump controller image tag in config/manager/kustomization.yaml) via make build-installer.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
deploy/kubectl/manifests.yaml Regenerated installer manifest including the full CRD set and current kustomize-rendered RBAC/manager resources.
config/rbac/kustomization.yaml Fixes stale RBAC resource reference (rbgs_controller_role.yamlrole.yaml).
config/manager/kustomization.yaml Updates controller image tag as part of installer regeneration.
config/crd/kustomization.yaml Ensures all generated CRD bases (including coordinatedpolicies/instances/instancesets/roleinstances/roleinstancesets) are included.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- config/rbac/kustomization.yaml: update rbgs_controller_role.yaml to
  role.yaml (renamed in sgl-project#209 but reference not updated, breaking
  kustomize build)
- config/crd/kustomization.yaml: add the instances and instancesets CRDs
  that were missing from the resources list, and sort entries
  alphabetically
- Regenerate deploy/kubectl/manifests.yaml to reflect the two fixes
  above
@sebest sebest force-pushed the worktree-warm-crafting-key branch from 6da3f4f to 04e3afd Compare April 22, 2026 06:27
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.

2 participants