common

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
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:

  1. It deploys an nginx Pod with the given image.
  2. It waits until the Pod is running.
  3. 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.

Jump to

Keyboard shortcuts

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