controllers

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 52 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// InstanceIDIndex defines the aws machine controller's instance ID index.
	InstanceIDIndex = ".spec.instanceID"

	// DefaultReconcilerRequeue is the default value for the reconcile retry.
	DefaultReconcilerRequeue = 30 * time.Second
)
View Source
const (
	// TagsLastAppliedAnnotation is the key for the machine object annotation
	// which tracks the AdditionalTags in the Machine Provider Config.
	// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// for annotation formatting rules.
	TagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws-last-applied-tags"

	// VolumeTagsLastAppliedAnnotation is the key for the ebs volumes annotation
	// which tracks the AdditionalTags in the Machine Provider Config.
	// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// for annotation formatting rules.
	VolumeTagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-last-applied-tags-on-volumes"
)
View Source
const (
	// AWSManagedControlPlaneRefKind is the string value indicating that a cluster is AWS managed.
	AWSManagedControlPlaneRefKind = "AWSManagedControlPlane"
)
View Source
const (
	// SecurityGroupsLastAppliedAnnotation is the key for the machine object
	// annotation which tracks the SecurityGroups that the machine actuator is
	// responsible for. These are the SecurityGroups that have been handled by
	// the AdditionalSecurityGroups in the Machine Provider Config.
	// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
	// for annotation formatting rules.
	SecurityGroupsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws-last-applied-security-groups"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClusterReconciler

type AWSClusterReconciler struct {
	client.Client
	Recorder record.EventRecorder

	Endpoints             []scope.ServiceEndpoint
	WatchFilterValue      string
	ExternalResourceGC    bool
	AlternativeGCStrategy bool
	// contains filtered or unexported fields
}

AWSClusterReconciler reconciles a AwsCluster object.

func (*AWSClusterReconciler) Reconcile

func (r *AWSClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*AWSClusterReconciler) SetupWithManager

func (r *AWSClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type AWSMachineReconciler

type AWSMachineReconciler struct {
	client.Client
	Log      logr.Logger
	Recorder record.EventRecorder

	SSMServiceFactory func(cloud.ClusterScoper) services.SecretInterface

	Endpoints        []scope.ServiceEndpoint
	WatchFilterValue string
	// contains filtered or unexported fields
}

AWSMachineReconciler reconciles a AwsMachine object.

func (*AWSMachineReconciler) AWSClusterToAWSMachines

func (r *AWSMachineReconciler) AWSClusterToAWSMachines(log logger.Wrapper) handler.MapFunc

AWSClusterToAWSMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of AWSMachines.

func (*AWSMachineReconciler) Reconcile

func (r *AWSMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*AWSMachineReconciler) SetupWithManager

func (r *AWSMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type AWSManagedClusterReconciler

type AWSManagedClusterReconciler struct {
	client.Client
	Recorder         record.EventRecorder
	WatchFilterValue string
}

AWSManagedClusterReconciler reconciles AWSManagedCluster.

func (*AWSManagedClusterReconciler) Reconcile

func (r *AWSManagedClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*AWSManagedClusterReconciler) SetupWithManager

func (r *AWSManagedClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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