scope

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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