ccm

package
v0.11.2 Latest Latest
Warning

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

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

Documentation

Overview

Package calico provides a handler for managing Calico deployments on clusters, configurable via labels and annotations.

To enable Calico deployment, a cluster must be labelled with `caren.nutanix.com/cni=calico`. This will ensure the Tigera Configmap and associated ClusterResourceSet.

+kubebuilder:rbac:groups=addons.cluster.x-k8s.io,resources=clusterresourcesets,verbs=watch;list;get;create;patch;update;delete +kubebuilder:rbac:groups="",resources=configmaps,verbs=watch;list;get;create;patch;update;delete

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCMHandler

type CCMHandler struct {
	ProviderHandler map[string]CCMProvider
	// contains filtered or unexported fields
}

func New

func New(
	c ctrlclient.Client,
	handlers map[string]CCMProvider,
) *CCMHandler

func (*CCMHandler) BeforeClusterUpgrade added in v0.10.0

func (*CCMHandler) Name

func (c *CCMHandler) Name() string

type CCMProvider

type CCMProvider interface {
	Apply(
		context.Context,
		*clusterv1.Cluster,
		*apivariables.ClusterConfigSpec,
		logr.Logger,
	) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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