Documentation ¶
Index ¶
- func DeleteClusterProfile(ctx context.Context, cl client.Client, name string) error
- func DeleteProfile(ctx context.Context, cl client.Client, namespace, name string) error
- func GetSpec(opts *ReconcileProfileOpts) (*sveltosv1beta1.Spec, error)
- func GetStatusConditions(summary *sveltosv1beta1.ClusterSummary) ([]metav1.Condition, error)
- func HelmReleaseReadyConditionType(releaseNamespace, releaseName string) string
- func ReconcileClusterProfile(ctx context.Context, cl client.Client, name string, opts ReconcileProfileOpts) (*sveltosv1beta1.ClusterProfile, error)
- func ReconcileProfile(ctx context.Context, cl client.Client, namespace string, name string, ...) (*sveltosv1beta1.Profile, error)
- type HelmChartOpts
- type ReconcileProfileOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClusterProfile ¶
DeleteClusterProfile deletes a Sveltos ClusterProfile object.
func DeleteProfile ¶
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 ¶
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 }