config

package
v0.0.0-...-f10b042 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config handles the configuration of the controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IgnoreNamespaces     []string
	EnableLeaderElection bool
	Logger               logr.Logger
}

Config represents the configuration for the controller.

func (*Config) ParseIgnoreNamespaces

func (c *Config) ParseIgnoreNamespaces(namespaces string)

ParseIgnoreNamespaces parses the namespaces string provided by the user into a list of strings based on the comma separator. Appends the `kube-system` and CONTROLLER_NAMESPACEto the string and removes the duplicates.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL