Documentation
¶
Index ¶
- type AddonComplianceScope
- func (s *AddonComplianceScope) Close(ctx context.Context) error
- func (s *AddonComplianceScope) ControllerName() string
- func (s *AddonComplianceScope) GetSelector() string
- func (s *AddonComplianceScope) Name() string
- func (s *AddonComplianceScope) PatchObject(ctx context.Context) error
- func (s *AddonComplianceScope) SetFailureMessage(failureMessage *string)
- func (s *AddonComplianceScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
- func (s *AddonComplianceScope) UpdateLabels(matchingClusters []corev1.ObjectReference)
- type AddonComplianceScopeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddonComplianceScope ¶
type AddonComplianceScope struct {
logr.Logger
AddonCompliance *libsveltosv1alpha1.AddonCompliance
// contains filtered or unexported fields
}
AddonComplianceScope defines the basic context for an actuator to operate upon.
func NewAddonComplianceScope ¶
func NewAddonComplianceScope(params AddonComplianceScopeParams) (*AddonComplianceScope, error)
NewAddonComplianceScope creates a new AddonCompliance Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*AddonComplianceScope) Close ¶
func (s *AddonComplianceScope) Close(ctx context.Context) error
Close closes the current scope persisting the addonConstraint configuration and status.
func (*AddonComplianceScope) ControllerName ¶
func (s *AddonComplianceScope) ControllerName() string
ControllerName returns the name of the controller that created the AddonComplianceScope.
func (*AddonComplianceScope) GetSelector ¶
func (s *AddonComplianceScope) GetSelector() string
GetSelector returns the ClusterSelector
func (*AddonComplianceScope) Name ¶
func (s *AddonComplianceScope) Name() string
Name returns the AddonCompliance name.
func (*AddonComplianceScope) PatchObject ¶
func (s *AddonComplianceScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*AddonComplianceScope) SetFailureMessage ¶
func (s *AddonComplianceScope) SetFailureMessage(failureMessage *string)
SetFailureMessage sets the failureMessage .
func (*AddonComplianceScope) SetMatchingClusterRefs ¶
func (s *AddonComplianceScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
SetMatchingClusterRefs sets the feature status.
func (*AddonComplianceScope) UpdateLabels ¶
func (s *AddonComplianceScope) UpdateLabels(matchingClusters []corev1.ObjectReference)
UpdateLabels updates AddonCompliance labels using matching clusters
type AddonComplianceScopeParams ¶
type AddonComplianceScopeParams struct {
Client client.Client
Logger logr.Logger
AddonCompliance *libsveltosv1alpha1.AddonCompliance
ControllerName string
}
AddonComplianceScopeParams defines the input parameters used to create a new AddonCompliance Scope.