[stable/nginx-ingress] Remove need for cluster role in scoped mode (#12510) as it is not needed per https://github.com/kubernetes/ingress-nginx/pull/3887. (#13460)

Signed-off-by: Francois JACQUES <fjacques@murex.com>
This commit is contained in:
François JACQUES
2019-05-20 08:35:17 -07:00
committed by Kubernetes Prow Robot
parent afe4a35afa
commit 07ffff019f
3 changed files with 1 additions and 40 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.6.8
version: 1.6.9
appVersion: 0.24.1
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
@@ -1,20 +0,0 @@
{{- if and .Values.rbac.create .Values.controller.scope.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
labels:
app: {{ template "nginx-ingress.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "nginx-ingress.fullname" . }}-scoped
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch
{{- end -}}
@@ -1,19 +0,0 @@
{{- if and .Values.rbac.create .Values.controller.scope.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
labels:
app: {{ template "nginx-ingress.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "nginx-ingress.fullname" . }}-scoped
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "nginx-ingress.fullname" . }}-scoped
subjects:
- kind: ServiceAccount
name: {{ template "nginx-ingress.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end -}}