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 PatchCloudProfileForKubernetesVersionMaintenance(ctx context.Context, c client.Client, cloudProfileName string, ...) error
- func PatchCloudProfileForMachineImageMaintenance(ctx context.Context, c client.Client, cloudProfileName string, ...) error
- func StartShootMaintenance(ctx context.Context, c client.Client, shoot *gardencorev1beta1.Shoot) 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 patch the CloudProfile to make sure the machine image version & kubernetes version introduced during the integration test is being removed
func PatchCloudProfileForKubernetesVersionMaintenance ¶ added in v1.28.0
func PatchCloudProfileForKubernetesVersionMaintenance(ctx context.Context, c client.Client, cloudProfileName string, targetVersion string, expirationDate *metav1.Time, classification *gardencorev1beta1.VersionClassification) error
PatchCloudProfileForKubernetesVersionMaintenance patches a specific kubernetes version of the Cloud Profile
func PatchCloudProfileForMachineImageMaintenance ¶ added in v1.28.0
func PatchCloudProfileForMachineImageMaintenance(ctx context.Context, c client.Client, cloudProfileName string, testMachineImage gardencorev1beta1.ShootMachineImage, expirationDate *metav1.Time, classification *gardencorev1beta1.VersionClassification) error
PatchCloudProfileForMachineImageMaintenance patches the images of the Cloud Profile
func StartShootMaintenance ¶
func StartShootMaintenance(ctx context.Context, c client.Client, shoot *gardencorev1beta1.Shoot) error
StartShootMaintenance adds the maintenance annotation on the Shoot to start the Shoot Maintenance
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.