Skip to content

Commit 39407be

Browse files
authored
BUG: kubernetes-ingress: Bug permission (#255)
* BUG: fix missing permissions for proxy mode * BUG: fix image for proxy
1 parent 7d5c5bf commit 39407be

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

kubernetes-ingress/templates/clusterrole.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ rules:
4141
- get
4242
- list
4343
- watch
44+
{{- if and (eq .Values.controller.sync.mode "fetch") (eq .Values.controller.sync.fetchParams.source "proxy") }}
45+
- apiGroups:
46+
- ""
47+
resources:
48+
- services
49+
- pods
50+
verbs:
51+
- update
52+
{{- end }}
4453
- apiGroups:
4554
- "extensions"
4655
- "networking.k8s.io"

kubernetes-ingress/templates/controller-proxy-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ spec:
9393
{{- end }}
9494
containers:
9595
- name: {{ include "kubernetes-ingress.name" . }}-{{ .Values.controller.name }}
96-
image: "{{ .Values.controller.image.repository }}:{{ tpl .Values.controller.image.tag . }}"
96+
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag | default .Chart.AppVersion }}"
9797
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
9898
args:
9999
{{- if .Values.controller.defaultTLSSecret.enabled -}}

0 commit comments

Comments
 (0)