Skip to content

feat(fga): Cluster Admin Email assignment gets part of bootstrap command#555

Merged
nbrodnicke merged 3 commits into
mainfrom
niklas/cluster-admin-bootstrap
Jul 6, 2026
Merged

feat(fga): Cluster Admin Email assignment gets part of bootstrap command#555
nbrodnicke merged 3 commits into
mainfrom
niklas/cluster-admin-bootstrap

Conversation

@nbrodnicke

@nbrodnicke nbrodnicke commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

CU-869dz4umw

Cluster admin email as part of bootstrap-gcp

Previously, the cluster admin email was set manually in a separate SSH step after bootstrap. This PR makes it a regular, optional part of the bootstrap and install flow instead.

What changes:

New --cluster-admin-email flag on oms beta bootstrap-gcp (optional, no behavior change when unset).
The email is now stored in the install config (codesphere.clusterAdminEmail) instead of only being set temporarily via SSH — it therefore survives re-runs with --write-config/--recover-config.
oms install codesphere automatically creates the cluster-admin-email secret before the platform phase (auth-service) starts — no manual extra step, no service restart needed.
Reuses the existing add-cluster-admin logic instead of duplicating it.
Why: So integration tests (and production bootstraps) get the cluster admin set consistently and reproducibly from the start, instead of relying on a fragile, separate SSH step in the CI workflow.

@nbrodnicke nbrodnicke self-assigned this Jul 3, 2026
@jonas-zipprick

Copy link
Copy Markdown

Signed-off-by: Niklas Brodnicke <niklas@codesphere.com>
@nbrodnicke nbrodnicke force-pushed the niklas/cluster-admin-bootstrap branch from 2b48970 to 865f0b3 Compare July 3, 2026 13:39

@OliverTrautvetter OliverTrautvetter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some comments and questions 👍

Comment thread cli/cmd/install_codesphere_platform.go Outdated
Comment thread internal/bootstrap/gcp/gcp.go
Comment thread cli/cmd/install_codesphere_platform.go Outdated
Comment thread internal/clusteradmin/clusteradmin.go
Comment thread cli/cmd/install_codesphere_platform.go Outdated
Signed-off-by: Niklas Brodnicke <niklas@codesphere.com>
@nbrodnicke nbrodnicke force-pushed the niklas/cluster-admin-bootstrap branch from 969ad11 to 7573a15 Compare July 6, 2026 09:59

@OliverTrautvetter OliverTrautvetter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just 1 thing:

Comment thread internal/installer/cluster_admin.go
Signed-off-by: Niklas Brodnicke <niklas@codesphere.com>
@nbrodnicke nbrodnicke force-pushed the niklas/cluster-admin-bootstrap branch from cb8d574 to 720b541 Compare July 6, 2026 13:21

@OliverTrautvetter OliverTrautvetter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀 looks good

@nbrodnicke nbrodnicke merged commit 4503e4e into main Jul 6, 2026
6 checks passed
@nbrodnicke nbrodnicke deleted the niklas/cluster-admin-bootstrap branch July 6, 2026 14:57
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