Closed jessebot closed 2 months ago
oh no, why are all these tests failing? 🤔 Looks like it's because of this error:
Service in version "v1" cannot be handled as a Service: json: cannot unmarshal string into Go struct field ServicePort.spec.ports.nodePort of type int32
Let me see if I can fix it locally...
ok, the fix was remove the nil
from the values.yaml for the nodePort
helm parameter 👍
Description of the change
The actual port that the
NodePort
type service uses can be automatically generated if nonodeport
field is specified, as per the docs here: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeportBenefits
We now use a
with
instead of anif
to make the code a bit cleaner, instead of setting thenodePort
to""
which I think may also be confusing and/or not work.Possible drawbacks
none that I can think of, but always open to feedback :)
Applicable issues
Additional information
The actual value of
nil
in values.yaml has to change, otherwise, it interprets thenil
as a string.Checklist
Chart.yaml
according to semver.