multus

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package multus provides a standalone lifecycle handler for Multus CNI that automatically deploys Multus when: - The cluster is on EKS cloud provider - A supported CNI provider is configured (Cilium or Calico)

MultusHandler implements the cluster lifecycle hooks and: - Detects the cloud provider from the cluster infrastructure - Reads CNI configuration from cluster variables - Gets the readiness socket path for the configured CNI (via cni.ReadinessSocketPath) - Automatically deploys Multus with socket-based configuration

helmAddonStrategy is the internal strategy that handles: - Templating Helm values with the CNI socket path - Deploying Multus using HelmAddon strategy with Go template-based values

Multus relies on the readinessIndicatorFile configuration to wait for the primary CNI to be ready, eliminating the need for explicit wait logic in the strategy.

This package does NOT expose Multus in the API - it's an internal addon that deploys automatically based on cloud provider and CNI selection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultusConfig

type MultusConfig struct {
	*options.GlobalOptions
	// contains filtered or unexported fields
}

func NewMultusConfig

func NewMultusConfig(globalOptions *options.GlobalOptions) *MultusConfig

func (*MultusConfig) AddFlags

func (m *MultusConfig) AddFlags(prefix string, flags *pflag.FlagSet)

type MultusHandler

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

func New

func New(
	c ctrlclient.Client,
	cfg *MultusConfig,
	helmChartInfoGetter *config.HelmChartGetter,
) *MultusHandler

func (*MultusHandler) Name

func (m *MultusHandler) Name() string

Jump to

Keyboard shortcuts

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