Commit d199ec6 1 parent f299b4d commit d199ec6 Copy full SHA for d199ec6
File tree 2 files changed +16
-8
lines changed
charts/openstack-cloud-controller-manager/templates
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,24 @@ component: controllermanager
30
30
{ {- define " occm.controllermanager.labels" -} }
31
31
{ { include " occm.controllermanager.matchLabels" . } }
32
32
{ { include " occm.common.metaLabels" . } }
33
- { {- range $ key , $ val := .Values.podLabels } }
34
- { { $ key } }: { { $ val } }
33
+ { { if .Values.podLabels } }
34
+ { {- toYaml .Values.podLabels } }
35
35
{ {- end } }
36
36
{ {- end -} }
37
37
38
+ { {/*
39
+ Common annotations and pod annotations
40
+ */} }
41
+ { {- define " occm.controllermanager.annotations" -} }
42
+ { {- if .Values.commonAnnotations } }
43
+ { {- toYaml .Values.commonAnnotations } }
44
+ { {- end } }
45
+ { { if .Values.podAnnotations } }
46
+ { {- toYaml .Values.podAnnotations } }
47
+ { {- end } }
48
+ { {- end -} }
49
+
50
+
38
51
{ {/*
39
52
Create cloud-config makro.
40
53
*/} }
Original file line number Diff line number Diff line change 18
18
metadata :
19
19
annotations :
20
20
checksum/config : {{ include "cloudConfig" . | sha256sum }}
21
- {{- with .Values.commonAnnotations }}
22
- {{- toYaml . | nindent 8 }}
23
- {{- end }}
24
- {{- with .Values.podAnnotations }}
25
- {{- toYaml . | nindent 8 }}
26
- {{- end }}
21
+ {{- include "occm.controllermanager.annotations" . | nindent 8 }}
27
22
labels :
28
23
{{- include "occm.controllermanager.labels" . | nindent 8 }}
29
24
spec :
You can’t perform that action at this time.
0 commit comments