maintenance

package
v1.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Overview

Deprecated: this is the deprecated gardener testframework. Use gardener/test/framework instead

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL