Documentation ¶
Index ¶
- Constants
- func ValidatClusterSpec(platformClient platformv1client.PlatformV1Interface, clusterName string, ...) field.ErrorList
- func ValidateCIDRs(spec *platform.ClusterSpec, specPath *field.Path) field.ErrorList
- func ValidateCSIOperator(csioperator *platform.CSIOperatorFeature, fldPath *field.Path) field.ErrorList
- func ValidateCluster(platformClient platformv1client.PlatformV1Interface, obj *types.Cluster) field.ErrorList
- func ValidateClusterFeature(spec *platform.ClusterSpec, fldPath *field.Path) field.ErrorList
- func ValidateClusterGPUMachines(machines []platform.ClusterMachine, fldPath *field.Path) field.ErrorList
- func ValidateClusterMachines(machines []platform.ClusterMachine, fldPath *field.Path) field.ErrorList
- func ValidateClusterProperty(spec *platform.ClusterSpec, propPath *field.Path) field.ErrorList
- func ValidateClusterScale(cluster *platform.Cluster, oldCluster *platform.Cluster, fldPath *field.Path) field.ErrorList
- func ValidateClusterSpecVersion(platformClient platformv1client.PlatformV1Interface, clsName, version string, ...) field.ErrorList
- func ValidateClusterUpdate(platformClient platformv1client.PlatformV1Interface, cluster *types.Cluster, ...) field.ErrorList
- func ValidateIPVS(spec *platform.ClusterSpec, ipvs *bool, fldPath *field.Path) field.ErrorList
- func ValidateMachine(machine *platform.Machine, cluster *platformv1.Cluster, ...) field.ErrorList
- func ValidateMachineSpec(spec *platform.MachineSpec, cluster *platformv1.Cluster, fldPath *field.Path, ...) field.ErrorList
- func ValidateMachineWithCluster(ctx context.Context, ip string, fldPath *field.Path, ...) field.ErrorList
- func ValidateMasterTimeOffset(fldPath *field.Path, masters []*ssh.SSH) field.ErrorList
- func ValidateSSH(fldPath *field.Path, ip string, port int, user string, password []byte, ...) field.ErrorList
- func ValidateWorkerTimeOffset(fldPath *field.Path, worker *ssh.SSH, masters []*ssh.SSH) field.ErrorList
Constants ¶
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 ¶
ValidateCIDRs validates clusterCIDR and serviceCIDR.
func ValidateCSIOperator ¶ added in v1.3.1
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 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 ¶
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 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
ValidateMasterTimeOffset validates a given master time offset.
Types ¶
This section is empty.