cni

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodePodCIDRs added in v1.0.5

func NodePodCIDRs(ctx context.Context, k8s dynamic.Interface, node *corev1.Node) ([]string, error)

NodePodCIDRs returns the pod CIDRs assigned to a node by the CNI. Only Cilium and Calico are supported.

Types

type Calico

type Calico struct {
	K8s dynamic.Interface
	// contains filtered or unexported fields
}

func NewCalico

func NewCalico(k8s dynamic.Interface, podCIDR, region, dnsSuffix, ecrAccount string) Calico

func (Calico) Deploy

func (c Calico) Deploy(ctx context.Context) error

Deploy creates or updates the Calico reosurces.

type Cilium

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

func NewCilium

func NewCilium(k8s dynamic.Interface, podCIDR, region, kubernetesVersion string) Cilium

func (Cilium) Deploy

func (c Cilium) Deploy(ctx context.Context) error

Deploy creates or updates the Cilium reosurces.

Jump to

Keyboard shortcuts

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