Documentation ¶
Index ¶
- Variables
- func ValidateClusterObjectExists(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error
- func ValidateEksaSystemComponents(ctx context.Context, k *executables.Kubectl, cluster *types.Cluster) error
- func ValidateGitOpsImmutableFields(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, ...) error
- func ValidateImmutableFields(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster, ...) error
- func ValidatePodDisruptionBudgets(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error
- func ValidateServerVersionSkew(ctx context.Context, newCluster *anywherev1.Cluster, cluster *types.Cluster, ...) error
- func ValidateWorkerServerVersionSkew(ctx context.Context, newCluster *anywherev1.Cluster, cluster *types.Cluster, ...) error
- type UpgradeValidations
Constants ¶
This section is empty.
Variables ¶
View Source
var SkippableValidations = []string{ validations.PDB, validations.VSphereUserPriv, validations.EksaVersionSkew, }
SkippableValidations represents all the validations we offer for users to skip.
Functions ¶
func ValidateClusterObjectExists ¶
func ValidateClusterObjectExists(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error
func ValidateGitOpsImmutableFields ¶ added in v0.11.0
func ValidateImmutableFields ¶
func ValidatePodDisruptionBudgets ¶ added in v0.16.0
func ValidatePodDisruptionBudgets(ctx context.Context, k validations.KubectlClient, cluster *types.Cluster) error
ValidatePodDisruptionBudgets returns an error if any pdbs are detected on a cluster.
func ValidateServerVersionSkew ¶
func ValidateServerVersionSkew(ctx context.Context, newCluster *anywherev1.Cluster, cluster *types.Cluster, managementCluster *types.Cluster, kubectl validations.KubectlClient) error
ValidateServerVersionSkew validates Kubernetes version skew between upgrades for the CLI.
func ValidateWorkerServerVersionSkew ¶ added in v0.17.0
func ValidateWorkerServerVersionSkew(ctx context.Context, newCluster *anywherev1.Cluster, cluster *types.Cluster, managementCluster *types.Cluster, kubectl validations.KubectlClient) error
ValidateWorkerServerVersionSkew validates worker node group Kubernetes version skew between upgrades.
Types ¶
type UpgradeValidations ¶
type UpgradeValidations struct {
Opts *validations.Opts
}
func New ¶
func New(opts *validations.Opts) *UpgradeValidations
func (*UpgradeValidations) PreflightValidations ¶
func (u *UpgradeValidations) PreflightValidations(ctx context.Context) []validations.Validation
PreflightValidations returns the validations required before upgrading a cluster.
Click to show internal directories.
Click to hide internal directories.