Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/node: give priority to nodeName from K8S_NODE_NAME env variable
If Cilium is running in k8s mode, K8S_NODE_NAME is available so we can set the node name directly upon node initialization. This prevents Cilium from setting the node name with a different name at a later stage as the os.Hostname() can be return a different value than K8S_NODE_NAME. Fixes: dbfc2c3 ("k8s: remove waiting for node spec on k8s client init") Signed-off-by: André Martins <andre@cilium.io>
- Loading branch information