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
{{ message }}
This repository was archived by the owner on Oct 28, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: virtualcluster/cmd/vn-agent/app/options/options.go
+4
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,9 @@ type ServerOption struct {
51
51
// Port is the vn-agent server listening on.
52
52
Portuint
53
53
54
+
// Kubeconfig is the supercluster Kubeconfig to connect to
55
+
Kubeconfigstring
56
+
54
57
// FeatureGates enabled by the user.
55
58
FeatureGatesmap[string]bool
56
59
}
@@ -84,6 +87,7 @@ func (o *Options) Flags() cliflag.NamedFlagSets {
84
87
serverFS.StringVar(&o.CertDirectory, "cert-dir", o.CertDirectory, "CertDirectory is the directory where the TLS certs are located")
85
88
serverFS.StringVar(&o.TLSCertFile, "tls-cert-file", o.TLSCertFile, "TLSCertFile is the file containing x509 Certificate for HTTPS")
86
89
serverFS.StringVar(&o.TLSPrivateKeyFile, "tls-private-key-file", o.TLSPrivateKeyFile, "TLSPrivateKeyFile is the file containing x509 private key matching tlsCertFile")
90
+
serverFS.StringVar(&o.Kubeconfig, "kubeconfig", o.Kubeconfig, "Path to kubeconfig file with authorization and master location information.")
87
91
serverFS.UintVar(&o.Port, "port", 10550, "Port is the server listening on")
88
92
serverFS.Var(cliflag.NewMapStringBool(&o.ServerOption.FeatureGates), "feature-gates", "A set of key=value pairs that describe featuregate gates for various features.")
0 commit comments