Skip to content
Snippets Groups Projects
  • Sagar Arora's avatar
    c3601664
    Major Update of Helm-Charts: · c3601664
    Sagar Arora authored and Raphael Defosseux's avatar Raphael Defosseux committed
    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
    c3601664
    History
    Major Update of Helm-Charts:
    Sagar Arora authored and Raphael Defosseux's avatar Raphael Defosseux committed
    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 }}