reconciler

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const EKSACiliumInstalledAnnotation = "anywhere.eks.amazonaws.com/eksa-cilium"

EKSACiliumInstalledAnnotation indicates a cluster has previously been observed to have EKS-A Cilium installed irrespective of whether its still installed.

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 a Cilium CNI.

func New

func New(templater Templater, providerNamespaces []string) *Reconciler

New creates a new cilium reconciler object with a templater and providerNamespaces to generate manifests.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, logger logr.Logger, client client.Client, spec *cluster.Spec) (res controller.Result, reterr error)

Reconcile takes the Cilium CNI in a cluster to the desired state defined in a cluster Spec. It uses a controller.Result to indicate when requeues are needed. client is connected to the target Kubernetes cluster, not the management cluster. nolint:gocyclo TODO: reduce cyclomatic complexity - https://github.com/aws/eks-anywhere-internal/issues/1461

type Templater

type Templater interface {
	GenerateUpgradePreflightManifest(ctx context.Context, spec *cluster.Spec) ([]byte, error)
	GenerateManifest(ctx context.Context, spec *cluster.Spec, opts ...cilium.ManifestOpt) ([]byte, error)
}

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