X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Finfrastructure%2Fsubcharts%2Fkong%2Ftemplates%2Fcontroller-rbac-cluster-role-binding.yaml;fp=helm%2Finfrastructure%2Fsubcharts%2Fkong%2Ftemplates%2Fcontroller-rbac-cluster-role-binding.yaml;h=2e4e7526f00840bdae1be7530e00dfa97a17f6db;hb=38dc857062b14145f5b9db89d10eba0ae5b90d11;hp=0000000000000000000000000000000000000000;hpb=0c9bc21e8efc4c7205a46ef1456d1f08e65c56f2;p=ric-plt%2Fric-dep.git diff --git a/helm/infrastructure/subcharts/kong/templates/controller-rbac-cluster-role-binding.yaml b/helm/infrastructure/subcharts/kong/templates/controller-rbac-cluster-role-binding.yaml new file mode 100755 index 0000000..2e4e752 --- /dev/null +++ b/helm/infrastructure/subcharts/kong/templates/controller-rbac-cluster-role-binding.yaml @@ -0,0 +1,19 @@ +{{- if and .Values.ingressController.rbac.create .Values.ingressController.enabled -}} +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: ClusterRoleBinding +metadata: + name: {{ template "kong.fullname" . }} + labels: + app: {{ template "kong.name" . }} + chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ template "kong.fullname" . }} +subjects: + - kind: ServiceAccount + name: {{ template "kong.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +{{- end -}}