MCPcopy
hub / github.com/operator-framework/operator-sdk / exitIfUnsupported

Function exitIfUnsupported

internal/cmd/helm-operator/run/cmd.go:216–222  ·  view source on GitHub ↗

exitIfUnsupported prints an error containing unsupported field names and exits if any of those fields are not their default values.

(options manager.Options)

Source from the content-addressed store, hash-verified

214// exitIfUnsupported prints an error containing unsupported field names and exits
215// if any of those fields are not their default values.
216func exitIfUnsupported(options manager.Options) {
217 // The below options are webhook-specific, which is not supported by helm.
218 if options.WebhookServer != nil {
219 log.Error(errors.New("webhook configurations set in manager options"), "unsupported configuration")
220 os.Exit(1)
221 }
222}
223
224func configureWatchNamespaces(options *manager.Options, log logr.Logger) {
225 namespaces := splitNamespaces(os.Getenv(k8sutil.WatchNamespaceEnvVar))

Callers 1

runFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected