network

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 SelectCipherSuitesAndMinTLSVersion added in v0.71.0

func SelectCipherSuitesAndMinTLSVersion(profile *ocpv1.TLSSecurityProfile) ([]string, ocpv1.TLSProtocolVersion)

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 TLSVersionToHumanReadable added in v0.71.0

func TLSVersionToHumanReadable(version ocpv1.TLSProtocolVersion) string

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
	MonitoringAvailable bool
	IsSingleReplica     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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