exitIfUnsupported prints an error containing unsupported field names and exits if any of those fields are not their default values.
(options manager.Options)
| 214 | // exitIfUnsupported prints an error containing unsupported field names and exits |
| 215 | // if any of those fields are not their default values. |
| 216 | func 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 | |
| 224 | func configureWatchNamespaces(options *manager.Options, log logr.Logger) { |
| 225 | namespaces := splitNamespaces(os.Getenv(k8sutil.WatchNamespaceEnvVar)) |