Documentation ¶
Index ¶
- Variables
- func ValidateClusterNameIsUnique(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, ...) error
- func ValidateGitOps(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, ...) error
- func ValidateIdentityProviderNameIsUnique(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, ...) error
- func ValidateManagementCluster(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error
- type CreateValidations
Constants ¶
This section is empty.
Variables ¶
View Source
var SkippableValidations = []string{ validations.VSphereUserPriv, }
SkippableValidations represents all the validations we offer for users to skip.
Functions ¶
func ValidateClusterNameIsUnique ¶
func ValidateClusterNameIsUnique(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, clusterName string) error
func ValidateGitOps ¶
func ValidateGitOps(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, clusterSpec *cluster.Spec) error
func ValidateIdentityProviderNameIsUnique ¶
func ValidateIdentityProviderNameIsUnique(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, spec *cluster.Spec) error
func ValidateManagementCluster ¶
func ValidateManagementCluster(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error
Types ¶
type CreateValidations ¶
type CreateValidations struct {
Opts *validations.Opts
}
func New ¶
func New(opts *validations.Opts) *CreateValidations
func (*CreateValidations) PreflightValidations ¶
func (v *CreateValidations) PreflightValidations(ctx context.Context) []validations.Validation
PreflightValidations returns the validations required before creating a cluster.
Click to show internal directories.
Click to hide internal directories.