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: cmd/api-syncagent/options.go
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,10 @@ type Options struct {
35
35
// work.
36
36
// KubeconfigFile string
37
37
38
-
// PlatformKubeconfig is the kubeconfig that gives access to kcp. This
38
+
// KcpKubeconfig is the kubeconfig that gives access to kcp. This
39
39
// kubeconfig's cluster URL has to point to the workspace where the APIExport
40
40
// referenced via APIExportRef lives.
41
-
PlatformKubeconfigstring
41
+
KcpKubeconfigstring
42
42
43
43
// Namespace is the namespace that the Sync Agent runs in.
44
44
Namespacestring
@@ -49,7 +49,7 @@ type Options struct {
49
49
50
50
// AgentName can be used to give this Sync Agent instance a custom name. This name is used
51
51
// for the Sync Agent resource inside kcp. This value must not be changed after a Sync Agent
52
-
// has registered for the first time in the platform.
52
+
// has registered for the first time in kcp.
53
53
// If not given, defaults to "<service ref>-syncagent".
54
54
AgentNamestring
55
55
@@ -77,7 +77,7 @@ func NewOptions() *Options {
77
77
func (o*Options) AddFlags(flags*pflag.FlagSet) {
78
78
o.LogOptions.AddPFlags(flags)
79
79
80
-
flags.StringVar(&o.PlatformKubeconfig, "platform-kubeconfig", o.PlatformKubeconfig, "kubeconfig file of kcp")
80
+
flags.StringVar(&o.KcpKubeconfig, "kcp-kubeconfig", o.KcpKubeconfig, "kubeconfig file of kcp")
81
81
flags.StringVar(&o.Namespace, "namespace", o.Namespace, "Kubernetes namespace the Sync Agent is running in")
82
82
flags.StringVar(&o.AgentName, "agent-name", o.AgentName, "name of this Sync Agent, must not be changed after the first run, can be left blank to auto-generate a name")
83
83
flags.StringVar(&o.APIExportRef, "apiexport-ref", o.APIExportRef, "name of the APIExport in kcp that this Sync Agent is powering")
@@ -108,8 +108,8 @@ func (o *Options) Validate() error {
108
108
errs=append(errs, errors.New("--apiexport-ref is required"))
109
109
}
110
110
111
-
iflen(o.PlatformKubeconfig) ==0 {
112
-
errs=append(errs, errors.New("--platform-kubeconfig is required"))
111
+
iflen(o.KcpKubeconfig) ==0 {
112
+
errs=append(errs, errors.New("--kcp-kubeconfig is required"))
0 commit comments