Documentation
¶
Overview ¶
Package images provides some default images.
Index ¶
- Constants
- Variables
- func Flannel() name.Tag
- func InstallerImage(platform string) string
- func InstallerImageRepository(platform string) string
- func KubeNetworkPolicies() name.Tag
- func NewInstallerImage(factory, platform, schematic, tag string) string
- func NewInstallerImageRepository(factory, platform, schematic string) string
- type TalosBundle
- type Versions
- type VersionsListOptions
Constants ¶
const DefaultSandboxImage = "registry.k8s.io/pause:3.10.2"
DefaultSandboxImage is defined as a constant in cri package of containerd, and it's not exported.
The integration test verifies that our constant is accurate.
Variables ¶
var ( // Username is the default registry username. Username = gendata.ImagesUsername // Registry is the default registry. Registry = gendata.ImagesRegistry // Factory is the default factory for images. Factory = gendata.ImageFactory // DefaultInstallerImageSchematic is the default (empty) image schematic for the installer. DefaultInstallerImageSchematic = "376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba" // DefaultInstallerImageName is the default container image name for // the installer. // // Deprecated: This image is only used for legacy installer for Talos <1.11.0 and during tests. DefaultInstallerImageName = Username + "/installer" // DefaultInstallerImageRepository is the default container repository for // the installer. // // Deprecated: This image is only used for legacy installer for Talos <1.11.0 and during tests. DefaultInstallerImageRepository = Registry + "/" + DefaultInstallerImageName // DefaultInstallerBaseImageRepository is the default container repository for // installer-base image. DefaultInstallerBaseImageRepository = Registry + "/" + Username + "/installer-base" // DefaultTalosImageName is the default container image name for // the talos image. DefaultTalosImageName = Username + "/talos" // DefaultTalosImageRepository is the default container repository for // the talos image. DefaultTalosImageRepository = Registry + "/" + DefaultTalosImageName // DefaultTalosImage is the default talos image. DefaultTalosImage = DefaultTalosImageRepository + ":" + version.Tag // DefaultImagerImageRepository is the default container repository for // imager image. DefaultImagerImageRepository = Registry + "/" + Username + "/imager" // DefaultTalosctlAllImageRepository is the default container repository for // talosctl-all image. DefaultTalosctlAllImageRepository = Registry + "/" + Username + "/talosctl-all" // DefaultOverlaysManifestName is the default container manifest name for // the overlays. DefaultOverlaysManifestName = Username + "/overlays" // DefaultOverlaysManifestRepository is the default container repository for // overlays manifest. DefaultOverlaysManifestRepository = Registry + "/" + DefaultOverlaysManifestName // DefaultExtensionsManifestName is the default container manifest name for // the extensions. DefaultExtensionsManifestName = Username + "/extensions" // DefaultExtensionsManifestRepository is the default container repository for // extensions manifest. DefaultExtensionsManifestRepository = Registry + "/" + DefaultExtensionsManifestName )
Functions ¶
func Flannel ¶ added in v1.14.0
Flannel returns the Flannel image built into Talos, mirrored from docker.io/flannel/flannel.
It is not configurable, so it never depends on the machine configuration.
func InstallerImage ¶ added in v1.14.0
InstallerImage returns the default installer image for the given platform.
func InstallerImageRepository ¶ added in v1.14.0
InstallerImageRepository returns the default container repository for the installer for the given platform.
func KubeNetworkPolicies ¶ added in v1.14.0
KubeNetworkPolicies returns the kube-network-policies image built into Talos.
It is not configurable, so it never depends on the machine configuration.
func NewInstallerImage ¶ added in v1.14.0
NewInstallerImage builds a new installer image for the given factory, platform, schematic and tag.
func NewInstallerImageRepository ¶ added in v1.14.0
NewInstallerImageRepository builds a new installer image for the given factory, platform and schematic.
Types ¶
type TalosBundle ¶ added in v1.13.0
type TalosBundle struct {
Installer name.Tag
InstallerBase name.Tag
Imager name.Tag
Talos name.Tag
TalosctlAll name.Tag
Overlays name.Tag
Extensions name.Tag
}
TalosBundle holds the core images (and their versions) that are used to build Talos.
func ListSourcesFor ¶ added in v1.12.0
func ListSourcesFor(tag string) TalosBundle
ListSourcesFor returns source bundle for specific version.
type Versions ¶
type Versions struct {
Etcd name.Tag
Flannel name.Tag
CoreDNS name.Tag
Kubelet name.Tag
KubeAPIServer name.Tag
KubeControllerManager name.Tag
KubeNetworkPolicies name.Tag
KubeProxy name.Tag
KubeScheduler name.Tag
Pause name.Tag
}
Versions holds all the images (and their versions) that are used in Talos.
func List ¶
List returns default image versions.
It panics on any image which is empty in the config, so it should only be used with a config which is known to have all images set (e.g. a synthetic one built in talosctl).
func ListWithOptions ¶ added in v1.13.0
func ListWithOptions(config config.Config, opts VersionsListOptions) Versions
ListWithOptions returns image versions with overrides.
type VersionsListOptions ¶ added in v1.13.0
type VersionsListOptions struct {
// KubernetesVersion overrides the default Kubernetes version.
KubernetesVersion string
// CoreDNSVersion overrides the default CoreDNS version.
CoreDNSVersion string
// EtcdVersion overrides the default etcd version.
EtcdVersion string
// FlannelVersion overrides the default Flannel version.
FlannelVersion string
// PauseVersion overrides the default pause container image version.
PauseVersion string
// KubeNetworkPoliciesVersion overrides the default kube-network-policies version.
KubeNetworkPoliciesVersion string
}
VersionsListOptions allows overriding the default component versions displayed to the user.
Any non-empty field value replaces the corresponding default version when presenting available or selected versions. Fields left empty will fall back to their built-in defaults.