csi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 15 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 `capiext.labs.d2iq.io/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 CSIHandler

type CSIHandler struct {
	ProviderHandler map[string]CSIProvider
	// contains filtered or unexported fields
}

func New

func New(
	c ctrlclient.Client,
	handlers map[string]CSIProvider,
) *CSIHandler

func (*CSIHandler) Name

func (c *CSIHandler) Name() string

type CSIProvider

type CSIProvider interface {
	EnsureCSIConfigMapForCluster(context.Context, *clusterv1.Cluster) (*corev1.ConfigMap, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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