Documentation ¶
Index ¶
- type ClusterSummaryScope
- func (s *ClusterSummaryScope) Close(ctx context.Context) error
- func (s *ClusterSummaryScope) IsContinuousSync() bool
- func (s *ClusterSummaryScope) IsContinuousWithDriftDetection() bool
- func (s *ClusterSummaryScope) IsDryRunSync() bool
- func (s *ClusterSummaryScope) IsOneTimeSync() bool
- func (s *ClusterSummaryScope) Name() string
- func (s *ClusterSummaryScope) Namespace() string
- func (s *ClusterSummaryScope) PatchObject(ctx context.Context) error
- func (s *ClusterSummaryScope) SetDependenciesMessage(message *string)
- func (s *ClusterSummaryScope) SetFailureMessage(featureID configv1beta1.FeatureID, failureMessage *string)
- func (s *ClusterSummaryScope) SetFailureReason(featureID configv1beta1.FeatureID, failureReason *string)
- func (s *ClusterSummaryScope) SetFeatureStatus(featureID configv1beta1.FeatureID, status configv1beta1.FeatureStatus, ...)
- func (s *ClusterSummaryScope) SetLastAppliedTime(featureID configv1beta1.FeatureID, lastAppliedTime *metav1.Time)
- type ClusterSummaryScopeParams
- type ProfileScope
- func (s *ProfileScope) Close(ctx context.Context) error
- func (s *ProfileScope) ControllerName() string
- func (s *ProfileScope) GetClusterProfile() *configv1beta1.ClusterProfile
- func (s *ProfileScope) GetKind() string
- func (s *ProfileScope) GetProfile() *configv1beta1.Profile
- func (s *ProfileScope) GetSelector() *metav1.LabelSelector
- func (s *ProfileScope) GetSpec() *configv1beta1.Spec
- func (s *ProfileScope) GetStatus() *configv1beta1.Status
- func (s *ProfileScope) IsContinuousSync() bool
- func (s *ProfileScope) IsDryRunSync() bool
- func (s *ProfileScope) IsOneTimeSync() bool
- func (s *ProfileScope) Name() string
- func (s *ProfileScope) Namespace() string
- func (s *ProfileScope) PatchObject(ctx context.Context) error
- func (s *ProfileScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
- type ProfileScopeParams
- type SetScope
- func (s *SetScope) Close(ctx context.Context) error
- func (s *SetScope) ControllerName() string
- func (s *SetScope) GetClusterSet() *libsveltosv1beta1.ClusterSet
- func (s *SetScope) GetKind() string
- func (s *SetScope) GetSelector() *metav1.LabelSelector
- func (s *SetScope) GetSet() *libsveltosv1beta1.Set
- func (s *SetScope) GetSpec() *libsveltosv1beta1.Spec
- func (s *SetScope) GetStatus() *libsveltosv1beta1.Status
- func (s *SetScope) Name() string
- func (s *SetScope) PatchObject(ctx context.Context) error
- func (s *SetScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
- func (s *SetScope) SetSelectedClusterRefs(selectedClusters []corev1.ObjectReference)
- type SetScopeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterSummaryScope ¶
type ClusterSummaryScope struct { logr.Logger Profile client.Object ClusterSummary *configv1beta1.ClusterSummary // contains filtered or unexported fields }
ClusterSummaryScope defines the basic context for an actuator to operate upon.
func NewClusterSummaryScope ¶
func NewClusterSummaryScope(params *ClusterSummaryScopeParams) (*ClusterSummaryScope, error)
NewClusterSummaryScope creates a new ClusterSummary Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*ClusterSummaryScope) Close ¶
func (s *ClusterSummaryScope) Close(ctx context.Context) error
Close closes the current scope persisting the clusterprofile configuration and status.
func (*ClusterSummaryScope) IsContinuousSync ¶
func (s *ClusterSummaryScope) IsContinuousSync() bool
IsContinuousSync returns true if ClusterProfile is set to keep updating workload cluster
func (*ClusterSummaryScope) IsContinuousWithDriftDetection ¶ added in v0.21.1
func (s *ClusterSummaryScope) IsContinuousWithDriftDetection() bool
IsContinuousWithDriftDetection returns true if ClusterProfile is set to SyncModeContinuousWithDriftDetection
func (*ClusterSummaryScope) IsDryRunSync ¶
func (s *ClusterSummaryScope) IsDryRunSync() bool
IsDryRunSync returns true if ClusterProfile sync mod is set to dryRun
func (*ClusterSummaryScope) IsOneTimeSync ¶
func (s *ClusterSummaryScope) IsOneTimeSync() bool
IsOneTimeSync returns true if ClusterProfile sync mod is set to one time
func (*ClusterSummaryScope) Name ¶
func (s *ClusterSummaryScope) Name() string
Name returns the ClusterSummary name.
func (*ClusterSummaryScope) Namespace ¶
func (s *ClusterSummaryScope) Namespace() string
Namespace returns the ClusterSummary namespace.
func (*ClusterSummaryScope) PatchObject ¶
func (s *ClusterSummaryScope) PatchObject(ctx context.Context) error
PatchObject persists the cluster configuration and status.
func (*ClusterSummaryScope) SetDependenciesMessage ¶ added in v0.20.0
func (s *ClusterSummaryScope) SetDependenciesMessage(message *string)
SetDependenciesMessage sets the dependencies status.
func (*ClusterSummaryScope) SetFailureMessage ¶
func (s *ClusterSummaryScope) SetFailureMessage(featureID configv1beta1.FeatureID, failureMessage *string)
SetFailureMessage sets the infrastructure status failure message.
func (*ClusterSummaryScope) SetFailureReason ¶
func (s *ClusterSummaryScope) SetFailureReason(featureID configv1beta1.FeatureID, failureReason *string)
SetFailureReason sets the feature status failure reason.
func (*ClusterSummaryScope) SetFeatureStatus ¶
func (s *ClusterSummaryScope) SetFeatureStatus(featureID configv1beta1.FeatureID, status configv1beta1.FeatureStatus, hash []byte)
SetFeatureStatus sets the feature status.
func (*ClusterSummaryScope) SetLastAppliedTime ¶
func (s *ClusterSummaryScope) SetLastAppliedTime(featureID configv1beta1.FeatureID, lastAppliedTime *metav1.Time)
type ClusterSummaryScopeParams ¶
type ClusterSummaryScopeParams struct { Client client.Client Logger logr.Logger Profile client.Object ClusterSummary *configv1beta1.ClusterSummary ControllerName string }
ClusterSummaryScopeParams defines the input parameters used to create a new ClusterSummary Scope.
type ProfileScope ¶ added in v0.21.0
type ProfileScope struct { logr.Logger Profile client.Object // contains filtered or unexported fields }
ProfileScope defines the basic context for an actuator to operate upon.
func NewProfileScope ¶ added in v0.21.0
func NewProfileScope(params ProfileScopeParams) (*ProfileScope, error)
NewProfileScope creates a new Profile Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*ProfileScope) Close ¶ added in v0.21.0
func (s *ProfileScope) Close(ctx context.Context) error
Close closes the current scope persisting the Profile configuration and status.
func (*ProfileScope) ControllerName ¶ added in v0.21.0
func (s *ProfileScope) ControllerName() string
ControllerName returns the name of the controller that created the ProfileScope.
func (*ProfileScope) GetClusterProfile ¶ added in v0.21.0
func (s *ProfileScope) GetClusterProfile() *configv1beta1.ClusterProfile
func (*ProfileScope) GetKind ¶ added in v0.21.0
func (s *ProfileScope) GetKind() string
func (*ProfileScope) GetProfile ¶ added in v0.21.0
func (s *ProfileScope) GetProfile() *configv1beta1.Profile
func (*ProfileScope) GetSelector ¶ added in v0.21.0
func (s *ProfileScope) GetSelector() *metav1.LabelSelector
GetSelector returns the ClusterSelector
func (*ProfileScope) GetSpec ¶ added in v0.21.0
func (s *ProfileScope) GetSpec() *configv1beta1.Spec
func (*ProfileScope) GetStatus ¶ added in v0.21.0
func (s *ProfileScope) GetStatus() *configv1beta1.Status
func (*ProfileScope) IsContinuousSync ¶ added in v0.21.0
func (s *ProfileScope) IsContinuousSync() bool
IsContinuousSync returns true if Profile is set to keep updating workload cluster
func (*ProfileScope) IsDryRunSync ¶ added in v0.21.0
func (s *ProfileScope) IsDryRunSync() bool
IsDryRunSync returns true if Profile sync mod is set to dryRun
func (*ProfileScope) IsOneTimeSync ¶ added in v0.21.0
func (s *ProfileScope) IsOneTimeSync() bool
IsOneTimeSync returns true if Profile sync mod is set to one time
func (*ProfileScope) Name ¶ added in v0.21.0
func (s *ProfileScope) Name() string
Name returns the Profile name.
func (*ProfileScope) Namespace ¶ added in v0.27.0
func (s *ProfileScope) Namespace() string
Namespace returns the Profile namespace.
func (*ProfileScope) PatchObject ¶ added in v0.21.0
func (s *ProfileScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*ProfileScope) SetMatchingClusterRefs ¶ added in v0.21.0
func (s *ProfileScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
SetMatchingClusterRefs sets the feature status.
type ProfileScopeParams ¶ added in v0.21.0
type ProfileScopeParams struct { Client client.Client Logger logr.Logger Profile client.Object ControllerName string }
ProfileScopeParams defines the input parameters used to create a new Profile Scope.
type SetScope ¶ added in v0.26.0
SetScope defines the basic context for an actuator to operate upon.
func NewSetScope ¶ added in v0.26.0
func NewSetScope(params SetScopeParams) (*SetScope, error)
NewSetScope creates a new Set Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*SetScope) Close ¶ added in v0.26.0
Close closes the current scope persisting the Set configuration and status.
func (*SetScope) ControllerName ¶ added in v0.26.0
ControllerName returns the name of the controller that created the SetScope.
func (*SetScope) GetClusterSet ¶ added in v0.26.0
func (s *SetScope) GetClusterSet() *libsveltosv1beta1.ClusterSet
func (*SetScope) GetSelector ¶ added in v0.26.0
func (s *SetScope) GetSelector() *metav1.LabelSelector
GetSelector returns the ClusterSelector
func (*SetScope) GetSet ¶ added in v0.26.0
func (s *SetScope) GetSet() *libsveltosv1beta1.Set
func (*SetScope) GetSpec ¶ added in v0.26.0
func (s *SetScope) GetSpec() *libsveltosv1beta1.Spec
func (*SetScope) GetStatus ¶ added in v0.26.0
func (s *SetScope) GetStatus() *libsveltosv1beta1.Status
func (*SetScope) PatchObject ¶ added in v0.26.0
PatchObject persists the feature configuration and status.
func (*SetScope) SetMatchingClusterRefs ¶ added in v0.26.0
func (s *SetScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
SetMatchingClusterRefs sets the feature status.
func (*SetScope) SetSelectedClusterRefs ¶ added in v0.26.0
func (s *SetScope) SetSelectedClusterRefs(selectedClusters []corev1.ObjectReference)
SetSelectedClusters sets the feature status.