scheduler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Namespaces to watch
	Namespaces []string

	// NamespaceForCluster to create decisions into
	NamespaceForCluster map[string]string

	// FederationsByCluster for now unused outside of transform
	FederationsByCluster map[string]map[string]struct{}

	// ClustersByFederation to filter observations in schedule when federation annotation is NOT empty
	ClustersByFederation map[string]map[string]struct{}

	// NamespacesByFederation to list observations in schedule when federation annotation is NOT empty
	NamespacesByFederation map[string][]string

	// PairedClustersByCluster to filter observations in schedule when federation annotation is empty (any federation)
	PairedClustersByCluster map[string]map[string]struct{}

	// PairedNamespacesByCluster to list observations in schedule when federation annotation is empty (any federation)
	PairedNamespacesByCluster map[string][]string

	// UseClusterNamespaces to determine whether source cluster names are the names of the observations's namespaces
	// or the ParentClusterName multi-cluster GC label (trust the agent then).
	UseClusterNamespaces bool
}

func Load

func Load(schedulerNamespace string) *Config

func New

func New(raw *configv1alpha1.Scheduler, schedulerNamespace string) *Config

func (*Config) GetObservationClusterName

func (c *Config) GetObservationClusterName(obs v1.Object) string

Jump to

Keyboard shortcuts

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