Skip to content

Commit

Permalink
allow
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Mar 12, 2024
1 parent a046dea commit bdb8f55
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
labels:
{{ include "wallet-driving.labels" . | nindent 8 }}
spec:
serviceAccountName: wallet-sa
containers:
- name: {{ .Chart.Name }}
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
Expand Down
15 changes: 15 additions & 0 deletions aws/fiware/dome-wallet/wallet-driving/templates/role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ .Release.Name }}-cs-rb
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
subjects:
- kind: ServiceAccount
name: wallet-sa
namespace: {{ .Release.Namespace | quote }}
roleRef:
kind: Role
name: {{ .Release.Name }}-ca-scc-anyuid
apiGroup: rbac.authorization.k8s.io
17 changes: 17 additions & 0 deletions aws/fiware/dome-wallet/wallet-driving/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Release.Name }}-ca-scc-anyuid
labels:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- anyuid
- privileged
resources:
- securitycontextconstraints
verbs:
- use
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: wallet-sa
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}

0 comments on commit bdb8f55

Please sign in to comment.