controllers

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 50 Imported by: 0

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
}

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
}

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