validation

package
v1.9.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAPIEndpoint added in v1.0.0

func ValidateAPIEndpoint(a kubeoneapi.APIEndpoint, fldPath *field.Path) field.ErrorList

ValidateAPIEndpoint validates the APIEndpoint structure

func ValidateAddons added in v1.0.0

func ValidateAddons(o *kubeoneapi.Addons, fldPath *field.Path) field.ErrorList

ValidateAddons validates the Addons configuration

func ValidateAssetConfiguration added in v1.2.0

func ValidateAssetConfiguration(a *kubeoneapi.AssetConfiguration, fldPath *field.Path) field.ErrorList

func ValidateCABundle added in v1.3.0

func ValidateCABundle(caBundle string, fldPath *field.Path) field.ErrorList

func ValidateCNI added in v0.7.0

func ValidateCNI(c *kubeoneapi.CNI, fldPath *field.Path) field.ErrorList

ValidateCNI validates the CNI structure

func ValidateCloudProviderSpec

func ValidateCloudProviderSpec(providerSpec kubeoneapi.CloudProviderSpec, networkConfig kubeoneapi.ClusterNetworkConfig, fldPath *field.Path) field.ErrorList

ValidateCloudProviderSpec validates the CloudProviderSpec structure

func ValidateClusterNetworkConfig

func ValidateClusterNetworkConfig(c kubeoneapi.ClusterNetworkConfig, prov kubeoneapi.CloudProviderSpec, fldPath *field.Path) field.ErrorList

ValidateClusterNetworkConfig validates the ClusterNetworkConfig structure

func ValidateContainerRuntimeConfig added in v1.1.0

func ValidateContainerRuntimeConfig(cr kubeoneapi.ContainerRuntimeConfig, _ kubeoneapi.VersionConfig, fldPath *field.Path) field.ErrorList

func ValidateContainerRuntimeVSRegistryConfiguration added in v1.4.0

func ValidateContainerRuntimeVSRegistryConfiguration(
	cr kubeoneapi.ContainerRuntimeConfig,
	crFldPath *field.Path,
	rc *kubeoneapi.RegistryConfiguration,
	rcFldPath *field.Path,
) field.ErrorList

func ValidateControlPlaneComponents added in v1.8.0

func ValidateControlPlaneComponents(c *kubeoneapi.ControlPlaneComponents, fldPath *field.Path) field.ErrorList

func ValidateControlPlaneConfig added in v1.0.0

func ValidateControlPlaneConfig(c kubeoneapi.ControlPlaneConfig, clusterNetwork kubeoneapi.ClusterNetworkConfig, fldPath *field.Path) field.ErrorList

ValidateControlPlaneConfig validates the ControlPlaneConfig structure

func ValidateDynamicWorkerConfig added in v1.0.0

func ValidateDynamicWorkerConfig(workerset []kubeoneapi.DynamicWorkerConfig, prov kubeoneapi.CloudProviderSpec, fldPath *field.Path) field.ErrorList

ValidateDynamicWorkerConfig validates the DynamicWorkerConfig structure

func ValidateFeatures

func ValidateFeatures(f kubeoneapi.Features, fldPath *field.Path) field.ErrorList

ValidateFeatures validates the Features structure

func ValidateHostConfig

func ValidateHostConfig(hosts []kubeoneapi.HostConfig, clusterNetwork kubeoneapi.ClusterNetworkConfig, fldPath *field.Path) field.ErrorList

ValidateHostConfig validates the HostConfig structure

func ValidateKubeOneCluster

func ValidateKubeOneCluster(c kubeoneapi.KubeOneCluster) field.ErrorList

ValidateKubeOneCluster validates the KubeOneCluster object

func ValidateKubeProxy added in v1.3.0

func ValidateKubeProxy(kbPrxConf *kubeoneapi.KubeProxyConfig, fldPath *field.Path) field.ErrorList

func ValidateKubernetesSupport added in v1.4.0

func ValidateKubernetesSupport(c kubeoneapi.KubeOneCluster, fldPath *field.Path) field.ErrorList

func ValidateName added in v1.4.0

func ValidateName(name string, fldPath *field.Path) field.ErrorList

ValidateName validates the Name of cluster

func ValidateOIDCConfig

func ValidateOIDCConfig(o kubeoneapi.OpenIDConnectConfig, fldPath *field.Path) field.ErrorList

ValidateOIDCConfig validates the OpenIDConnectConfig structure

func ValidateOperatingSystemManager added in v1.5.0

func ValidateOperatingSystemManager(mc *kubeoneapi.MachineControllerConfig, fldPath *field.Path) field.ErrorList

ValidateOperatingSystemManager validates the OperatingSystemManager structure

func ValidatePodNodeSelectorConfig added in v1.0.0

func ValidatePodNodeSelectorConfig(n kubeoneapi.PodNodeSelectorConfig, fldPath *field.Path) field.ErrorList

ValidatePodNodeSelectorConfig validates the PodNodeSelectorConfig structure

func ValidateRegistryConfiguration added in v1.1.0

func ValidateRegistryConfiguration(r *kubeoneapi.RegistryConfiguration, fldPath *field.Path) field.ErrorList

func ValidateStaticAuditLogConfig added in v1.0.0

func ValidateStaticAuditLogConfig(s kubeoneapi.StaticAuditLogConfig, fldPath *field.Path) field.ErrorList

ValidateStaticAuditLogConfig validates the StaticAuditLogConfig structure

func ValidateStaticWorkersConfig added in v1.0.0

func ValidateStaticWorkersConfig(staticWorkers kubeoneapi.StaticWorkersConfig, controlPlane kubeoneapi.ControlPlaneConfig, clusterNetwork kubeoneapi.ClusterNetworkConfig, fldPath *field.Path) field.ErrorList

ValidateStaticWorkersConfig validates the StaticWorkersConfig structure

func ValidateVersionConfig

func ValidateVersionConfig(version kubeoneapi.VersionConfig, fldPath *field.Path) field.ErrorList

ValidateVersionConfig validates the VersionConfig structure

func ValidateWebhookAuditLogConfig added in v1.9.0

func ValidateWebhookAuditLogConfig(s kubeoneapi.WebhookAuditLogConfig, fldPath *field.Path) field.ErrorList

ValidateWebhookAuditLogConfig validates the WebhookAuditLogConfig structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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