mirror of
https://github.com/rancher/rke.git
synced 2025-09-18 08:06:20 +00:00
Add address annotation to the node plan
Adding labels to nod plan
This commit is contained in:
committed by
Darren Shepherd
parent
4cf9186250
commit
915ce9ad29
@@ -9,6 +9,7 @@ import (
|
||||
b64 "encoding/base64"
|
||||
|
||||
"github.com/rancher/rke/hosts"
|
||||
"github.com/rancher/rke/k8s"
|
||||
"github.com/rancher/rke/pki"
|
||||
"github.com/rancher/rke/services"
|
||||
"github.com/rancher/types/apis/management.cattle.io/v3"
|
||||
@@ -63,6 +64,11 @@ func BuildRKEConfigNodePlan(ctx context.Context, myCluster *Cluster, host *hosts
|
||||
Processes: processes,
|
||||
PortChecks: portChecks,
|
||||
Files: []v3.File{cloudConfig},
|
||||
Annotations: map[string]string{
|
||||
k8s.ExternalAddressAnnotation: host.Address,
|
||||
k8s.InternalAddressAnnotation: host.InternalAddress,
|
||||
},
|
||||
Labels: host.Labels,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user