Skip to content

Commit

Permalink
Merge pull request #371 from jingyuanliang/nodename
Browse files Browse the repository at this point in the history
install-cni: rename env var NODE_NAME to CURRENT_NODE_NAME
  • Loading branch information
google-oss-prow[bot] authored Oct 10, 2024
2 parents e1f8e9c + 3f8de61 commit 6b53517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/install-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fetch_node_object() {
fi

local token
local node_url="https://${host}:${KUBERNETES_SERVICE_PORT}/api/v1/nodes?watch=true&timeoutSeconds=${timeout}&fieldSelector=metadata.name=${NODE_NAME:-${HOSTNAME}}"
local node_url="https://${host}:${KUBERNETES_SERVICE_PORT}/api/v1/nodes?watch=true&timeoutSeconds=${timeout}&fieldSelector=metadata.name=${CURRENT_NODE_NAME:-${HOSTNAME}}"

for ((i=1; i<=attempts; i++)); do
log "Watching attempt #${i} at ${node_url}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/testcase/testcase-nodename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export ENABLE_CILIUM_PLUGIN=false
export ENABLE_MASQUERADE=false
export ENABLE_IPV6=false

export NODE_NAME=gke-my-cluster-default-pool-128bc25d-9c94
export CURRENT_NODE_NAME=gke-my-cluster-default-pool-128bc25d-9c94
export HOSTNAME=unexpected

CNI_SPEC_TEMPLATE=$(cat testdata/spec-template.json)
Expand Down

0 comments on commit 6b53517

Please sign in to comment.