Skip to content

Commit

Permalink
make GKE-NAMESPACE an optional entry in TRAFFIC_DIRECTOR_CLIENT_ENVIR…
Browse files Browse the repository at this point in the history
…ONMENT Node Metadata
  • Loading branch information
arvindbr8 committed Sep 13, 2024
1 parent 6b454e3 commit 470e8aa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ func main() {
}
}
deploymentInfo = map[string]string{
"GKE-CLUSTER": cluster,
"GKE-LOCATION": clusterLocation,
"GCP-ZONE": zone,
"INSTANCE-IP": ip,
"GKE-POD": pod,
"GKE-NAMESPACE": *gkeNamespace,
"GKE-CLUSTER": cluster,
"GKE-LOCATION": clusterLocation,
"GCP-ZONE": zone,
"INSTANCE-IP": ip,
"GKE-POD": pod,
}
if *gkeNamespace != "" {
deploymentInfo["GKE-NAMESPACE"] = *gkeNamespace
}
case deploymentTypeGCE:
vmName := *gceVM
Expand Down

0 comments on commit 470e8aa

Please sign in to comment.