controllers

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 53 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StatusHealthy      = 0.0
	StatusDisconnected = 1.0
)

Variables

This section is empty.

Functions

func InitScheme

func InitScheme() (*runtime.Scheme, error)

func ParseServiceAccountUsername added in v1.3.0

func ParseServiceAccountUsername(username string) (*serviceAccountInfo, bool)

ParseServiceAccountUsername parses a Kubernetes username and extracts the ServiceAccount namespace and name if it's a ServiceAccount. ServiceAccount usernames follow the format: system:serviceaccount:NAMESPACE:NAME

func SveltosClusterPredicates added in v0.48.0

func SveltosClusterPredicates(logger logr.Logger) predicate.Funcs

SveltosClusterPredicates predicates for sveltos Cluster. ClusterProfileReconciler watches sveltos Cluster events and react to those by reconciling itself based on following predicates

Types

type SveltosClusterReconciler

type SveltosClusterReconciler struct {
	client.Client
	rest.Config
	Scheme               *runtime.Scheme
	ConcurrentReconciles int
	ShardKey             string // when set, only clusters matching the ShardKey will be reconciled
	SveltosNamespace     string // namespace holding the sveltos-license Secret
	// EventRecorder is used to record events on SveltosCluster instances. No event is recorded when nil.
	EventRecorder events.EventRecorder
}

SveltosClusterReconciler reconciles a SveltosCluster object

func (*SveltosClusterReconciler) Reconcile

func (r *SveltosClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*SveltosClusterReconciler) SetupWithManager

func (r *SveltosClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SveltosLicenseReconciler added in v1.0.0

type SveltosLicenseReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	SveltosNamespace string
}

SveltosLicenseReconciler reconciles a SveltosLicense object

func (*SveltosLicenseReconciler) Reconcile added in v1.0.0

func (*SveltosLicenseReconciler) SetupWithManager added in v1.0.0

func (r *SveltosLicenseReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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