charttest

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeExpectedGardenletConfiguration

func ComputeExpectedGardenletConfiguration(componentConfigUsesTlsServerConfig, hasGardenClientConnectionKubeconfig, hasSeedClientConnectionKubeconfig bool, bootstrapKubeconfig *corev1.SecretReference, kubeconfigSecret *corev1.SecretReference, seedConfig *gardenletconfigv1alpha1.SeedConfig) gardenletconfigv1alpha1.GardenletConfiguration

ComputeExpectedGardenletConfiguration computes the expected Gardenlet configuration based on input parameters.

func ComputeExpectedGardenletDeploymentSpec

func ComputeExpectedGardenletDeploymentSpec(deploymentConfiguration *seedmanagement.GardenletDeployment, componentConfigUsesTlsServerConfig bool, gardenClientConnectionKubeconfig, seedClientConnectionKubeconfig *string, expectedLabels map[string]string, imageVectorOverwrite, componentImageVectorOverwrites *string) appsv1.DeploymentSpec

GetExpectedGardenletDeploymentSpec computes the expected Gardenlet deployment spec based on input parameters needs to equal exactly what is deployed via the helm chart (including defaults set in the helm chart) as a consequence, if non-optional changes to the helm chart are made, these tests will fail by design

func ValidateGardenletChartPriorityClass

func ValidateGardenletChartPriorityClass(ctx context.Context, c client.Client)

ValidateGardenletChartPriorityClass validates the priority class of the Gardenlet chart.

func ValidateGardenletChartRBAC

func ValidateGardenletChartRBAC(ctx context.Context, c client.Client, expectedLabels map[string]string, serviceAccountName string)

ValidateGardenletChartRBAC validates the RBAC resources of the Gardenlet chart.

func ValidateGardenletChartServiceAccount

func ValidateGardenletChartServiceAccount(ctx context.Context, c client.Client, hasSeedClientConnectionKubeconfig bool, expectedLabels map[string]string, serviceAccountName string)

ValidateGardenletChartServiceAccount validates the Service Account of the Gardenlet chart.

func ValidateGardenletChartVPA

func ValidateGardenletChartVPA(ctx context.Context, c client.Client)

ValidateGardenletChartVPA validates the vpa of the Gardenlet chart.

func VerifyGardenletComponentConfigConfigMap

func VerifyGardenletComponentConfigConfigMap(ctx context.Context, c client.Client, universalDecoder runtime.Decoder, expectedGardenletConfig gardenletconfigv1alpha1.GardenletConfiguration, expectedLabels map[string]string)

VerifyGardenletComponentConfigConfigMap verifies that the actual Gardenlet component config config map equals the expected config map.

func VerifyGardenletDeployment

func VerifyGardenletDeployment(ctx context.Context,
	c client.Client,
	expectedDeploymentSpec appsv1.DeploymentSpec,
	deploymentConfiguration *seedmanagement.GardenletDeployment,
	componentConfigHasTLSServerConfig,
	hasGardenClientConnectionKubeconfig,
	hasSeedClientConnectionKubeconfig,
	usesTLSBootstrapping bool,
	expectedLabels map[string]string,
	imageVectorOverwrite,
	componentImageVectorOverwrites *string)

VerifyGardenletDeployment verifies that the actual Gardenlet deployment equals the expected deployment

Types

This section is empty.

Jump to

Keyboard shortcuts

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