controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SavedPVPropKey = linstor.NamespcAuxiliary + "/affinity-updater-saved-pv"
)

Variables

This section is empty.

Functions

func AffinityMatchesTopology

func AffinityMatchesTopology(affinity *corev1.VolumeNodeAffinity, topos []*csi.Topology) bool

func EqualSelection

func EqualSelection(segments map[string]string, term corev1.NodeSelectorTerm) bool

func IndexByResourceDefinition

func IndexByResourceDefinition(obj interface{}) ([]string, error)

func KLogV

func KLogV(level klog.Level) client.Logger

Types

type AffinityReconciler

type AffinityReconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(cfg *Config) (*AffinityReconciler, error)

func (*AffinityReconciler) Run

type Config

type Config struct {
	RestCfg           *rest.Config
	ReconcileRate     time.Duration
	ResyncRate        time.Duration
	Timeout           time.Duration
	LeaderElector     *leaderelection.LeaderElector
	BindAddress       string
	PropertyNamespace string
}

Jump to

Keyboard shortcuts

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