Skip to content

Commit 9ef1861

Browse files
added ability to override default headless service
1 parent 3d7ca44 commit 9ef1861

File tree

19 files changed

+48
-29
lines changed

19 files changed

+48
-29
lines changed

charts/victoria-logs-single/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Next release
22

3+
- added ability to override default headless service .Values.server.service.clusterIP with empty value
34
- vector chart 0.37.x -> 0.40.x
45

56
## 0.8.14

charts/victoria-logs-single/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ readOnlyRootFilesystem: true
910910
<td>server.service.clusterIP</td>
911911
<td>string</td>
912912
<td><pre class="helm-vars-default-value language-yaml" lang="">
913-
<code class="language-yaml">""
913+
<code class="language-yaml">None
914914
</code>
915915
</pre>
916916
</td>

charts/victoria-logs-single/templates/server-service.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ spec:
2020
{{- end }}
2121
type: {{ $type }}
2222
{{- $clusterIP := $service.clusterIP }}
23-
{{- if and (not $clusterIP) (eq $type "ClusterIP") $app.statefulSet.enabled }}
24-
{{- $clusterIP = "None" }}
25-
{{- end }}
26-
{{- with $clusterIP }}
23+
{{- if eq $type "ClusterIP" }}
24+
{{- with $service.clusterIP }}
2725
clusterIP: {{ . }}
2826
{{- end }}
27+
{{- end }}
2928
{{- with $service.externalIPs }}
3029
externalIPs: {{ toYaml . | nindent 4 }}
3130
{{- end }}

charts/victoria-logs-single/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ server:
252252
# -- Service labels
253253
labels: {}
254254
# -- Service ClusterIP
255-
clusterIP: ""
255+
clusterIP: None
256256
# -- Service external IPs. Details are [here]( https://kubernetes.io/docs/user-guide/services/#external-ips)
257257
externalIPs: []
258258
# -- Service load balancer IP

charts/victoria-metrics-cluster/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Next release
22

3-
- TODO
3+
- added ability to override default headless service .Values.vmselect.service.clusterIP with empty value
44

55
## 0.17.4
66

charts/victoria-metrics-cluster/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,17 @@ Change the values according to the need of the environment in ``victoria-metrics
200200
</pre>
201201
</td>
202202
<td><p>Image registry, that can be shared across multiple helm charts</p>
203+
</td>
204+
</tr>
205+
<tr>
206+
<td>global.image.vm.tag</td>
207+
<td>string</td>
208+
<td><pre class="helm-vars-default-value language-yaml" lang="">
209+
<code class="language-yaml">""
210+
</code>
211+
</pre>
212+
</td>
213+
<td><p>Image tag for all vm charts</p>
203214
</td>
204215
</tr>
205216
<tr>
@@ -2632,7 +2643,7 @@ timeoutSeconds: 5
26322643
<td>vmselect.service.clusterIP</td>
26332644
<td>string</td>
26342645
<td><pre class="helm-vars-default-value language-yaml" lang="">
2635-
<code class="language-yaml">""
2646+
<code class="language-yaml">None
26362647
</code>
26372648
</pre>
26382649
</td>

charts/victoria-metrics-cluster/templates/service.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ spec:
2222
{{- $type = "ClusterIP" }}
2323
{{- end }}
2424
type: {{ $type }}
25-
{{- $clusterIP := $service.clusterIP }}
26-
{{- if and (not $clusterIP) (eq $type "ClusterIP") ($app.statefulSet).enabled }}
27-
{{- $clusterIP = "None" }}
25+
{{- if eq $type "ClusterIP" }}
26+
{{- with $service.clusterIP }}
27+
clusterIP: {{. }}
2828
{{- end }}
29-
{{- with $clusterIP }}
30-
clusterIP: {{ . }}
3129
{{- end }}
3230
{{- with $service.externalIPs }}
3331
externalIPs: {{ toYaml . | nindent 4 }}

charts/victoria-metrics-cluster/tests/__snapshot__/service_test.yaml.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ service should match snapshot:
6161
name: RELEASE-NAME-victoria-metrics-cluster-vmselect
6262
namespace: NAMESPACE
6363
spec:
64+
clusterIP: None
6465
ports:
6566
- name: http
6667
port: 8481
@@ -170,6 +171,7 @@ service should match snapshot with fullnameOverride and extraLabels:
170171
name: vmselect-node
171172
namespace: NAMESPACE
172173
spec:
174+
clusterIP: None
173175
ports:
174176
- name: http
175177
port: 8481

charts/victoria-metrics-cluster/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ global:
77
image:
88
# -- Image registry, that can be shared across multiple helm charts
99
registry: ""
10+
vm:
11+
# -- Image tag for all vm charts
12+
tag: ""
1013
# -- Openshift security context compatibility configuration
1114
compatibility:
1215
openshift:
@@ -220,7 +223,7 @@ vmselect:
220223
# -- Service labels
221224
labels: {}
222225
# -- Service ClusterIP
223-
clusterIP: ""
226+
clusterIP: None
224227
# -- Service external IPs. Details are [here](https://kubernetes.io/docs/user-guide/services/#external-ips)
225228
externalIPs: []
226229
# -- Extra service ports

charts/victoria-metrics-common/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Next release
44

5-
- TODO
5+
- Support `.Values.global.image.vm.tag` property to set tag for all VM images globally
66

77
## 0.0.38
88

0 commit comments

Comments
 (0)