Skip to content

Commit

Permalink
Merge "Set an admin-rule for internal tenant administrator"
Browse files Browse the repository at this point in the history
  • Loading branch information
Microzuul CI authored and Gerrit Code Review committed Oct 31, 2024
2 parents 4ca4aa1 + 823da25 commit 048ec40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/static/zuul/generate-tenant-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ cat << EOF > ~/main.yaml
max-job-timeout: 10800
name: internal
report-build-page: true
admin-rules:
- admin-internal
exclude-unprotected-branches: true
source:
git-server:
Expand Down
9 changes: 9 additions & 0 deletions doc/deployment/config_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,12 @@ Once the resource is ready, the config repository will appear listed in the inte
## Next Steps

You may now want to configure [connection secrets for nodepool providers](./nodepool.md) (kubeconfig, clouds.yaml).

## How to be an administrator in Internal Tenant

As said in the [Concept](#concept) section, SF-Operator manages a hidden git repository which defines and sets the
`internal` tenant.

This tenant has an `admin-rules` definition, setting the `admin-internal` group as the tenant administrator.

To be an `internal` administrator, just set a [`authorization-rule`](https://zuul-ci.org/docs/zuul/latest/tenants.html#authorization-rule) named `admin-internal` in the config project defined at `Set the config repository location`
3 changes: 3 additions & 0 deletions doc/reference/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
## [in development]

### Added

- zuul - add admin-rule for internal tenant

### Removed
### Changed
### Fixed
Expand Down

0 comments on commit 048ec40

Please sign in to comment.