sveltos

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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 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 HelmReleaseReadyConditionType

func HelmReleaseReadyConditionType(releaseNamespace, releaseName string) string

HelmReleaseReadyConditionType returns a SveltosHelmReleaseReady type per service to be used in status conditions.

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 HelmChartOpts

type HelmChartOpts struct {
	CredentialsSecretRef  *corev1.SecretReference
	Values                string
	RepositoryURL         string
	RepositoryName        string
	ChartName             string
	ChartVersion          string
	ReleaseName           string
	ReleaseNamespace      string
	PlainHTTP             bool
	InsecureSkipTLSVerify bool
}

func GetHelmChartOpts

func GetHelmChartOpts(ctx context.Context, c client.Client, namespace string, services []hmc.ServiceSpec) ([]HelmChartOpts, error)

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

type ReconcileProfileOpts

type ReconcileProfileOpts struct {
	OwnerReference *metav1.OwnerReference
	LabelSelector  metav1.LabelSelector
	HelmChartOpts  []HelmChartOpts
	Priority       int32
	StopOnConflict bool
}

Jump to

Keyboard shortcuts

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