Skip to content

Commit

Permalink
do not set clusterIP for type != ClusterIP (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Dec 3, 2024
1 parent 2f6eb6a commit fe7d303
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-logs-single/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- do not set clusterIP value, when service type is not ClusterIP. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1838)

## 0.8.8

Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-logs-single/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v1.0.0
description: Victoria Logs Single version - high-performance, cost-effective and scalable logs storage
name: victoria-logs-single
version: 0.8.8
version: 0.8.9
sources:
- https://github.com/VictoriaMetrics/helm-charts
icon: https://avatars.githubusercontent.com/u/43720803?s=200&v=4
Expand Down
12 changes: 6 additions & 6 deletions charts/victoria-logs-single/templates/server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ metadata:
{{- $_ := unset $ctx "extraLabels" }}
name: {{ include "vm.plain.fullname" $ctx }}
spec:
{{- $type := $service.type }}
{{- if and (not $type) $app.statefulSet.enabled }}
{{- $type = "ClusterIP" }}
{{- end }}
type: {{ $type }}
{{- $clusterIP := $service.clusterIP }}
{{- if and (not $clusterIP) $app.statefulSet.enabled }}
{{- if and (not $clusterIP) (eq $type "ClusterIP") $app.statefulSet.enabled }}
{{- $clusterIP = "None" }}
{{- end }}
{{- with $clusterIP }}
Expand All @@ -30,11 +35,6 @@ spec:
{{- with $service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml . | nindent 4 }}
{{- end }}
{{- $type := $service.type }}
{{- if and (not $type) $app.statefulSet.enabled }}
{{- $type = "ClusterIP" }}
{{- end }}
type: {{ $type }}
{{- with $service.healthCheckNodePort }}
healthCheckNodePort: {{ . }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-cluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- do not set clusterIP value, when service type is not ClusterIP. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1838)

## 0.15.0

Expand Down
12 changes: 6 additions & 6 deletions charts/victoria-metrics-cluster/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ metadata:
name: {{ $fullname }}
namespace: {{ include "vm.namespace" $ }}
spec:
{{- $type := $service.type }}
{{- if and (not $type) ($app.statefulSet).enabled }}
{{- $type = "ClusterIP" }}
{{- end }}
type: {{ $type }}
{{- $clusterIP := $service.clusterIP }}
{{- if and (not $clusterIP) ($app.statefulSet).enabled }}
{{- if and (not $clusterIP) (eq $type "ClusterIP") ($app.statefulSet).enabled }}
{{- $clusterIP = "None" }}
{{- end }}
{{- with $clusterIP }}
Expand All @@ -33,11 +38,6 @@ spec:
{{- with $service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml . | nindent 4 }}
{{- end }}
{{- $type := $service.type }}
{{- if and (not $type) ($app.statefulSet).enabled }}
{{- $type = "ClusterIP" }}
{{- end }}
type: {{ $type }}
{{- with $service.healthCheckNodePort }}
healthCheckNodePort: {{ . }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-single/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- do not set clusterIP value, when service type is not ClusterIP. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1838)

## 0.13.0

Expand Down
12 changes: 6 additions & 6 deletions charts/victoria-metrics-single/templates/server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ metadata:
{{- $_ := unset $ctx "extraLabels" }}
name: {{ $fullname }}
spec:
{{- $type := $service.type }}
{{- if and (not $type) $app.statefulSet.enabled }}
{{- $type = "ClusterIP" }}
{{- end }}
type: {{ $type }}
{{- $clusterIP := $service.clusterIP }}
{{- if and (not $clusterIP) $app.statefulSet.enabled }}
{{- if and (not $clusterIP) (eq $type "ClusterIP") $app.statefulSet.enabled }}
{{- $clusterIP = "None" }}
{{- end }}
{{- with $clusterIP }}
Expand All @@ -32,11 +37,6 @@ spec:
{{- with $service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml . | nindent 4 }}
{{- end }}
{{- $type := $service.type }}
{{- if and (not $type) $app.statefulSet.enabled }}
{{- $type = "ClusterIP" }}
{{- end }}
type: {{ $type }}
{{- with $service.healthCheckNodePort }}
healthCheckNodePort: {{ . }}
{{- end }}
Expand Down

0 comments on commit fe7d303

Please sign in to comment.