validate

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterConfiguration

func ClusterConfiguration(existing, update clusterconfig.Interface) error

ClusterConfiguration validates that `update` can update `existing` without invalidating consistency.

func KubernetesSubnets

func KubernetesSubnets(podNet, serviceNet *net.IPNet, podSubnetSize int) (err error)

KubernetesSubnets makes sure that the provided CIDR ranges can be used as pod/service Kubernetes subnets

func KubernetesSubnetsFromStrings

func KubernetesSubnetsFromStrings(podCIDR, serviceCIDR, podSubnetSize string) error

KubernetesSubnetsFromStrings makes sure that the provided CIDR ranges are valid and can be used as pod/service Kubernetes subnets

func NetworkOverlap

func NetworkOverlap(ipAddr, subnetCIDR, errMsg string) error

NetworkOverlap verifies that ipAddr is not in the range of the subnetCIDR

func NormalizeSubnet

func NormalizeSubnet(subnet string) (string, error)

NormalizeSubnet returns the text representation of the given subnet as the IP masked with the network mask

Types

This section is empty.

Jump to

Keyboard shortcuts

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