Documentation
¶
Index ¶
- Constants
- 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, compareVersion v1alpha1.KubernetesVersion, ...) error
- func ValidateSkippableUpgradeValidation(skippedValidations []string) (map[string]bool, error)
- type UpgradeValidations
Constants ¶
View Source
const (
PDB = "pod-disruption"
)
string values of supported validation names that can be skipped.
Variables ¶
View Source
var SkippableValidations = []string{ PDB, }
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, compareVersion v1alpha1.KubernetesVersion, cluster *types.Cluster, kubectl validations.KubectlClient) error
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.