sveltos

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteClusterProfile

func DeleteClusterProfile(ctx context.Context, cl client.Client, name string) error

DeleteClusterProfile deletes a Sveltos ClusterProfile object.

func DeleteProfile

func DeleteProfile(ctx context.Context, cl client.Client, namespace, name string) error

DeleteProfile deletes a Sveltos Profile object.

func GetHelmCharts added in v0.2.0

func GetHelmCharts(ctx context.Context, c client.Client, namespace string, services []kcm.Service) ([]sveltosv1beta1.HelmChart, error)

GetHelmCharts returns slice of helm chart options to use with Sveltos. Namespace is the namespace of the referred templates in services slice.

func GetKustomizationRefs added in v0.2.0

func GetKustomizationRefs(ctx context.Context, c client.Client, namespace string, services []kcm.Service) ([]sveltosv1beta1.KustomizationRef, error)

func GetPolicyRefs added in v0.2.0

func GetPolicyRefs(ctx context.Context, c client.Client, namespace string, services []kcm.Service) ([]sveltosv1beta1.PolicyRef, error)

func GetSpec

func GetSpec(opts *ReconcileProfileOpts) (*sveltosv1beta1.Spec, error)

GetSpec returns a spec object to be used with a Sveltos Profile or ClusterProfile object.

func GetStatusConditions

func GetStatusConditions(summary *sveltosv1beta1.ClusterSummary) ([]metav1.Condition, error)

GetStatusConditions returns a list of conditions from provided ClusterSummary.

func ReconcileClusterProfile

func ReconcileClusterProfile(
	ctx context.Context,
	cl client.Client,
	name string,
	opts ReconcileProfileOpts,
) (*sveltosv1beta1.ClusterProfile, error)

ReconcileClusterProfile reconciles a Sveltos ClusterProfile object.

func ReconcileProfile

func ReconcileProfile(
	ctx context.Context,
	cl client.Client,
	namespace string,
	name string,
	opts ReconcileProfileOpts,
) (*sveltosv1beta1.Profile, error)

ReconcileProfile reconciles a Sveltos Profile object.

Types

type ReconcileProfileOpts

type ReconcileProfileOpts struct {
	OwnerReference       *metav1.OwnerReference
	SyncMode             string
	LabelSelector        metav1.LabelSelector
	HelmCharts           []sveltosv1beta1.HelmChart
	KustomizationRefs    []sveltosv1beta1.KustomizationRef
	TemplateResourceRefs []sveltosv1beta1.TemplateResourceRef
	PolicyRefs           []sveltosv1beta1.PolicyRef
	DriftIgnore          []libsveltosv1beta1.PatchSelector
	DriftExclusions      []sveltosv1beta1.DriftExclusion
	Priority             int32
	StopOnConflict       bool
	Reload               bool
	ContinueOnError      bool
}

Jump to

Keyboard shortcuts

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