You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/options/options.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ type KubeRouterConfig struct {
23
23
PeerRouterstring
24
24
ClusterAsnstring
25
25
PeerAsnstring
26
+
HostnameOverridestring
26
27
}
27
28
28
29
funcNewKubeRouterConfig() *KubeRouterConfig {
@@ -54,4 +55,5 @@ func (s *KubeRouterConfig) AddFlags(fs *pflag.FlagSet) {
54
55
fs.StringVar(&s.PeerRouter, "peer-router", s.PeerRouter, "The ip address of the external router to which all nodes will peer and advertise the cluster ip and pod cidr's")
55
56
fs.StringVar(&s.ClusterAsn, "cluster-asn", s.ClusterAsn, "ASN number under which cluster nodes will run iBGP")
56
57
fs.StringVar(&s.PeerAsn, "peer-asn", s.PeerAsn, "ASN number of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr")
58
+
fs.StringVar(&s.HostnameOverride, "hostname-override", s.HostnameOverride, "If non-empty, will use this string as identification instead of the actual hostname.")
0 commit comments