File tree 22 files changed +73
-35
lines changed
22 files changed +73
-35
lines changed Original file line number Diff line number Diff line change 1
1
## Next release
2
2
3
+ - added ability to override default headless service .Values.server.service.clusterIP with empty value
3
4
- vector chart 0.37.x -> 0.40.x
4
5
5
6
## 0.8.14
Original file line number Diff line number Diff line change @@ -910,7 +910,7 @@ readOnlyRootFilesystem: true
910
910
<td>server.service.clusterIP</td>
911
911
<td>string</td>
912
912
<td><pre class="helm-vars-default-value language-yaml" lang="">
913
- <code class =" language-yaml " >""
913
+ <code class =" language-yaml " >None
914
914
</code >
915
915
</pre >
916
916
</td >
Original file line number Diff line number Diff line change @@ -20,12 +20,11 @@ spec:
20
20
{{- end }}
21
21
type : {{ $type }}
22
22
{{- $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 }}
27
25
clusterIP : {{ . }}
28
26
{{- end }}
27
+ {{- end }}
29
28
{{- with $service.externalIPs }}
30
29
externalIPs : {{ toYaml . | nindent 4 }}
31
30
{{- end }}
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ server:
252
252
# -- Service labels
253
253
labels : {}
254
254
# -- Service ClusterIP
255
- clusterIP : " "
255
+ clusterIP : None
256
256
# -- Service external IPs. Details are [here]( https://kubernetes.io/docs/user-guide/services/#external-ips)
257
257
externalIPs : []
258
258
# -- Service load balancer IP
Original file line number Diff line number Diff line change 1
1
## Next release
2
2
3
- - TODO
3
+ - added ability to override default headless service ` .Values.vmselect.service.clusterIP ` with empty value
4
+ - added ` .Values.common.image.tag ` to set the same tag for all cluster components.
4
5
5
6
## 0.17.4
6
7
Original file line number Diff line number Diff line change @@ -145,7 +145,19 @@ Change the values according to the need of the environment in ``victoria-metrics
145
145
</code >
146
146
</pre >
147
147
</td >
148
- <td></td>
148
+ <td><p>use SRV discovery for storageNode and selectNode flags for enterprise version</p>
149
+ </td >
150
+ </tr>
151
+ <tr>
152
+ <td>common.image</td>
153
+ <td>object</td>
154
+ <td><pre class="helm-vars-default-value language-yaml" lang="plaintext">
155
+ <code class =" language-yaml " >tag: ""
156
+ </code >
157
+ </pre >
158
+ </td >
159
+ <td><p>common for all components image configuration</p>
160
+ </td >
149
161
</tr>
150
162
<tr>
151
163
<td>extraObjects</td>
@@ -200,6 +212,17 @@ Change the values according to the need of the environment in ``victoria-metrics
200
212
</pre >
201
213
</td >
202
214
<td><p>Image registry, that can be shared across multiple helm charts</p>
215
+ </td >
216
+ </tr>
217
+ <tr>
218
+ <td>global.image.vm.tag</td>
219
+ <td>string</td>
220
+ <td><pre class="helm-vars-default-value language-yaml" lang="">
221
+ <code class =" language-yaml " >""
222
+ </code >
223
+ </pre >
224
+ </td >
225
+ <td><p>Image tag for all vm charts</p>
203
226
</td >
204
227
</tr>
205
228
<tr>
@@ -2632,7 +2655,7 @@ timeoutSeconds: 5
2632
2655
<td>vmselect.service.clusterIP</td>
2633
2656
<td>string</td>
2634
2657
<td><pre class="helm-vars-default-value language-yaml" lang="">
2635
- <code class =" language-yaml " >""
2658
+ <code class =" language-yaml " >None
2636
2659
</code >
2637
2660
</pre >
2638
2661
</td >
Original file line number Diff line number Diff line change @@ -22,12 +22,10 @@ spec:
22
22
{{- $type = "ClusterIP" }}
23
23
{{- end }}
24
24
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 : {{. }}
28
28
{{- end }}
29
- {{- with $clusterIP }}
30
- clusterIP : {{ . }}
31
29
{{- end }}
32
30
{{- with $service.externalIPs }}
33
31
externalIPs : {{ toYaml . | nindent 4 }}
Original file line number Diff line number Diff line change 1
- {{- $app := .Values.vmauth -}}
1
+ {{- $app := merge (deepCopy .Values.vmauth) (deepCopy .Values.common) -}}
2
+ {{- $_ := set .Values "vmauth" $app }}
2
3
{{- if $app.enabled -}}
3
4
{{- $ctx := dict "helm" . "appKey" "vmauth" }}
4
5
{{- $fullname := include "vm.plain.fullname" $ctx }}
Original file line number Diff line number Diff line change 1
- {{- $app := .Values.vminsert -}}
1
+ {{- $app := merge (deepCopy .Values.vminsert) (deepCopy .Values.common) -}}
2
+ {{- $_ := set .Values "vminsert" $app }}
2
3
{{- if $app.enabled -}}
3
4
{{- $ctx := dict "helm" . "appKey" "vminsert" }}
4
5
{{- $fullname := include "vm.plain.fullname" $ctx }}
Original file line number Diff line number Diff line change 1
- {{- $app := .Values.vmselect -}}
1
+ {{- $app := merge (deepCopy .Values.vmselect) (deepCopy .Values.common) -}}
2
+ {{- $_ := set .Values "vmselect" $app }}
2
3
{{- if and $app.enabled (not $app.statefulSet.enabled) -}}
3
4
{{- $ctx := dict "helm" . "appKey" "vmselect" }}
4
5
{{- $fullname := include "vm.plain.fullname" $ctx }}
Original file line number Diff line number Diff line change 1
- {{- $app := .Values.vmselect }}
1
+ {{- $app := merge (deepCopy .Values.vmselect) (deepCopy .Values.common) -}}
2
+ {{- $_ := set .Values "vmselect" $app }}
2
3
{{- if and $app.enabled $app.statefulSet.enabled -}}
3
4
{{- $ctx := dict "helm" . "appKey" "vmselect" }}
4
5
{{- $fullname := include "vm.plain.fullname" $ctx }}
Original file line number Diff line number Diff line change 1
- {{- $app := .Values.vmstorage }}
1
+ {{- $app := merge (deepCopy .Values.vmstorage) (deepCopy .Values.common) -}}
2
+ {{- $_ := set .Values "vmstorage" $app }}
2
3
{{- if $app.enabled -}}
3
4
{{- $ctx := dict "helm" . "appKey" "vmstorage" }}
4
5
{{- $fullname := include "vm.plain.fullname" $ctx }}
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ service should match snapshot:
61
61
name : RELEASE - NAME - victoria - metrics - cluster - vmselect
62
62
namespace : NAMESPACE
63
63
spec :
64
+ clusterIP : None
64
65
ports :
65
66
- name : http
66
67
port : 8481
@@ -170,6 +171,7 @@ service should match snapshot with fullnameOverride and extraLabels:
170
171
name : vmselect - node
171
172
namespace : NAMESPACE
172
173
spec :
174
+ clusterIP : None
173
175
ports :
174
176
- name : http
175
177
port : 8481
Original file line number Diff line number Diff line change 7
7
image :
8
8
# -- Image registry, that can be shared across multiple helm charts
9
9
registry : " "
10
+ vm :
11
+ # -- Image tag for all vm charts
12
+ tag : " "
10
13
# -- Openshift security context compatibility configuration
11
14
compatibility :
12
15
openshift :
@@ -18,9 +21,14 @@ global:
18
21
# -- Print information after deployment
19
22
printNotes : true
20
23
21
- # use SRV discovery for storageNode and selectNode flags for enterprise version
24
+ # -- use SRV discovery for storageNode and selectNode flags for enterprise version
22
25
autoDiscovery : false
23
26
27
+ common :
28
+ # -- common for all components image configuration
29
+ image :
30
+ tag : " "
31
+
24
32
serviceAccount :
25
33
# -- Specifies whether a service account should be created
26
34
create : true
@@ -220,7 +228,7 @@ vmselect:
220
228
# -- Service labels
221
229
labels : {}
222
230
# -- Service ClusterIP
223
- clusterIP : " "
231
+ clusterIP : None
224
232
# -- Service external IPs. Details are [here](https://kubernetes.io/docs/user-guide/services/#external-ips)
225
233
externalIPs : []
226
234
# -- Extra service ports
Original file line number Diff line number Diff line change 2
2
3
3
## Next release
4
4
5
- - TODO
5
+ - Fix overwrite per service empty registry
6
6
7
7
## 0.0.38
8
8
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
type : library
3
3
description : Victoria Metrics Common - contains shared templates for all Victoria Metrics helm charts
4
4
name : victoria-metrics-common
5
- version : 0.0.38
5
+ version : 0.0.39
6
6
sources :
7
7
- https://github.com/VictoriaMetrics/helm-charts
8
8
kubeVersion : " >=1.23.0-0"
Original file line number Diff line number Diff line change 1
1
2
2
3
- ![ Version] ( https://img.shields.io/badge/0.0.38 -gray?logo=Helm&labelColor=gray&link=https%3A%2F%2Fdocs.victoriametrics.com%2Fhelm%2Fvictoria-metrics-common%2Fchangelog%2F%230038 )
3
+ ![ Version] ( https://img.shields.io/badge/0.0.39 -gray?logo=Helm&labelColor=gray&link=https%3A%2F%2Fdocs.victoriametrics.com%2Fhelm%2Fvictoria-metrics-common%2Fchangelog%2F%230039 )
4
4
![ ArtifactHub] ( https://img.shields.io/badge/ArtifactHub-informational?logoColor=white&color=417598&logo=artifacthub&link=https%3A%2F%2Fartifacthub.io%2Fpackages%2Fhelm%2Fvictoriametrics%2Fvictoria-metrics-common )
5
5
![ License] ( https://img.shields.io/github/license/VictoriaMetrics/helm-charts?labelColor=green&label=&link=https%3A%2F%2Fgithub.com%2FVictoriaMetrics%2Fhelm-charts%2Fblob%2Fmaster%2FLICENSE )
6
6
![ Slack] ( https://img.shields.io/badge/Join-4A154B?logo=slack&link=https%3A%2F%2Fslack.victoriametrics.com )
Original file line number Diff line number Diff line change @@ -50,9 +50,12 @@ Victoria Metrics Image
50
50
{ {- end -} }
51
51
{ {- end -} }
52
52
{ {- $image := ternary $ctx .image $values .image (hasKey $ctx " image" ) -} }
53
- { {- if and (not $image .registry) (hasKey $image " registry" ) -} }
54
- { {- $_ := unset $image " registry" -} }
53
+ { {- if not $image .registry } }
54
+ { {- if (($Values .global).image).registry -} }
55
+ { {- $_ := set $image " registry" (($Values .global).image).registry -} }
56
+ { {- else if hasKey $image " registry" -} }
57
+ { {- $_ := unset $image " registry" -} }
58
+ { {- end -} }
55
59
{ {- end -} }
56
- { {- $image = mergeOverwrite (deepCopy (($Values .global).image | default dict)) ($image | default dict) -} }
57
60
{ {- toYaml (dict " image" $image ) -} }
58
61
{ {- end -} }
Original file line number Diff line number Diff line change 1
1
## Next release
2
2
3
- - TODO
3
+ - added ability to override default headless service .Values.server.service.clusterIP with empty value
4
4
5
5
## 0.13.8
6
6
Original file line number Diff line number Diff line change @@ -1206,7 +1206,7 @@ scrape_configs:
1206
1206
<td>server.service.clusterIP</td>
1207
1207
<td>string</td>
1208
1208
<td><pre class="helm-vars-default-value language-yaml" lang="">
1209
- <code class =" language-yaml " >""
1209
+ <code class =" language-yaml " >None
1210
1210
</code >
1211
1211
</pre >
1212
1212
</td >
Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ spec:
21
21
{{- $type = "ClusterIP" }}
22
22
{{- end }}
23
23
type : {{ $type }}
24
- {{- $clusterIP := $service.clusterIP }}
25
- {{- if and (not $clusterIP) (eq $type "ClusterIP") $app.statefulSet.enabled }}
26
- {{- $clusterIP = "None" }}
27
- {{- end }}
28
- {{- with $clusterIP }}
24
+ {{- if eq $type "ClusterIP" }}
25
+ {{- with $service.clusterIP }}
29
26
clusterIP : {{ . }}
30
27
{{- end }}
28
+ {{- end }}
31
29
{{- with $service.externalIPs }}
32
30
externalIPs : {{ toYaml . | nindent 4 }}
33
31
{{- end }}
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ server:
351
351
# -- Service labels
352
352
labels : {}
353
353
# -- Service ClusterIP
354
- clusterIP : " "
354
+ clusterIP : " None "
355
355
# -- Service external IPs. Details are [here](https://kubernetes.io/docs/user-guide/services/#external-ips)
356
356
externalIPs : []
357
357
# -- Service load balancer IP
You can’t perform that action at this time.
0 commit comments