Skip to content

Commit

Permalink
clear out tenant security context
Browse files Browse the repository at this point in the history
add scc needed to run tenant
  • Loading branch information
gabemontero committed Jan 26, 2023
1 parent d1ba7dc commit 784f5c2
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Kustomization
resources:
- namespace.yaml
- tenant.yaml
- tenant-permissions.yaml
35 changes: 35 additions & 0 deletions developer/openshift/operators/minio/tenant/tenant-permissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: minio
namespace: tekton-results
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: minio
namespace: tekton-results
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- nonroot
resources:
- securitycontextconstraints
verbs:
- use
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: minio
namespace: tekton-results
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: minio
subjects:
- kind: ServiceAccount
name: minio
namespace: tekton-results
7 changes: 2 additions & 5 deletions developer/openshift/operators/minio/tenant/tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
imagePullSecret: {}
mountPath: /export
subPath: ""
serviceAccountName: ""
serviceAccountName: "minio"
pools:
- servers: 1
name: pool-0
Expand All @@ -67,8 +67,5 @@ spec:
requests:
storage: 1Gi
status: {}
securityContext:
runAsNonRoot: true
runAsUser: 1000630001
runAsGroup: 1000630002
securityContext: {}
requestAutoCert: true
8 changes: 8 additions & 0 deletions operator/gitops/compute/pipeline-service-manager/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ rules:
- "get"
- "create"
- "update"
- apiGroups:
- security.openshift.io
resourceNames:
- nonroot
resources:
- securitycontextconstraints
verbs:
- use
- apiGroups:
- pipelinesascode.tekton.dev
resources:
Expand Down

0 comments on commit 784f5c2

Please sign in to comment.