Documentation ¶
Overview ¶
Deprecated: this is the deprecated gardener testframework. Use gardener/test/framework instead
Index ¶
- func CleanupCloudProfile(ctx context.Context, gardenClient client.Client, cloudProfileName string, ...) error
- func StartShootMaintenance(ctx context.Context, gardenClient client.Client, ...) error
- func TryUpdateCloudProfileForKubernetesVersionMaintenance(ctx context.Context, gardenClient client.Client, ...) error
- func TryUpdateCloudProfileForMachineImageMaintenance(ctx context.Context, gardenClient client.Client, ...) error
- func TryUpdateShootForKubernetesMaintenance(ctx context.Context, gardenClient client.Client, ...) error
- func TryUpdateShootForMachineImageMaintenance(ctx context.Context, gardenClient client.Client, ...) error
- func WaitForExpectedKubernetesVersionMaintenance(ctx context.Context, logger *logrus.Logger, gardenClient client.Client, ...) error
- func WaitForExpectedMachineImageMaintenance(ctx context.Context, logger *logrus.Logger, gardenClient client.Client, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupCloudProfile ¶
func CleanupCloudProfile(ctx context.Context, gardenClient client.Client, cloudProfileName string, testMachineImage gardencorev1beta1.ShootMachineImage, testKubernetesVersions []gardencorev1beta1.ExpirableVersion) error
CleanupCloudProfile tries to update the CloudProfile with retries to make sure the machine image version & kubernetes version introduced during the integration test is being removed
func StartShootMaintenance ¶
func StartShootMaintenance(ctx context.Context, gardenClient client.Client, shootToUpdate *gardencorev1beta1.Shoot) error
StartShootMaintenance adds the maintenance annotation on the Shoot to start the Shoot Maintenance
func TryUpdateCloudProfileForKubernetesVersionMaintenance ¶
func TryUpdateCloudProfileForKubernetesVersionMaintenance(ctx context.Context, gardenClient client.Client, shoot *gardencorev1beta1.Shoot, targetVersion string, expirationDate *metav1.Time, classification *gardencorev1beta1.VersionClassification) error
TryUpdateCloudProfileForKubernetesVersionMaintenance tries to update a specific kubernetes version of the Cloud Profile
func TryUpdateCloudProfileForMachineImageMaintenance ¶
func TryUpdateCloudProfileForMachineImageMaintenance(ctx context.Context, gardenClient client.Client, shoot *gardencorev1beta1.Shoot, testMachineImage gardencorev1beta1.ShootMachineImage, expirationDate *metav1.Time, classification *gardencorev1beta1.VersionClassification) error
TryUpdateCloudProfileForMachineImageMaintenance tries to update the images of the Cloud Profile
func TryUpdateShootForKubernetesMaintenance ¶
func TryUpdateShootForKubernetesMaintenance(ctx context.Context, gardenClient client.Client, shootToUpdate *gardencorev1beta1.Shoot) error
TryUpdateShootForKubernetesMaintenance tries to update the maintenance section of the shoot spec regarding the Kubernetes version
func TryUpdateShootForMachineImageMaintenance ¶
func TryUpdateShootForMachineImageMaintenance(ctx context.Context, gardenClient client.Client, shootToUpdate *gardencorev1beta1.Shoot) error
TryUpdateShootForMachineImageMaintenance tries to update the maintenance section of the shoot spec regarding the machine image
func WaitForExpectedKubernetesVersionMaintenance ¶
func WaitForExpectedKubernetesVersionMaintenance(ctx context.Context, logger *logrus.Logger, gardenClient client.Client, s *gardencorev1beta1.Shoot, targetVersion string, kubernetesVersionUpdateRequired bool, deadline time.Time) error
WaitForExpectedKubernetesVersionMaintenance polls a shoot until the given deadline is exceeded. Checks if the shoot's kubernetes version equals the targetVersion and if an kubernetes version update is required.
func WaitForExpectedMachineImageMaintenance ¶
func WaitForExpectedMachineImageMaintenance(ctx context.Context, logger *logrus.Logger, gardenClient client.Client, s *gardencorev1beta1.Shoot, targetMachineImage gardencorev1beta1.ShootMachineImage, imageUpdateRequired bool, deadline time.Time) error
WaitForExpectedMachineImageMaintenance polls a shoot until the given deadline is exceeded. Checks if the shoot's machine image equals the targetImage and if an image update is required.
Types ¶
This section is empty.