forked from openshift/release
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create initial admin RBAC for CNV-QE (openshift#11599)
* Create initial admin RBAC for CNV-QE * Update RBAC namespace to cnv-qe * Use user.openshift.io/v1 for Group resource in cnv-qe
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
approvers: | ||
- sarahbx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# cnv-qe Infrastructure | ||
|
||
## Generating an Image Pull Credential | ||
|
||
First, log in to [the cluster](https://api.ci.openshift.org/console/catalog). Then, run: | ||
|
||
|
||
```sh | ||
oc get secrets --namespace cnv-qe -o json | jq '.items[] | select(.type=="kubernetes.io/dockercfg") | select(.metadata.annotations["kubernetes.io/service-account.name"]=="image-puller") | .data[".dockercfg"]' --raw-output | base64 --decode | jq 'with_entries(select(.key == "registry.svc.ci.openshift.org"))' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
openshift.io/description: Test infrastructure that supports cnv-qe | ||
openshift.io/display-name: cnv-qe CI | ||
name: cnv-qe | ||
--- | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: image-puller | ||
namespace: cnv-qe | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: cnv-qe-image-puller-binding | ||
namespace: cnv-qe | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: system:image-puller | ||
subjects: | ||
- kind: ServiceAccount | ||
namespace: cnv-qe | ||
name: image-puller | ||
--- | ||
kind: Group | ||
apiVersion: user.openshift.io/v1 | ||
metadata: | ||
name: cnv-qe-admins | ||
users: | ||
- sarahbx | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: cnv-qe-admins-binding | ||
namespace: cnv-qe | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: admin | ||
subjects: | ||
- kind: Group | ||
apiGroup: rbac.authorization.k8s.io | ||
name: cnv-qe-admins |