Skip to content

fix(operator): remove CRD shortNames that collide with the resource's own names - #6689

Open
lightsabit wants to merge 1 commit into
stacklok:mainfrom
lightsabit:fix/crd-shortname-collisions
Open

lightsabit wants to merge 1 commit into
stacklok:mainfrom
lightsabit:fix/crd-shortname-collisions

Conversation

@lightsabit

Copy link
Copy Markdown

The 0.49.0 mcpservers CRD ships shortNames [mcpserver, mcpservers], both equal to the CRD's own singular/plural, so it installs with NamesAccepted=False and helm --wait hangs on it (#6685).

Sweeping the other CRDs found the same problem on mcpgroups, which ships shortName mcpgroup -- its own singular. This drops the colliding entries (keeping mcpg) and regenerates via task operator-manifests, so both CRDs install clean.

Hit this on a live v0.49.0 upgrade; worked around it with a post-renderer until now.

… own names

The API server rejects a shortName equal to the CRD's singular or plural,
so the CRD installs with NamesAccepted=False and helm --wait never returns.

mcpservers shipped shortName=mcpserver;mcpservers, and mcpgroups
shortName=mcpgroup -- both their own singulars. Regenerated the CRDs.

Fixes stacklok#6685

Signed-off-by: lights <115397533+lightsabit@users.noreply.github.com>
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