2021-12-01 15:43:42 +00:00
|
|
|
diff -tuNr charts/aws-node-termination-handler.orig/templates/deployment.yaml charts/aws-node-termination-handler/templates/deployment.yaml
|
2022-01-28 16:22:12 +00:00
|
|
|
--- charts/aws-node-termination-handler.orig/templates/deployment.yaml 2022-01-26 18:01:36.123482217 +0100
|
|
|
|
+++ charts/aws-node-termination-handler/templates/deployment.yaml 2022-01-26 18:08:21.464304621 +0100
|
|
|
|
@@ -175,13 +175,23 @@
|
|
|
|
resources:
|
|
|
|
{{- toYaml . | nindent 12 }}
|
|
|
|
{{- end }}
|
|
|
|
- {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }}
|
|
|
|
volumeMounts:
|
|
|
|
+ - name: aws-token
|
|
|
|
+ mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/"
|
|
|
|
+ readOnly: true
|
|
|
|
+ {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }}
|
|
|
|
- name: webhook-template
|
|
|
|
mountPath: /config/
|
|
|
|
{{- end }}
|
|
|
|
- {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }}
|
|
|
|
volumes:
|
2021-12-01 15:43:42 +00:00
|
|
|
+ - name: aws-token
|
|
|
|
+ projected:
|
|
|
|
+ sources:
|
|
|
|
+ - serviceAccountToken:
|
|
|
|
+ path: token
|
|
|
|
+ expirationSeconds: 86400
|
|
|
|
+ audience: "sts.amazonaws.com"
|
2022-01-28 16:22:12 +00:00
|
|
|
+ {{- if and .Values.webhookTemplateConfigMapName .Values.webhookTemplateConfigMapKey }}
|
|
|
|
- name: webhook-template
|
|
|
|
configMap:
|
|
|
|
name: {{ .Values.webhookTemplateConfigMapName }}
|