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
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) AfterControlPlaneInitialized ¶
func (m *MultusHandler) AfterControlPlaneInitialized( ctx context.Context, req *runtimehooksv1.AfterControlPlaneInitializedRequest, resp *runtimehooksv1.AfterControlPlaneInitializedResponse, )
func (*MultusHandler) BeforeClusterUpgrade ¶
func (m *MultusHandler) BeforeClusterUpgrade( ctx context.Context, req *runtimehooksv1.BeforeClusterUpgradeRequest, resp *runtimehooksv1.BeforeClusterUpgradeResponse, )
func (*MultusHandler) Name ¶
func (m *MultusHandler) Name() string