reconciler

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler allows to reconcile AWSIamConfig.

func New

func New(certgen crypto.CertificateGenerator, generateUUID UUIDGenerator, client client.Client, remoteClientRegistry RemoteClientRegistry) *Reconciler

New returns a new Reconciler.

func (*Reconciler) EnsureCASecret

func (r *Reconciler) EnsureCASecret(ctx context.Context, log logr.Logger, cluster *anywherev1.Cluster) (controller.Result, error)

EnsureCASecret ensures the AWS IAM Authenticator secret is present. It uses a controller.Result to indicate when requeues are needed.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, cluster *anywherev1.Cluster) (controller.Result, error)

Reconcile takes the AWS IAM Authenticator installation to the desired state defined in AWSIAMConfig. It uses a controller.Result to indicate when requeues are needed. Intended to be used in a kubernetes controller.

func (*Reconciler) ReconcileDelete

func (r *Reconciler) ReconcileDelete(ctx context.Context, log logr.Logger, cluster *anywherev1.Cluster) error

ReconcileDelete deletes any AWS Iam authenticator specific resources leftover on the eks-a cluster.

type RemoteClientRegistry

type RemoteClientRegistry interface {
	GetClient(ctx context.Context, cluster client.ObjectKey) (client.Client, error)
}

RemoteClientRegistry defines methods for remote cluster controller clients.

type UUIDGenerator

type UUIDGenerator func() uuid.UUID

UUIDGenerator generates a new UUID.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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