mirror of
https://github.com/helm/charts.git
synced 2026-09-05 12:27:30 +00:00
[stable/airflow] Add checksum annotations to roll deployments when configmaps or secrets change (#13432)
Signed-off-by: Chia-Chun Tai <darkgerm@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
d2268926d2
commit
641f77402b
@@ -1,6 +1,6 @@
|
||||
description: Airflow is a platform to programmatically author, schedule and monitor workflows
|
||||
name: airflow
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
appVersion: 1.10.2
|
||||
icon: https://airflow.apache.org/_images/pin_large.png
|
||||
home: https://airflow.apache.org/
|
||||
|
||||
@@ -84,7 +84,7 @@ Create the name for the airflow secret.
|
||||
Map environment vars to secrets
|
||||
*/}}
|
||||
{{- define "airflow.mapenvsecrets" -}}
|
||||
{{- $secretName := .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- $secretName := printf "%s-env" (include "airflow.fullname" .) }}
|
||||
{{- $mapping := .Values.airflow.defaultSecretsMapping }}
|
||||
{{- if .Values.existingAirflowSecret }}
|
||||
{{- $secretName := .Values.existingAirflowSecret }}
|
||||
@@ -105,4 +105,4 @@ Map environment vars to secrets
|
||||
key: {{ $val.secretKey }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -25,8 +25,8 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap-airflow.yaml") . | sha256sum }}
|
||||
configmap.fabric8.io/update-on-change: "{{ template "airflow.fullname" . }}-env"
|
||||
checksum/config-env: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
|
||||
checksum/secret-env: {{ include (print $.Template.BasePath "/secret-env.yaml") . | sha256sum }}
|
||||
labels:
|
||||
app: {{ template "airflow.name" . }}
|
||||
component: flower
|
||||
|
||||
Executable → Regular
+6
-2
@@ -25,8 +25,12 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap-airflow.yaml") . | sha256sum }}
|
||||
configmap.fabric8.io/update-on-change: "{{ template "airflow.fullname" . }}-env"
|
||||
checksum/config-env: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
|
||||
checksum/config-git-clone: {{ include (print $.Template.BasePath "/configmap-git-clone.yaml") . | sha256sum }}
|
||||
checksum/config-scripts: {{ include (print $.Template.BasePath "/configmap-scripts.yaml") . | sha256sum }}
|
||||
checksum/config-variables-pools: {{ include (print $.Template.BasePath "/configmap-variables-pools.yaml") . | sha256sum }}
|
||||
checksum/secret-connections: {{ include (print $.Template.BasePath "/secret-connections.yaml") . | sha256sum }}
|
||||
checksum/secret-env: {{ include (print $.Template.BasePath "/secret-env.yaml") . | sha256sum }}
|
||||
{{- if .Values.airflow.podAnnotations }}
|
||||
{{ toYaml .Values.airflow.podAnnotations | indent 8 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -25,8 +25,10 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap-airflow.yaml") . | sha256sum }}
|
||||
configmap.fabric8.io/update-on-change: "{{ template "airflow.fullname" . }}-env"
|
||||
checksum/config-env: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
|
||||
checksum/config-git-clone: {{ include (print $.Template.BasePath "/configmap-git-clone.yaml") . | sha256sum }}
|
||||
checksum/config-scripts: {{ include (print $.Template.BasePath "/configmap-scripts.yaml") . | sha256sum }}
|
||||
checksum/secret-env: {{ include (print $.Template.BasePath "/secret-env.yaml") . | sha256sum }}
|
||||
{{- if .Values.airflow.podAnnotations }}
|
||||
{{ toYaml .Values.airflow.podAnnotations | indent 8 }}
|
||||
{{- end }}
|
||||
|
||||
Executable → Regular
@@ -2,7 +2,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "airflow.fullname" . }}
|
||||
name: {{ template "airflow.fullname" . }}-env
|
||||
labels:
|
||||
app: {{ template "airflow.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
@@ -29,8 +29,10 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap-airflow.yaml") . | sha256sum }}
|
||||
configmap.fabric8.io/update-on-change: "{{ template "airflow.fullname" . }}-env"
|
||||
checksum/config-env: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
|
||||
checksum/config-git-clone: {{ include (print $.Template.BasePath "/configmap-git-clone.yaml") . | sha256sum }}
|
||||
checksum/config-scripts: {{ include (print $.Template.BasePath "/configmap-scripts.yaml") . | sha256sum }}
|
||||
checksum/secret-env: {{ include (print $.Template.BasePath "/secret-env.yaml") . | sha256sum }}
|
||||
{{- if .Values.airflow.podAnnotations }}
|
||||
{{ toYaml .Values.airflow.podAnnotations | indent 8 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user