network

package
v0.58.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WEBHOOK_REPLICAS     = int32(2)
	WEBHOOK_MIN_REPLICAS = int32(1)
)

Variables

This section is empty.

Functions

func Canonicalize

func Canonicalize(conf *cnao.NetworkAddonsConfigSpec)

Canonicalize converts configuration to a canonical form.

func DefaultSelfSignConfiguration added in v0.50.0

func DefaultSelfSignConfiguration() *cnao.SelfSignConfiguration

func FillDefaults

func FillDefaults(conf, previous *cnao.NetworkAddonsConfigSpec) error

FillDefaults computes any default values and applies them to the configuration This is a mutating operation. It should be called after Validate.

Defaults are carried forward from previous if it is provided. This is so we can change defaults as we move forward, but won't disrupt existing clusters.

func GetDefaultPlacementConfiguration added in v0.42.3

func GetDefaultPlacementConfiguration() cnao.PlacementConfiguration

func IsChangeSafe

func IsChangeSafe(prev, next *cnao.NetworkAddonsConfigSpec) error

IsChangeSafe checks to see if the change between prev and next are allowed FillDefaults and Validate should have been called.

func Render

func Render(conf *cnao.NetworkAddonsConfigSpec, manifestDir string, openshiftNetworkConfig *osv1.Network, clusterInfo *ClusterInfo) ([]*unstructured.Unstructured, error)

Render creates a list of components to be created

func RenderObjsToRemove added in v0.41.0

func RenderObjsToRemove(prev, conf *cnao.NetworkAddonsConfigSpec, manifestDir string, openshiftNetworkConfig *osv1.Network, clusterInfo *ClusterInfo) ([]*unstructured.Unstructured, error)

RenderObjsToRemove creates list of components to be removed

func SpecialCleanUp added in v0.41.0

func SpecialCleanUp(conf *cnao.NetworkAddonsConfigSpec, client k8sclient.Client, clusterInfo *ClusterInfo) error

specialCleanUp checks if there are any specific outdated objects or ones that are no longer compatible and deletes them.

func Validate

func Validate(conf *cnao.NetworkAddonsConfigSpec, openshiftNetworkConfig *osv1.Network) error

Validate checks that the supplied configuration is reasonable. This should be called after Canonicalize

Types

type ClusterInfo added in v0.3.0

type ClusterInfo struct {
	SCCAvailable        bool
	OpenShift4          bool
	NmstateOperator     bool
	MonitoringAvailable bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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