package image
import "k8s.io/kubernetes/test/utils/image"
Index ¶
- Constants
- Variables
- func GetE2EImage(image int) string
- func GetImageConfigs() map[int]Config
- func GetMappedImageConfigs(originalImageConfigs map[int]Config, repo string) map[int]Config
- func GetOriginalImageConfigs() map[int]Config
- func GetPauseImageName() string
- func ReplaceRegistryInImageURL(imageURL string) (string, error)
- type Config
- func GetConfig(image int) Config
- func (i *Config) GetE2EImage() string
- func (i *Config) SetName(name string)
- func (i *Config) SetRegistry(registry string)
- func (i *Config) SetVersion(version string)
- type RegistryList
Constants ¶
const ( // None is to be used for unset/default images None = iota // Agnhost image Agnhost // AgnhostPrivate image AgnhostPrivate // APIServer image APIServer // AppArmorLoader image AppArmorLoader // AuthenticatedAlpine image AuthenticatedAlpine // AuthenticatedWindowsNanoServer image AuthenticatedWindowsNanoServer // BusyBox image BusyBox // CheckMetadataConcealment image CheckMetadataConcealment // CudaVectorAdd image CudaVectorAdd // CudaVectorAdd2 image CudaVectorAdd2 // DebianIptables Image DebianIptables // EchoServer image EchoServer // Etcd image Etcd // GlusterDynamicProvisioner image GlusterDynamicProvisioner // 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 // PrometheusDummyExporter image PrometheusDummyExporter // PrometheusToSd image PrometheusToSd // Redis image Redis // RegressionIssue74839 image RegressionIssue74839 // ResourceConsumer image ResourceConsumer // SdDummyExporter image SdDummyExporter // VolumeNFSServer image VolumeNFSServer // VolumeISCSIServer image VolumeISCSIServer // VolumeGlusterServer image VolumeGlusterServer // VolumeRBDServer image VolumeRBDServer // WindowsServer image WindowsServer )
Variables ¶
var ( // PrivateRegistry is an image repository that requires authentication PrivateRegistry = registry.PrivateRegistry )
Functions ¶
func GetE2EImage ¶
GetE2EImage returns the fully qualified URI to an image (including version)
func GetImageConfigs ¶
GetImageConfigs returns the map of imageConfigs
func GetMappedImageConfigs ¶
GetMappedImageConfigs returns the images if they were mapped to the provided image repository.
func GetOriginalImageConfigs ¶
GetOriginalImageConfigs returns the configuration before any mapping rules.
func GetPauseImageName ¶
func GetPauseImageName() string
GetPauseImageName returns the pause image name with proper version
func ReplaceRegistryInImageURL ¶
ReplaceRegistryInImageURL replaces the registry in the image URL with a custom one
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds an images registry, name, and version
func GetConfig ¶
GetConfig returns the Config object for an image
func (*Config) GetE2EImage ¶
GetE2EImage returns the fully qualified URI to an image (including version)
func (*Config) SetName ¶
SetName sets an image name in a Config struct
func (*Config) SetRegistry ¶
SetRegistry sets an image registry in a Config struct
func (*Config) SetVersion ¶
SetVersion sets an image version in a Config struct
type RegistryList ¶
type RegistryList struct { GcAuthenticatedRegistry string `yaml:"gcAuthenticatedRegistry"` E2eRegistry string `yaml:"e2eRegistry"` PromoterE2eRegistry string `yaml:"promoterE2eRegistry"` BuildImageRegistry string `yaml:"buildImageRegistry"` InvalidRegistry string `yaml:"invalidRegistry"` GcEtcdRegistry string `yaml:"gcEtcdRegistry"` GcRegistry string `yaml:"gcRegistry"` SigStorageRegistry string `yaml:"sigStorageRegistry"` GcrReleaseRegistry string `yaml:"gcrReleaseRegistry"` PrivateRegistry string `yaml:"privateRegistry"` SampleRegistry string `yaml:"sampleRegistry"` MicrosoftRegistry string `yaml:"microsoftRegistry"` CloudProviderGcpRegistry string `yaml:"cloudProviderGcpRegistry"` }
RegistryList holds public and private image registries
Source Files ¶
manifest.go
- Version
- v1.21.6-rc.0
- Published
- Sep 15, 2021
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 15 seconds ago –
Tools for package owners.