talos/pkg/images/list.go
Andrey Smirnov 7471d7f017
feat: update Flannel to v0.19.2
See https://github.com/flannel-io/flannel/releases/tag/v0.19.2

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2022-09-02 16:12:07 +04:00

54 lines
1.6 KiB
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package images
import (
"fmt"
criconfig "github.com/containerd/containerd/pkg/cri/config"
"github.com/talos-systems/talos/pkg/machinery/config"
"github.com/talos-systems/talos/pkg/version"
)
// Versions holds all the images (and their versions) that are used in Talos.
type Versions struct {
Etcd string
Flannel string
FlannelCNI string
CoreDNS string
Kubelet string
KubeAPIServer string
KubeControllerManager string
KubeProxy string
KubeScheduler string
Installer string
Pause string
}
// List returns default image versions.
func List(config config.Provider) Versions {
var images Versions
images.Etcd = config.Cluster().Etcd().Image()
images.CoreDNS = config.Cluster().CoreDNS().Image()
images.Flannel = "ghcr.io/siderolabs/flannel:v0.19.2" // mirrored from docker.io/flannelcni/flannel
images.FlannelCNI = fmt.Sprintf("ghcr.io/siderolabs/install-cni:%s", version.ExtrasVersion)
images.Kubelet = config.Machine().Kubelet().Image()
images.KubeAPIServer = config.Cluster().APIServer().Image()
images.KubeControllerManager = config.Cluster().ControllerManager().Image()
images.KubeProxy = config.Cluster().Proxy().Image()
images.KubeScheduler = config.Cluster().Scheduler().Image()
images.Installer = DefaultInstallerImage
images.Pause = criconfig.DefaultConfig().SandboxImage
return images
}