config

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config contains EDS controller configuration.

Index

Constants

View Source
const (
	// NodeAffinityMatchSupportEnvVar use to know if the scheduler support this feature:
	// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#scheduled-by-default-scheduler-enabled-by-default-since-1-12.
	NodeAffinityMatchSupportEnvVar = "EDS_NODEAFFINITYMATCH_SUPPORT"

	// WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE
	// which specifies the Namespace to watch.
	// An empty value means the operator is running with cluster scope.
	WatchNamespaceEnvVar = "WATCH_NAMESPACE"
	// ValidationModeEnvVar is the constant for env variable EDS_VALIDATION_MODE
	// It allows to override default validationMode setting for ExtendedDaemonSetSpecStrategyCanary.
	ValidationModeEnvVar = "EDS_VALIDATION_MODE"
)

Variables

This section is empty.

Functions

func GetWatchNamespaces

func GetWatchNamespaces() []string

GetWatchNamespaces returns the Namespaces the operator should be watching for changes.

func ManagerOptionsWithNamespaces

func ManagerOptionsWithNamespaces(logger logr.Logger, opt ctrl.Options) ctrl.Options

ManagerOptionsWithNamespaces returns an updated Options with namespaces information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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