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
+3-17Lines changed: 3 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -54,15 +54,6 @@ type Options struct {
54
54
// If not given, defaults to "<service ref>-syncagent".
55
55
AgentNamestring
56
56
57
-
// APIExportRef references the APIExport within a kcp workspace that this
58
-
// Sync Agent should work with by name. The APIExport has to already exist, but it must not have
59
-
// any pre-existing resource schemas configured, the agent will fill them in based on
60
-
// PublishedResources.
61
-
//
62
-
// Deprecated: Use APIExportEndpointSliceRef instead. If an APIExport is referenced, the agent
63
-
// will attempt to find and use an endpoint slice of the same name.
64
-
APIExportRefstring
65
-
66
57
// APIExportEndpointSliceRef references the APIExportEndpointSlice within a kcp workspace that this
67
58
// Sync Agent should work with by name. The agent will automatically manage the resource schemas
68
59
// in the APIExport referenced by this endpoint slice.
@@ -96,7 +87,6 @@ func (o *Options) AddFlags(flags *pflag.FlagSet) {
96
87
flags.StringVar(&o.KcpKubeconfig, "kcp-kubeconfig", o.KcpKubeconfig, "kubeconfig file of kcp")
97
88
flags.StringVar(&o.Namespace, "namespace", o.Namespace, "Kubernetes namespace the Sync Agent is running in")
98
89
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")
99
-
flags.StringVar(&o.APIExportRef, "apiexport-ref", o.APIExportRef, "name of the APIExport in kcp that this Sync Agent is powering (deprecated, use --apiexportendpointslice-ref instead)")
100
90
flags.StringVar(&o.APIExportEndpointSliceRef, "apiexportendpointslice-ref", o.APIExportEndpointSliceRef, "name of the APIExportEndpointSlice in kcp that this Sync Agent is powering")
101
91
flags.StringVar(&o.PublishedResourceSelectorString, "published-resource-selector", o.PublishedResourceSelectorString, "restrict this Sync Agent to only process PublishedResources matching this label selector (optional)")
102
92
flags.BoolVar(&o.EnableLeaderElection, "enable-leader-election", o.EnableLeaderElection, "whether to perform leader election")
@@ -124,12 +114,8 @@ func (o *Options) Validate() error {
0 commit comments