Delete tgz files from assets, parameter in the post-install hook for namespace should use the

helm templating
pull/664/head
Prachi Damle 2020-09-18 00:35:26 -07:00
parent af609af172
commit 2dd35d89bb
5 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,7 @@ metadata:
name: patch-sa
annotations:
"helm.sh/hook": post-install, post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded, before-hook-creation, hook-failed
"helm.sh/hook-delete-policy": hook-succeeded, before-hook-creation
spec:
template:
spec:
@ -15,5 +15,6 @@ spec:
- name: sa
image: "{{ template "system_default_registry" . }}{{ .Values.global.kubectl.repository }}:{{ .Values.global.kubectl.tag }}"
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
command: ["kubectl", "patch", "serviceaccount", "-n", "cis-operator-system", "default", "-p", "{\"automountServiceAccountToken\": false}"]
command: ["kubectl", "patch", "serviceaccount", "default", "-p", "{\"automountServiceAccountToken\": false}"]
args: ["-n", {{ template "cis.namespace" . }}]
backoffLimit: 1

View File

@ -35,5 +35,5 @@ global:
cattle:
systemDefaultRegistry: ""
kubectl:
repository: rancher/istio-kubectl
tag: 1.4.6
repository: rancher/kubectl
tag: v1.18.6