validation

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTimeOffset = 5 * 300

Variables

This section is empty.

Functions

func ValidatClusterSpec

func ValidatClusterSpec(platformClient platformv1client.PlatformV1Interface, clusterName string, spec *platform.ClusterSpec, fldPath *field.Path, phase platform.ClusterPhase, validateMachine bool) field.ErrorList

ValidatClusterSpec validates a given ClusterSpec.

func ValidateCIDRs

func ValidateCIDRs(spec *platform.ClusterSpec, specPath *field.Path) field.ErrorList

ValidateCIDRs validates clusterCIDR and serviceCIDR.

func ValidateCSIOperator added in v1.3.1

func ValidateCSIOperator(csioperator *platform.CSIOperatorFeature, fldPath *field.Path) field.ErrorList

func ValidateCluster

func ValidateCluster(platformClient platformv1client.PlatformV1Interface, obj *types.Cluster) field.ErrorList

ValidateCluster validates a given Cluster.

func ValidateClusterFeature added in v1.3.1

func ValidateClusterFeature(spec *platform.ClusterSpec, fldPath *field.Path) field.ErrorList

func ValidateClusterGPUMachines added in v1.9.0

func ValidateClusterGPUMachines(machines []platform.ClusterMachine, fldPath *field.Path) field.ErrorList

ValidateClusterGPUMachines validates a given GPUMachines.

func ValidateClusterMachines

func ValidateClusterMachines(machines []platform.ClusterMachine, fldPath *field.Path) field.ErrorList

ValidateClusterMachines validates a given CluterMachines.

func ValidateClusterProperty

func ValidateClusterProperty(spec *platform.ClusterSpec, propPath *field.Path) field.ErrorList

ValidateClusterProperty validates a given ClusterProperty.

func ValidateClusterScale added in v1.9.0

func ValidateClusterScale(cluster *platform.Cluster, oldCluster *platform.Cluster, fldPath *field.Path) field.ErrorList

ValidateClusterScale tests if master scale up/down to a cluster is valid.

func ValidateClusterSpecVersion

func ValidateClusterSpecVersion(platformClient platformv1client.PlatformV1Interface, clsName, version string, fldPath *field.Path, phase platform.ClusterPhase) field.ErrorList

ValidateClusterSpecVersion validates a given version.

func ValidateClusterUpdate added in v1.9.0

func ValidateClusterUpdate(platformClient platformv1client.PlatformV1Interface, cluster *types.Cluster, oldCluster *types.Cluster) field.ErrorList

ValidateCluster validates a given Cluster.

func ValidateIPVS added in v1.6.0

func ValidateIPVS(spec *platform.ClusterSpec, ipvs *bool, fldPath *field.Path) field.ErrorList

func ValidateMachine

func ValidateMachine(machine *platform.Machine, cluster *platformv1.Cluster, platformClient platformv1client.PlatformV1Interface) field.ErrorList

ValidateMachine validates a given machine.

func ValidateMachineSpec

func ValidateMachineSpec(spec *platform.MachineSpec, cluster *platformv1.Cluster, fldPath *field.Path, platformClient platformv1client.PlatformV1Interface) field.ErrorList

ValidateMachineSpec validates a given machine spec.

func ValidateMachineWithCluster added in v1.9.0

func ValidateMachineWithCluster(ctx context.Context, ip string, fldPath *field.Path, cluster *platformv1.Cluster, platformClient platformv1client.PlatformV1Interface) field.ErrorList

ValidateMachineWithCluster validates a given machine by ip with cluster.

func ValidateMasterTimeOffset added in v1.9.0

func ValidateMasterTimeOffset(fldPath *field.Path, masters []*ssh.SSH) field.ErrorList

ValidateMasterTimeOffset validates a given master time offset.

func ValidateSSH added in v1.9.0

func ValidateSSH(fldPath *field.Path, ip string, port int, user string, password []byte, privateKey []byte, passPhrase []byte) field.ErrorList

ValidateSSH validates a given ssh config.

func ValidateWorkerTimeOffset added in v1.9.0

func ValidateWorkerTimeOffset(fldPath *field.Path, worker *ssh.SSH, masters []*ssh.SSH) field.ErrorList

ValidateWorkerTimeOffset validates a given worker time offset with masters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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