Skip to content

Shorten generated RBAC names and fail if names are too long#44

Merged
simu merged 1 commit into
masterfrom
fix/generated-rbac
May 26, 2026
Merged

Shorten generated RBAC names and fail if names are too long#44
simu merged 1 commit into
masterfrom
fix/generated-rbac

Conversation

@simu
Copy link
Copy Markdown
Member

@simu simu commented May 22, 2026

The PR adds assertions for generated role/clusterrole names that fail if a generated name is longer than 63 characters. Note that we don't need to do this for rolebindings/clusterrolebindings.

Additionally, the PR reduces excessive prefix/segment length (esp:x: instead of espejote:supplemental:, esp:mr: instead of espejote:managedresource:, ctx instead of context and trg instead of trigger) for generated RBAC names to leave a bit more room for the segments derived from the user-selected namespace and managedresource
name.

TODO

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

@simu simu force-pushed the fix/generated-rbac branch from 783333f to 9a52b79 Compare May 26, 2026 08:06
@simu simu added the bug Something isn't working label May 26, 2026
@simu simu changed the title Raise compilation error if generated RBAC names are too long Shorten generated RBAC names and fail if names are too long May 26, 2026
@simu simu changed the base branch from master to fix/generated-rbac-sa May 26, 2026 08:12
@simu simu requested a review from a team May 26, 2026 08:13
@simu simu marked this pull request as ready for review May 26, 2026 08:13
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

🚀 This PR has been released as v0.19.1

Triggering workflows Release

🛠️ Auto tagging enabled with label bump:patch

Base automatically changed from fix/generated-rbac-sa to master May 26, 2026 11:54
@simu simu force-pushed the fix/generated-rbac branch 2 times, most recently from 2ab0b63 to 2cbb312 Compare May 26, 2026 12:24
This commit adds assertions for generated role/clusterrole names that
fail if a generated name is longer than 63 characters. Note that we
don't need to do this for rolebindings/clusterrolebindings.

Additionally, the commit reduces excessive prefix/segment length
(`esp:x:` instead of `espejote:supplemental:`, `esp:mr:` instead of
`espejote:managedresource:`, `ctx` instead of `context` and `trg`
instead of `trigger`) for generated RBAC names to leave a bit more room
for the segments derived from the user-selected namespace and
managedresource name.
@simu simu force-pushed the fix/generated-rbac branch from 2cbb312 to 2db6277 Compare May 26, 2026 13:00
@simu simu merged commit 4350847 into master May 26, 2026
11 checks passed
@simu simu deleted the fix/generated-rbac branch May 26, 2026 13:04
@simu simu mentioned this pull request May 26, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working bump:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants