This repository was archived by the owner on May 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +95
-11
lines changed Expand file tree Collapse file tree 8 files changed +95
-11
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
name : catalog
3
3
description : service-catalog webhook server and controller-manager helm chart
4
- version : 0.3.1
4
+ version : 0.3.2
Original file line number Diff line number Diff line change @@ -76,9 +76,13 @@ chart and their default values.
76
76
| ` rbacEnable ` | If true, create & use RBAC resources | ` true ` |
77
77
| ` originatingIdentityEnabled ` | Whether the OriginatingIdentity feature should be enabled | ` true ` |
78
78
| ` persistence.storageClass ` | Define the storageclass use by pvc | ` null ` |
79
+ | ` affinity ` | Affinity settings ([ docs] ( https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity ) ) | ` {} ` |
79
80
| ` asyncBindingOperationsEnabled ` | Whether or not alpha support for async binding operations is enabled | ` false ` |
80
81
| ` namespacedServiceBrokerDisabled ` | Whether or not alpha support for namespace scoped brokers is disabled | ` false ` |
82
+ | ` nodeSelector ` | Node labels for pod assignment (global parameter for all pods) | ` {} ` |
83
+ | ` podLabels ` | Additional pod labels to include for all pods | ` {} ` |
81
84
| ` priorityClassName ` | Define PriorityClass for pods | "" |
85
+ | ` tolerations ` | Tolerations for pod assignment | ` [] ` |
82
86
83
87
Specify each parameter using the ` --set key=value[,key=value] ` argument to
84
88
` helm install ` .
Original file line number Diff line number Diff line change @@ -90,12 +90,18 @@ spec:
90
90
template :
91
91
metadata :
92
92
labels :
93
+ {{- if .Values.podLabels }}
94
+ {{- tpl (toYaml .Values.podLabels) $ | nindent 8 }}
95
+ {{- end }}
93
96
cleaner-job : " true"
94
97
app : {{ template "fullname" . }}-clean-job
95
98
chart : " {{ .Chart.Name }}-{{ .Chart.Version }}"
96
99
release : " {{ .Release.Name }}"
97
100
heritage : " {{ .Release.Service }}"
98
101
spec :
102
+ {{- if .Values.priorityClassName }}
103
+ priorityClassName : {{ .Values.priorityClassName | quote }}
104
+ {{- end }}
99
105
{{- with .Values.securityContext }}
100
106
securityContext :
101
107
{{ toYaml . | indent 8 }}
@@ -118,3 +124,14 @@ spec:
118
124
- {{ template "fullname" . }}-controller-manager
119
125
- --webhook-configurations
120
126
- {{ template "fullname" . }}-webhook {{ template "fullname" . }}-validating-webhook
127
+ {{- with .Values.affinity }}
128
+ affinity : {{- tpl (toYaml .) $ | nindent 8 }}
129
+ {{- end }}
130
+ {{- with .Values.nodeSelector }}
131
+ nodeSelector :
132
+ {{ toYaml . | indent 8 }}
133
+ {{- end }}
134
+ {{- with .Values.tolerations }}
135
+ tolerations :
136
+ {{ toYaml . | indent 8 }}
137
+ {{- end }}
Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ spec:
18
18
metadata :
19
19
annotations :
20
20
prometheus.io/scrape : " {{ .Values.controllerManager.enablePrometheusScrape }}"
21
- {{ if .Values.controllerManager.annotations }}
21
+ {{- if .Values.controllerManager.annotations }}
22
22
{{ toYaml .Values.controllerManager.annotations | indent 8 }}
23
23
{{- end }}
24
24
labels :
25
+ {{- if .Values.podLabels }}
26
+ {{- tpl (toYaml .Values.podLabels) $ | nindent 8 }}
27
+ {{- end }}
25
28
app : {{ template "fullname" . }}-controller-manager
26
29
chart : " {{ .Chart.Name }}-{{ .Chart.Version }}"
27
30
release : " {{ .Release.Name }}"
@@ -131,7 +134,14 @@ spec:
131
134
successThreshold : 1
132
135
timeoutSeconds : 5
133
136
{{- end }}
134
- {{ if .Values.controllerManager.nodeSelector }}
137
+ {{- with .Values.affinity }}
138
+ affinity : {{- tpl (toYaml .) $ | nindent 8 }}
139
+ {{- end }}
140
+ {{- if or .Values.controllerManager.nodeSelector .Values.nodeSelector }}
135
141
nodeSelector :
136
- {{ toYaml .Values.controllerManager.nodeSelector | indent 8 }}
137
- {{ end }}
142
+ {{ toYaml (mustMerge .Values.controllerManager.nodeSelector .Values.nodeSelector) | indent 8 }}
143
+ {{- end }}
144
+ {{- with .Values.tolerations }}
145
+ tolerations :
146
+ {{ toYaml . | indent 8 }}
147
+ {{- end }}
Original file line number Diff line number Diff line change @@ -106,12 +106,18 @@ spec:
106
106
template :
107
107
metadata :
108
108
labels :
109
+ {{- if .Values.podLabels }}
110
+ {{- tpl (toYaml .Values.podLabels) $ | nindent 8 }}
111
+ {{- end }}
109
112
migration-job : " true"
110
113
app : {{ template "fullname" . }}-migration-job
111
114
chart : " {{ .Chart.Name }}-{{ .Chart.Version }}"
112
115
release : " {{ .Release.Name }}"
113
116
heritage : " {{ .Release.Service }}"
114
117
spec :
118
+ {{- if .Values.priorityClassName }}
119
+ priorityClassName : {{ .Values.priorityClassName | quote }}
120
+ {{- end }}
115
121
{{- with .Values.securityContext }}
116
122
securityContext :
117
123
{{ toYaml . | indent 8 }}
@@ -146,3 +152,14 @@ spec:
146
152
volumeMounts :
147
153
- name : storage
148
154
mountPath : /data
155
+ {{- with .Values.affinity }}
156
+ affinity : {{- tpl (toYaml .) $ | nindent 8 }}
157
+ {{- end }}
158
+ {{- with .Values.nodeSelector }}
159
+ nodeSelector :
160
+ {{ toYaml . | indent 8 }}
161
+ {{- end }}
162
+ {{- with .Values.tolerations }}
163
+ tolerations :
164
+ {{ toYaml . | indent 8 }}
165
+ {{- end }}
Original file line number Diff line number Diff line change @@ -120,12 +120,18 @@ spec:
120
120
template :
121
121
metadata :
122
122
labels :
123
+ {{- if .Values.podLabels }}
124
+ {{- tpl (toYaml .Values.podLabels) $ | nindent 8 }}
125
+ {{- end }}
123
126
migration-job : " true"
124
127
app : {{ template "fullname" . }}-pre-migration-job
125
128
chart : " {{ .Chart.Name }}-{{ .Chart.Version }}"
126
129
release : " {{ .Release.Name }}"
127
130
heritage : " {{ .Release.Service }}"
128
131
spec :
132
+ {{- if .Values.priorityClassName }}
133
+ priorityClassName : {{ .Values.priorityClassName | quote }}
134
+ {{- end }}
129
135
{{- with .Values.securityContext }}
130
136
securityContext :
131
137
{{ toYaml . | indent 8 }}
@@ -156,3 +162,14 @@ spec:
156
162
volumeMounts :
157
163
- name : storage
158
164
mountPath : /data
165
+ {{- with .Values.affinity }}
166
+ affinity : {{- tpl (toYaml .) $ | nindent 8 }}
167
+ {{- end }}
168
+ {{- with .Values.nodeSelector }}
169
+ nodeSelector :
170
+ {{ toYaml . | indent 8 }}
171
+ {{- end }}
172
+ {{- with .Values.tolerations }}
173
+ tolerations :
174
+ {{ toYaml . | indent 8 }}
175
+ {{- end }}
Original file line number Diff line number Diff line change @@ -17,12 +17,15 @@ spec:
17
17
template :
18
18
metadata :
19
19
labels :
20
+ {{- if .Values.podLabels }}
21
+ {{- tpl (toYaml .Values.podLabels) $ | nindent 8 }}
22
+ {{- end }}
20
23
app : {{ template "fullname" . }}-webhook
21
24
chart : " {{ .Chart.Name }}-{{ .Chart.Version }}"
22
25
release : " {{ .Release.Name }}"
23
26
releaseRevision : " {{ .Release.Revision }}"
24
27
heritage : " {{ .Release.Service }}"
25
- {{ if .Values.webhook.annotations }}
28
+ {{- if .Values.webhook.annotations }}
26
29
annotations :
27
30
{{ toYaml .Values.webhook.annotations | indent 8 }}
28
31
{{- end }}
@@ -87,10 +90,17 @@ spec:
87
90
successThreshold : 1
88
91
timeoutSeconds : 5
89
92
{{- end }}
90
- {{ if .Values.webhook.nodeSelector }}
93
+ {{- with .Values.affinity }}
94
+ affinity : {{- tpl (toYaml .) $ | nindent 8 }}
95
+ {{- end }}
96
+ {{- if or .Values.webhook.nodeSelector .Values.nodeSelector }}
91
97
nodeSelector :
92
- {{ toYaml .Values.webhook.nodeSelector | indent 8 }}
93
- {{ end }}
98
+ {{ toYaml (mustMerge .Values.webhook.nodeSelector .Values.nodeSelector) | indent 8 }}
99
+ {{- end }}
100
+ {{- with .Values.tolerations }}
101
+ tolerations :
102
+ {{ toYaml . | indent 8 }}
103
+ {{- end }}
94
104
volumes :
95
105
- name : service-catalog-webhook-cert
96
106
secret :
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ webhook:
20
20
# annotations is a collection of annotations to add to the webhook pods.
21
21
annotations : {}
22
22
# nodeSelector to apply to the webhook pods
23
- nodeSelector :
23
+ nodeSelector : {}
24
24
# healthcheck configures the readiness and liveliness probes for the webhook pod.
25
25
healthcheck :
26
26
enabled : true
@@ -59,7 +59,7 @@ controllerManager:
59
59
# annotations is a collection of annotations to add to the controllerManager pod.
60
60
annotations : {}
61
61
# nodeSelector to apply to the controllerManager pods
62
- nodeSelector :
62
+ nodeSelector : {}
63
63
# healthcheck configures the readiness and liveliness probes for the controllerManager pod.
64
64
healthcheck :
65
65
enabled : true
@@ -108,6 +108,9 @@ controllerManager:
108
108
# Available port in allowable range (e.g. 30000 - 32767 on minikube)
109
109
# The TLS-enabled endpoint will be exposed here
110
110
securePort : 30444
111
+
112
+ affinity : {}
113
+
111
114
# Whether the OriginatingIdentity feature should be enabled
112
115
originatingIdentityEnabled : true
113
116
# Whether the AsyncBindingOperations alpha feature should be enabled
@@ -132,7 +135,13 @@ persistence:
132
135
# #
133
136
storageClass :
134
137
138
+ nodeSelector : {}
139
+
140
+ podLabels : {}
141
+
135
142
# Leverage a PriorityClass to ensure your pods survive resource shortages
136
143
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
137
144
# PriorityClass: system-cluster-critical
138
145
priorityClassName : " "
146
+
147
+ tolerations : []
You can’t perform that action at this time.
0 commit comments