mirror of https://github.com/k3s-io/k3s
Merge pull request #58970 from dims/fix-advertise-address-param-in-local-up-cluster
Automatic merge from submit-queue (batch tested with PRs 58969, 58970). 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>. fix parameter advertise_address should be --advertise-address **What this PR does / why we need it**: Not sure how we missed this, the correct param is `--advertise-address` **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```pull/6/head
commit
03b3d599fe
|
@ -496,10 +496,10 @@ function start_apiserver {
|
|||
# is set to 127.0.0.1
|
||||
advertise_address=""
|
||||
if [[ "${API_HOST_IP}" != "127.0.0.1" ]]; then
|
||||
advertise_address="--advertise_address=${API_HOST_IP}"
|
||||
advertise_address="--advertise-address=${API_HOST_IP}"
|
||||
fi
|
||||
if [[ "${ADVERTISE_ADDRESS}" != "" ]] ; then
|
||||
advertise_address="--advertise_address=${ADVERTISE_ADDRESS}"
|
||||
advertise_address="--advertise-address=${ADVERTISE_ADDRESS}"
|
||||
fi
|
||||
|
||||
# Create CA signers
|
||||
|
|
Loading…
Reference in New Issue