Skip to content

Commit 4d39041

Browse files
committed
server.url
1 parent 6631258 commit 4d39041

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

backend/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ func NewConfig(options *options.CompletedOptions) (*Config, error) {
149149
return nil, fmt.Errorf("error setting up controller manager: %w", err)
150150
}
151151

152-
if provider != nil {
153-
provider.SetupWithManager(manager)
154-
}
155-
156152
config.Provider = provider
157153
config.Manager = manager
158154

backend/options/options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ func (options *Options) AddFlags(fs *pflag.FlagSet) {
117117
fmt.Sprintf("The multicluster runtime provider. Possible values are: %v", sets.List(sets.Set[string](sets.StringKeySet(providerAliases)))),
118118
)
119119

120+
fs.StringVar(&options.ServerURL, "server-url", options.ServerURL, "The URL of the backend server. If not specified, it will be derived from the kubeconfig or service account's hosts.")
121+
120122
fs.StringVar(&options.TestingAutoSelect, "testing-auto-select", options.TestingAutoSelect, "<resource>.<group> that is automatically selected on th bind screen for testing")
121123
fs.MarkHidden("testing-auto-select") //nolint:errcheck
122124
}

0 commit comments

Comments
 (0)