sveltos

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

ClusterReconciler reconciles a SveltosCluster object.

func (*ClusterReconciler) Reconcile

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

func (*ClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ProfileConfig

type ProfileConfig struct {
	// KSM specific configuration
	// Priority is the priority of the Profile.
	Priority *int32 `json:"priority,omitempty"`
	// DriftIgnore is a list of [github.com/projectsveltos/libsveltos/api/v1beta1.PatchSelector] to ignore
	// when checking for drift.
	DriftIgnore []libsveltosv1beta1.PatchSelector `json:"driftIgnore,omitempty"`

	SyncMode             string                                       `json:"syncMode,omitempty"`
	TemplateResourceRefs []addoncontrollerv1beta1.TemplateResourceRef `json:"templateResourceRefs,omitempty"`
	PolicyRefs           []addoncontrollerv1beta1.PolicyRef           `json:"policyRefs,omitempty"`
	DriftExclusions      []addoncontrollerv1beta1.DriftExclusion      `json:"driftExclusions,omitempty"`
	Patches              []libsveltosv1beta1.Patch                    `json:"patches,omitempty"`
	ContinueOnError      bool                                         `json:"continueOnError,omitempty"`
	Reloader             bool                                         `json:"reloader,omitempty"`
	StopOnConflict       bool                                         `json:"stopOnConflict,omitempty"`
}

type ServiceSetReconciler

type ServiceSetReconciler struct {
	client.Client

	// AdapterName is the name of the workload running the controller
	// effectively this name is used to identify adapter in the
	// [github.com/k0rdent/kcm/api/v1beta1.StateManagementProvider] spec.
	AdapterName      string
	AdapterNamespace string
	// contains filtered or unexported fields
}

ServiceSetReconciler reconciles a ServiceSet object and produces github.com/projectsveltos/addon-controller/api/v1beta1.Profile objects.

func (*ServiceSetReconciler) Reconcile

func (r *ServiceSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

func (*ServiceSetReconciler) SetupWithManager

func (r *ServiceSetReconciler) 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