kubernetesk8s.io/kubernetes/test/utils/image Index | Files

package image

import "k8s.io/kubernetes/test/utils/image"

Index

Functions

func GetE2EImage

func GetE2EImage(image ImageID) string

GetE2EImage returns the fully qualified URI to an image (including version)

func GetImageConfigs

func GetImageConfigs() map[ImageID]Config

GetImageConfigs returns the map of imageConfigs

func GetMappedImageConfigs

func GetMappedImageConfigs(originalImageConfigs map[ImageID]Config, repo string) map[ImageID]Config

GetMappedImageConfigs returns the images if they were mapped to the provided image repository.

func GetOriginalImageConfigs

func GetOriginalImageConfigs() map[ImageID]Config

GetOriginalImageConfigs returns the configuration before any mapping rules.

func GetPauseImageName

func GetPauseImageName() string

GetPauseImageName returns the pause image name with proper version

func Init

func Init(repoList string)

func ReplaceRegistryInImageURL

func ReplaceRegistryInImageURL(imageURL string) (string, error)

ReplaceRegistryInImageURL replaces the registry in the image URL with a custom one based on the configured registries.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config holds an images registry, name, and version

func GetConfig

func GetConfig(image ImageID) Config

GetConfig returns the Config object for an image

func (*Config) GetE2EImage

func (i *Config) GetE2EImage() string

GetE2EImage returns the fully qualified URI to an image (including version)

func (*Config) SetName

func (i *Config) SetName(name string)

SetName sets an image name in a Config struct

func (*Config) SetRegistry

func (i *Config) SetRegistry(registry string)

SetRegistry sets an image registry in a Config struct

func (*Config) SetVersion

func (i *Config) SetVersion(version string)

SetVersion sets an image version in a Config struct

type ImageID

type ImageID int
const (
	// None is to be used for unset/default images
	None ImageID = iota
	// Agnhost image
	Agnhost
	// AgnhostPrivate image
	AgnhostPrivate
	// APIServer image
	APIServer
	// AppArmorLoader image
	AppArmorLoader
	// AuthenticatedAlpine image
	AuthenticatedAlpine
	// AuthenticatedWindowsNanoServer image
	AuthenticatedWindowsNanoServer
	// BusyBox image
	BusyBox
	// DistrolessIptables Image
	DistrolessIptables
	// Etcd image
	Etcd
	// Httpd image
	Httpd
	// HttpdNew image
	HttpdNew
	// InvalidRegistryImage image
	InvalidRegistryImage
	// IpcUtils image
	IpcUtils
	// JessieDnsutils image
	JessieDnsutils
	// Kitten image
	Kitten
	// Nautilus image
	Nautilus
	// NFSProvisioner image
	NFSProvisioner
	// Nginx image
	Nginx
	// NginxNew image
	NginxNew
	// NodePerfNpbEp image
	NodePerfNpbEp
	// NodePerfNpbIs image
	NodePerfNpbIs
	// NodePerfTfWideDeep image
	NodePerfTfWideDeep
	// Nonewprivs image
	Nonewprivs
	// NonRoot runs with a default user of 1234
	NonRoot
	// Pause - when these values are updated, also update cmd/kubelet/app/options/container_runtime.go
	// Pause image
	Pause
	// Perl image
	Perl
	// Redis image
	Redis
	// RegressionIssue74839 image
	RegressionIssue74839
	// ResourceConsumer image
	ResourceConsumer
	// VolumeNFSServer image
	VolumeNFSServer
	// VolumeISCSIServer image
	VolumeISCSIServer
)

type RegistryList

type RegistryList struct {
	GcAuthenticatedRegistry  string `yaml:"gcAuthenticatedRegistry"`
	PromoterE2eRegistry      string `yaml:"promoterE2eRegistry"`
	BuildImageRegistry       string `yaml:"buildImageRegistry"`
	InvalidRegistry          string `yaml:"invalidRegistry"`
	GcEtcdRegistry           string `yaml:"gcEtcdRegistry"`
	GcRegistry               string `yaml:"gcRegistry"`
	SigStorageRegistry       string `yaml:"sigStorageRegistry"`
	PrivateRegistry          string `yaml:"privateRegistry"`
	DockerLibraryRegistry    string `yaml:"dockerLibraryRegistry"`
	CloudProviderGcpRegistry string `yaml:"cloudProviderGcpRegistry"`
}

RegistryList holds public and private image registries

Source Files

csi_manifest.go manifest.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
14 packages
Last checked
3 hours ago

Tools for package owners.