Documentation ¶
Index ¶
- func ComputeExpectedGardenletConfiguration(...) gardenletconfigv1alpha1.GardenletConfiguration
- func ComputeExpectedGardenletDeploymentSpec(deploymentConfiguration *seedmanagement.GardenletDeployment, ...) (appsv1.DeploymentSpec, error)
- func NewGardenletChartApplier(applier kubernetes.ChartApplier, values map[string]interface{}, ...) component.Deployer
- func ValidateGardenletChartPriorityClass(ctx context.Context, c client.Client)
- func ValidateGardenletChartRBAC(ctx context.Context, c client.Client, expectedLabels map[string]string, ...)
- func ValidateGardenletChartServiceAccount(ctx context.Context, c client.Client, hasSeedClientConnectionKubeconfig bool, ...)
- func ValidateGardenletChartVPA(ctx context.Context, c client.Client)
- func VerifyGardenletComponentConfigConfigMap(ctx context.Context, c client.Client, universalDecoder runtime.Decoder, ...)
- func VerifyGardenletDeployment(ctx context.Context, c client.Client, ...)
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, featureGates map[string]bool) gardenletconfigv1alpha1.GardenletConfiguration
ComputeExpectedGardenletConfiguration computes the expected Gardenlet configuration based on input parameters.
func ComputeExpectedGardenletDeploymentSpec ¶
func ComputeExpectedGardenletDeploymentSpec(deploymentConfiguration *seedmanagement.GardenletDeployment, image seedmanagement.Image, componentConfigUsesTlsServerConfig bool, gardenClientConnectionKubeconfig, seedClientConnectionKubeconfig *string, expectedLabels map[string]string, imageVectorOverwrite, componentImageVectorOverwrites *string) (appsv1.DeploymentSpec, error)
ComputeExpectedGardenletDeploymentSpec 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 NewGardenletChartApplier ¶
func NewGardenletChartApplier( applier kubernetes.ChartApplier, values map[string]interface{}, chartsRootPath string, ) component.Deployer
NewGardenletChartApplier can be used to deploy the Gardenlet chart.
func ValidateGardenletChartPriorityClass ¶
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, featureGates map[string]bool)
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 ¶
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.