Something went wrong on our end
-
Updating the helm-charts and adding new charts for CU-CP and CU-UP. * Added readme for individual charts. * New charts for CU-CP and CU-UP * Made defaultGateway of multus optional * Solved the bugs for resource assignment and tcpdump capture
Updating the helm-charts and adding new charts for CU-CP and CU-UP. * Added readme for individual charts. * New charts for CU-CP and CU-UP * Made defaultGateway of multus optional * Solved the bugs for resource assignment and tcpdump capture
rbac.yaml 774 B
---
{{- if eq .Values.kubernetesType "Openshift" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Chart.Name }}-{{ .Release.Namespace }}-role
rules:
- apiGroups:
- security.openshift.io
{{- if .Values.includeTcpDumpContainer }}
resourceNames:
- privileged
{{- else }}
resourceNames:
- anyuid
{{- end }}
resources:
- securitycontextconstraints
verbs:
- use
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ .Chart.Name }}-{{ .Release.Namespace }}-binding
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: {{ .Chart.Name }}-{{ .Release.Namespace }}-role
apiGroup: rbac.authorization.k8s.io
{{- end }}