Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 2f87853

Browse files
authored
Merge pull request #98 from alanmeadows/template_hashing
Consistent Template Hashing for Config Maps for Existing Charts
2 parents 7cfe681 + 0a481a8 commit 2f87853

10 files changed

Lines changed: 25 additions & 0 deletions

keystone/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ spec:
1717
labels:
1818
app: keystone-api
1919
annotations:
20+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
21+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
2022
pod.beta.kubernetes.io/init-containers: '[
2123
{
2224
"name": "init",

neutron/templates/daemonset-dhcp-agent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
metadata:
88
labels:
99
app: neutron-dhcp-agent
10+
annotations:
11+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
12+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1013
spec:
1114
nodeSelector:
1215
{{ .Values.labels.agent.dhcp.node_selector_key }}: {{ .Values.labels.agent.dhcp.node_selector_value }}

neutron/templates/daemonset-l3-agent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
metadata:
88
labels:
99
app: neutron-l3-agent
10+
annotations:
11+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
12+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1013
spec:
1114
nodeSelector:
1215
{{ .Values.labels.agent.l3.node_selector_key }}: {{ .Values.labels.agent.l3.node_selector_value }}

neutron/templates/daemonset-metadata-agent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
metadata:
88
labels:
99
app: neutron-metadata-agent
10+
annotations:
11+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
12+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1013
spec:
1114
nodeSelector:
1215
{{ .Values.labels.agent.metadata.node_selector_key }}: {{ .Values.labels.agent.metadata.node_selector_value }}

neutron/templates/daemonset-ovs-agent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
metadata:
88
labels:
99
app: ovs-agent
10+
annotations:
11+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
12+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1013
spec:
1114
nodeSelector:
1215
{{ .Values.labels.ovs.node_selector_key }}: {{ .Values.labels.ovs.node_selector_value }}

neutron/templates/daemonset-ovs-db.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
metadata:
88
labels:
99
app: ovs-db
10+
annotations:
11+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
12+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1013
spec:
1114
nodeSelector:
1215
{{ .Values.labels.ovs.node_selector_key }}: {{ .Values.labels.ovs.node_selector_value }}

neutron/templates/daemonset-ovs-vswitchd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ spec:
77
metadata:
88
labels:
99
app: ovs-vswitchd
10+
annotations:
11+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
12+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1013
spec:
1114
nodeSelector:
1215
{{ .Values.labels.ovs.node_selector_key }}: {{ .Values.labels.ovs.node_selector_value }}

neutron/templates/deployment-server.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
metadata:
1717
labels:
1818
app: neutron-server
19+
annotations:
20+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
21+
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
1922
spec:
2023
nodeSelector:
2124
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value }}

rabbitmq/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ spec:
1616
metadata:
1717
labels:
1818
app: rabbitmq
19+
annotations:
20+
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
1921
spec:
2022
nodeSelector:
2123
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}

0 commit comments

Comments
 (0)