Skip to content

Commit

Permalink
kong: only set clusterIP when type is ClusterIP (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Dec 5, 2023
1 parent 16f5a1d commit b8a4ed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Improvements

* Only set `Service` `clusterIP` when `type` is `ClusterIP`
* Bumped Kong version to 3.5.
[#957](https://github.com/Kong/charts/pull/957)
* Support for `affinity` configuration has been added to migration job templates.
Expand Down
2 changes: 1 addition & 1 deletion charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ spec:
{{- if .externalTrafficPolicy }}
externalTrafficPolicy: {{ .externalTrafficPolicy }}
{{- end }}
{{- if .clusterIP }}
{{- if (and (eq .type "ClusterIP") .clusterIP )}}
clusterIP: {{ .clusterIP }}
{{- end }}
selector:
Expand Down

0 comments on commit b8a4ed2

Please sign in to comment.