-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/nginx-ingress] If clusterIPs are set, they will automatically be quoted #19765
Conversation
Signed-off-by: Naseem <naseemkullah@gmail.com>
Signed-off-by: Naseem <naseemkullah@gmail.com>
/lgtm |
/retest |
Other changes have been merged in before yours. You will have to fix the conflicts and then bump the version of the chart. |
np @ChiefAlexander, done. |
Sorry about this, but yet another change went in before yours. You will have to update your pr again. |
Signed-off-by: Naseem <naseemkullah@gmail.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ChiefAlexander, naseemkullah The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
… be quoted (helm#19765) * If clusterIPs are set, they will automatically be quoted Signed-off-by: Naseem <naseemkullah@gmail.com> * bump version Signed-off-by: Naseem <naseemkullah@gmail.com>
… be quoted (helm#19765) * If clusterIPs are set, they will automatically be quoted Signed-off-by: Naseem <naseemkullah@gmail.com> * bump version Signed-off-by: Naseem <naseemkullah@gmail.com> Signed-off-by: Artur <artur@upbound.io>
… be quoted (helm#19765) * If clusterIPs are set, they will automatically be quoted Signed-off-by: Naseem <naseemkullah@gmail.com> * bump version Signed-off-by: Naseem <naseemkullah@gmail.com> Signed-off-by: Artur <artur@upbound.io>
@naseemkullah How is it possible to set ClusterIP to an empty string after this PR? values.yaml:
With chart version 0.28.1, i get this:
With chart version 0.28.2, i get this:
|
Hi @cgroschupp try |
Hi @naseemkullah None of the variants produces an empty string. older kubernetes version requires an empty string in ClusterIP. Now is it possible to omit the ClusterIP. But you have to destroy the old service. Therefore the parameter omitClusterIP was introduced. |
My mistake @cgroschupp and I did not know older k8s versions required an empty string as ClusterIP. By default the chart now does not template this, even without the omitClusterIP because in the default values file |
What this PR does / why we need it:
So that if by chance clusterIP values are actually provided (this PR aside, these are values that should not even exist imho), they are automatically quoted.
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Along the path to the current fix for the infamous clusterIP conflicts of having them commented out in the default values file, I proposed a fix that included removing the
| quote
in the templates. This proved to be useless, so I am adding that back for those (if anyone) that set their clusterIPs.Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/mychartname]
)cc @ChiefAlexander @taharah