• Kubernetes Submit Queue's avatar
    Merge pull request #66138 from wsong/fix_proxy_healthz · d2387bed
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 66138, 65951). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Don't validate HealthzBindAddress in KubeProxyConfiguration if it's empty
    
    **What this PR does / why we need it**:
    https://github.com/kubernetes/kubernetes/pull/49087 added validation for
    the HealthzBindAddress field in the KubeProxyConfiguration, but if you pass in
    --healthz-port=0 to the kube-proxy CLI, it sets this field to the empty string.
    However, an empty string is not a valid value for this field.
    
    This change allows validation to pass if HealthzBindAddress is empty.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Ref #65118
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    Fix validation for HealthzBindAddress in kube-proxy when --healthz-port is set to 0
    ```
    d2387bed
Name
Last commit
Last update
..
apis/kubeproxyconfig Loading commit data...
config Loading commit data...
healthcheck Loading commit data...
iptables Loading commit data...
ipvs Loading commit data...
metrics Loading commit data...
userspace Loading commit data...
util Loading commit data...
winkernel Loading commit data...
winuserspace Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
endpoints.go Loading commit data...
endpoints_test.go Loading commit data...
service.go Loading commit data...
service_test.go Loading commit data...
types.go Loading commit data...