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 GetHelmCharts(ctx context.Context, c client.Client, namespace string, services []kcm.Service) ([]sveltosv1beta1.HelmChart, error)
- func GetKustomizationRefs(ctx context.Context, c client.Client, namespace string, services []kcm.Service) ([]sveltosv1beta1.KustomizationRef, error)
- func GetPolicyRefs(ctx context.Context, c client.Client, namespace string, services []kcm.Service) ([]sveltosv1beta1.PolicyRef, error)
- func GetSpec(opts *ReconcileProfileOpts) (*sveltosv1beta1.Spec, error)
- func GetStatusConditions(summary *sveltosv1beta1.ClusterSummary) ([]metav1.Condition, error)
- 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 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 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 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 }
Click to show internal directories.
Click to hide internal directories.