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) AfterControlPlaneInitialized ¶
func (c *CCMHandler) AfterControlPlaneInitialized( ctx context.Context, req *runtimehooksv1.AfterControlPlaneInitializedRequest, resp *runtimehooksv1.AfterControlPlaneInitializedResponse, )
func (*CCMHandler) BeforeClusterUpgrade ¶ added in v0.10.0
func (c *CCMHandler) BeforeClusterUpgrade( ctx context.Context, req *runtimehooksv1.BeforeClusterUpgradeRequest, resp *runtimehooksv1.BeforeClusterUpgradeResponse, )
func (*CCMHandler) Name ¶
func (c *CCMHandler) Name() string
type CCMProvider ¶
type CCMProvider interface { Apply( context.Context, *clusterv1.Cluster, *apivariables.ClusterConfigSpec, logr.Logger, ) error }
Click to show internal directories.
Click to hide internal directories.