Documentation ¶
Index ¶
- Constants
- func AddOrUpdateRegistryCacheExtension(shoot *gardencorev1beta1.Shoot, caches []registryv1alpha3.RegistryCache)
- func AddOrUpdateRegistryMirrorExtension(shoot *gardencorev1beta1.Shoot, mirrors []mirrorv1alpha1.MirrorConfiguration)
- func HasRegistryCacheExtension(shoot *gardencorev1beta1.Shoot) bool
- func RemoveExtension(shoot *gardencorev1beta1.Shoot, extensionType string)
- func VerifyHostsTOMLFilesCreatedForAllNodes(ctx context.Context, log logr.Logger, shootClient kubernetes.Interface, ...)
- func VerifyHostsTOMLFilesDeletedForAllNodes(ctx context.Context, log logr.Logger, shootClient kubernetes.Interface, ...)
- func VerifyRegistryCache(parentCtx context.Context, log logr.Logger, shootClient kubernetes.Interface, ...)
Constants ¶
const ( // PublicEcrAwsNginx1230Image is the public.ecr.aws/nginx/nginx:1.23.0 image. PublicEcrAwsNginx1230Image = "public.ecr.aws/nginx/nginx:1.23.0" // PublicEcrAwsNginx1240Image is the public.ecr.aws/nginx/nginx:1.24.0 image. PublicEcrAwsNginx1240Image = "public.ecr.aws/nginx/nginx:1.24.0" // PublicEcrAwsNginx1250Image is the public.ecr.aws/nginx/nginx:1.25.0 image. PublicEcrAwsNginx1250Image = "public.ecr.aws/nginx/nginx:1.25.0" // ArtifactRegistryNginx1176Image is the europe-docker.pkg.dev/gardener-project/releases/3rd/nginx:1.17.6 image (copy of docker.io/library/nginx:1.17.6). ArtifactRegistryNginx1176Image = "europe-docker.pkg.dev/gardener-project/releases/3rd/nginx:1.17.6" // RegistryK8sNginx1154Image is the registry.k8s.io/e2e-test-images/nginx:1.15-4 image. RegistryK8sNginx1154Image = "registry.k8s.io/e2e-test-images/nginx:1.15-4" // GithubRegistryNginx1261Image is the ghcr.io/linuxserver/nginx:1.26.1 image. GithubRegistryNginx1261Image = "ghcr.io/linuxserver/nginx:1.26.1" )
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdateRegistryCacheExtension ¶ added in v0.3.0
func AddOrUpdateRegistryCacheExtension(shoot *gardencorev1beta1.Shoot, caches []registryv1alpha3.RegistryCache)
AddOrUpdateRegistryCacheExtension adds or updates registry-cache extension with the given caches to the given Shoot.
func AddOrUpdateRegistryMirrorExtension ¶ added in v0.6.0
func AddOrUpdateRegistryMirrorExtension(shoot *gardencorev1beta1.Shoot, mirrors []mirrorv1alpha1.MirrorConfiguration)
AddOrUpdateRegistryMirrorExtension adds or updates registry-mirror extension with the given mirrors to the given Shoot.
func HasRegistryCacheExtension ¶
func HasRegistryCacheExtension(shoot *gardencorev1beta1.Shoot) bool
HasRegistryCacheExtension returns whether the Shoot has an extension of type registry-cache.
func RemoveExtension ¶ added in v0.6.0
func RemoveExtension(shoot *gardencorev1beta1.Shoot, extensionType string)
RemoveExtension removes the extension with the given type from given Shoot.
func VerifyHostsTOMLFilesCreatedForAllNodes ¶ added in v0.6.0
func VerifyHostsTOMLFilesCreatedForAllNodes(ctx context.Context, log logr.Logger, shootClient kubernetes.Interface, upstreamToHostsTOML map[string]string)
VerifyHostsTOMLFilesCreatedForAllNodes verifies that hosts.toml files for the given upstreams are created for all Nodes with the given hosts.toml file content.
func VerifyHostsTOMLFilesDeletedForAllNodes ¶ added in v0.6.0
func VerifyHostsTOMLFilesDeletedForAllNodes(ctx context.Context, log logr.Logger, shootClient kubernetes.Interface, upstreams []string)
VerifyHostsTOMLFilesDeletedForAllNodes verifies that hosts.toml files for the given upstreams are deleted from all Nodes.
func VerifyRegistryCache ¶
func VerifyRegistryCache(parentCtx context.Context, log logr.Logger, shootClient kubernetes.Interface, nginxImage string)
VerifyRegistryCache verifies that a registry cache works as expected.
The verification consists of the following steps:
- It deploys an nginx Pod with the given image.
- It waits until the Pod is running.
- It verifies that the image is present in the registry's volume. This is a verification that the image pull happened via the registry cache (and the containerd didn't fall back to the upstream).
Types ¶
This section is empty.