Skip to content

Commit

Permalink
rbac: Promoote rhel tenant to production (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough authored Oct 3, 2023
1 parent e10e35d commit 95e9bd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configuration/observatorium/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func GenerateRBAC(gen *mimic.Generator) {
tenant: rhelTenant,
signals: []signal{metricsSignal},
perms: []rbac.Permission{rbac.Read},
envs: []env{stagingEnv},
envs: []env{stagingEnv, productionEnv},
})
// RHEL
// Writer serviceaccount
Expand All @@ -328,7 +328,7 @@ func GenerateRBAC(gen *mimic.Generator) {
tenant: rhelTenant,
signals: []signal{metricsSignal},
perms: []rbac.Permission{rbac.Write},
envs: []env{stagingEnv},
envs: []env{stagingEnv, productionEnv},
})

// Use JSON because we want to have jsonnet using that in configmaps/secrets.
Expand Down
4 changes: 4 additions & 0 deletions resources/services/observatorium-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -967,12 +967,16 @@ objects:
"subjects":
- "kind": "user"
"name": "service-account-observatorium-rhel-read-staging"
- "kind": "user"
"name": "service-account-observatorium-rhel-read"
- "name": "observatorium-rhel-write"
"roles":
- "rhel-metrics-write"
"subjects":
- "kind": "user"
"name": "service-account-observatorium-rhel-write-staging"
- "kind": "user"
"name": "service-account-observatorium-rhel-write"
"roles":
- "name": "cnvqe-metrics-write"
"permissions":
Expand Down

0 comments on commit 95e9bd6

Please sign in to comment.