config

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNetworkStatus

func BuildNetworkStatus(clusterConfig *configv1.Network, defaultMTU int) *configv1.NetworkStatus

func HasClusterNetworkConfigChange

func HasClusterNetworkConfigChange(preConfig, curConfig *configv1.Network) bool

func HasDefaultMTUChange

func HasDefaultMTUChange(preConfig, curConfig *operatorv1.AntreaInstall) (bool, int, error)

func NeedApplyChange

func NeedApplyChange(preConfig, curConfig *operatorv1.AntreaInstall) (agentNeedChange, controllerNeedChange, imageChange bool)

Types

type Config

type Config interface {
	FillConfigs(clusterConfig *configv1.Network, operConfig *operatorv1.AntreaInstall) error
	ValidateConfig(clusterConfig *configv1.Network, operConfig *operatorv1.AntreaInstall) error
	GenerateRenderData(operatorNetwork *ocoperv1.Network, operConfig *operatorv1.AntreaInstall) (*render.RenderData, error)
}

type ConfigK8s

type ConfigK8s struct{}

func (*ConfigK8s) FillConfigs

func (c *ConfigK8s) FillConfigs(clusterConfig *configv1.Network, operConfig *operatorv1.AntreaInstall) error

func (*ConfigK8s) GenerateRenderData

func (c *ConfigK8s) GenerateRenderData(operatorNetwork *ocoperv1.Network, operConfig *operatorv1.AntreaInstall) (*render.RenderData, error)

func (*ConfigK8s) ValidateConfig

func (c *ConfigK8s) ValidateConfig(clusterConfig *configv1.Network, operConfig *operatorv1.AntreaInstall) error

type ConfigOc

type ConfigOc struct{}

func (*ConfigOc) FillConfigs

func (c *ConfigOc) FillConfigs(clusterConfig *configv1.Network, operConfig *operatorv1.AntreaInstall) error

func (*ConfigOc) GenerateRenderData

func (c *ConfigOc) GenerateRenderData(operatorNetwork *ocoperv1.Network, operConfig *operatorv1.AntreaInstall) (*render.RenderData, error)

func (*ConfigOc) ValidateConfig

func (c *ConfigOc) ValidateConfig(clusterConfig *configv1.Network, operConfig *operatorv1.AntreaInstall) error

Jump to

Keyboard shortcuts

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