2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-01-19 09:57:50 -05:00
|
|
|
/*
|
|
|
|
Package versions defines the supported versions of Constellation components.
|
|
|
|
|
|
|
|
Binaries and container image versions are pinned by their hashes, the generate tool can be found in the hash-generator subpackage.
|
|
|
|
*/
|
2022-07-21 08:41:07 -04:00
|
|
|
package versions
|
|
|
|
|
2022-10-06 06:58:56 -04:00
|
|
|
import (
|
|
|
|
"fmt"
|
2023-01-31 06:12:19 -05:00
|
|
|
"sort"
|
2022-10-06 06:58:56 -04:00
|
|
|
"strings"
|
2022-11-14 13:09:49 -05:00
|
|
|
|
2023-02-09 11:38:02 -05:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/compatibility"
|
2022-11-14 13:09:49 -05:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/constants"
|
2023-01-06 06:04:36 -05:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/versions/components"
|
2023-01-31 06:12:19 -05:00
|
|
|
"golang.org/x/mod/semver"
|
2022-10-06 06:58:56 -04:00
|
|
|
)
|
2022-07-22 09:05:04 -04:00
|
|
|
|
2023-01-31 06:12:19 -05:00
|
|
|
// SupportedK8sVersions returns a list (sorted) of supported Kubernetes versions.
|
|
|
|
func SupportedK8sVersions() []string {
|
|
|
|
validVersions := make([]string, len(VersionConfigs))
|
|
|
|
i := 0
|
|
|
|
for _, conf := range VersionConfigs {
|
2023-02-09 11:38:02 -05:00
|
|
|
validVersions[i] = compatibility.EnsurePrefixV(conf.ClusterVersion)
|
2023-01-31 06:12:19 -05:00
|
|
|
i++
|
|
|
|
}
|
|
|
|
validVersionsSorted := semver.ByVersion(validVersions)
|
|
|
|
sort.Sort(validVersionsSorted)
|
|
|
|
|
|
|
|
return validVersionsSorted
|
|
|
|
}
|
|
|
|
|
2022-07-22 09:05:04 -04:00
|
|
|
// ValidK8sVersion represents any of the three currently supported k8s versions.
|
|
|
|
type ValidK8sVersion string
|
|
|
|
|
|
|
|
// NewValidK8sVersion validates the given string and produces a new ValidK8sVersion object.
|
|
|
|
func NewValidK8sVersion(k8sVersion string) (ValidK8sVersion, error) {
|
|
|
|
if IsSupportedK8sVersion(k8sVersion) {
|
|
|
|
return ValidK8sVersion(k8sVersion), nil
|
|
|
|
}
|
|
|
|
return "", fmt.Errorf("invalid k8sVersion supplied: %s", k8sVersion)
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsSupportedK8sVersion checks if a given Kubernetes version is supported by Constellation.
|
|
|
|
func IsSupportedK8sVersion(version string) bool {
|
2023-02-22 03:52:47 -05:00
|
|
|
for _, valid := range SupportedK8sVersions() {
|
|
|
|
if valid == version {
|
|
|
|
return true
|
|
|
|
}
|
2022-07-22 09:05:04 -04:00
|
|
|
}
|
2023-02-22 03:52:47 -05:00
|
|
|
return false
|
2022-07-22 09:05:04 -04:00
|
|
|
}
|
|
|
|
|
2022-09-02 08:05:44 -04:00
|
|
|
// IsPreviewK8sVersion checks if a given Kubernetes version is still in preview and not fully supported.
|
2023-03-20 06:03:36 -04:00
|
|
|
func IsPreviewK8sVersion(_ ValidK8sVersion) bool {
|
2022-10-06 04:43:46 -04:00
|
|
|
return false
|
2022-09-02 08:05:44 -04:00
|
|
|
}
|
|
|
|
|
2022-07-21 08:41:07 -04:00
|
|
|
const (
|
2022-11-09 09:57:54 -05:00
|
|
|
//
|
2022-07-21 08:41:07 -04:00
|
|
|
// Constellation images.
|
|
|
|
// These images are built in a way that they support all versions currently listed in VersionConfigs.
|
2022-11-09 09:57:54 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
// KonnectivityAgentImage agent image for konnectivity service.
|
2023-03-20 11:35:26 -04:00
|
|
|
KonnectivityAgentImage = "registry.k8s.io/kas-network-proxy/proxy-agent:v0.1.2@sha256:cd3046d253d26ffb5907c625e0d0c2be05c5693c90e12116980851739fc0ead8" // renovate:container
|
2022-11-09 09:57:54 -05:00
|
|
|
// KonnectivityServerImage server image for konnectivity service.
|
2023-03-20 11:35:26 -04:00
|
|
|
KonnectivityServerImage = "registry.k8s.io/kas-network-proxy/proxy-server:v0.1.2@sha256:79933c3779bc30e33bb7509dff913e70f6ba78ad441f4827f0f3e840ce5f3ddb" // renovate:container
|
2022-11-09 09:57:54 -05:00
|
|
|
// GcpGuestImage image for GCP guest agent.
|
2022-10-07 11:50:59 -04:00
|
|
|
// Check for new versions at https://github.com/GoogleCloudPlatform/guest-agent/releases and update in /.github/workflows/build-gcp-guest-agent.yml.
|
2023-03-13 05:35:57 -04:00
|
|
|
GcpGuestImage = "ghcr.io/edgelesssys/gcp-guest-agent:20230221.0@sha256:8be328a5d8d601170b82481d413cf326b20c5219c016633f1651e35d95f1d6f1" // renovate:container
|
2022-11-21 04:35:40 -05:00
|
|
|
// NodeMaintenanceOperatorImage is the image for the node maintenance operator.
|
2023-01-12 10:01:03 -05:00
|
|
|
NodeMaintenanceOperatorImage = "quay.io/medik8s/node-maintenance-operator:v0.14.0@sha256:2dffb6ffdbbe997d317799fc709baf030d678bde0be0264931ff6b3e94fd89ab" // renovate:container
|
2022-11-17 09:25:25 -05:00
|
|
|
// LogstashImage is the container image of logstash, used for log collection by debugd.
|
2023-05-02 09:04:31 -04:00
|
|
|
LogstashImage = "ghcr.io/edgelesssys/constellation/logstash-debugd:v2.7.0-pre.0.20230405123345-6bf3c63115a5@sha256:1e2c396538be7571138272f8a54e3412d4ff91ee370880f89894501a2555706a" // renovate:container
|
2022-11-17 09:25:25 -05:00
|
|
|
// FilebeatImage is the container image of filebeat, used for log collection by debugd.
|
2023-05-02 09:04:31 -04:00
|
|
|
FilebeatImage = "ghcr.io/edgelesssys/constellation/filebeat-debugd:v2.7.0-pre.0.20230405123345-6bf3c63115a5@sha256:abd739853af4981c3a4b338bb3a27433284525d7ebdb84adfc77f1873c41de93" // renovate:container
|
2022-11-17 09:25:25 -05:00
|
|
|
|
2022-07-22 09:05:04 -04:00
|
|
|
// currently supported versions.
|
2022-10-05 09:02:46 -04:00
|
|
|
//nolint:revive
|
2023-04-27 12:04:01 -04:00
|
|
|
V1_25 ValidK8sVersion = "v1.25.9" // renovate:kubernetes-release
|
2022-12-09 10:30:21 -05:00
|
|
|
//nolint:revive
|
2023-04-27 12:04:01 -04:00
|
|
|
V1_26 ValidK8sVersion = "v1.26.4" // renovate:kubernetes-release
|
2023-05-05 07:22:53 -04:00
|
|
|
//nolint:revive
|
|
|
|
V1_27 ValidK8sVersion = "v1.27.1" // renovate:kubernetes-release
|
2022-10-05 09:02:46 -04:00
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// Default k8s version deployed by Constellation.
|
2023-05-05 07:22:53 -04:00
|
|
|
Default ValidK8sVersion = V1_26
|
2022-07-21 08:41:07 -04:00
|
|
|
)
|
|
|
|
|
2022-11-10 09:20:10 -05:00
|
|
|
// Regenerate the hashes by running go generate.
|
|
|
|
// To add another Kubernetes version, add a new entry to the VersionConfigs map below and fill the Hash field with an empty string.
|
2023-03-29 07:58:37 -04:00
|
|
|
//go:generate hash-generator
|
2022-11-10 09:20:10 -05:00
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// VersionConfigs holds download URLs for all required kubernetes components for every supported version.
|
2022-10-05 09:02:46 -04:00
|
|
|
var VersionConfigs = map[ValidK8sVersion]KubernetesVersion{
|
2023-05-05 07:22:53 -04:00
|
|
|
V1_25: {
|
|
|
|
ClusterVersion: "v1.25.9", // renovate:kubernetes-release
|
2023-01-06 06:04:36 -05:00
|
|
|
KubernetesComponents: components.Components{
|
2022-11-14 13:09:49 -05:00
|
|
|
{
|
2023-01-23 08:56:28 -05:00
|
|
|
URL: "https://github.com/containernetworking/plugins/releases/download/v1.2.0/cni-plugins-linux-amd64-v1.2.0.tgz", // renovate:cni-plugins-release
|
|
|
|
Hash: "sha256:f3a841324845ca6bf0d4091b4fc7f97e18a623172158b72fc3fdcdb9d42d2d37",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.CniPluginsDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-04-05 05:37:15 -04:00
|
|
|
URL: "https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.26.1/crictl-v1.26.1-linux-amd64.tar.gz", // renovate:crictl-release
|
|
|
|
Hash: "sha256:0c1a0f9900c15ee7a55e757bcdc220faca5dd2e1cfc120459ad1f04f08598127",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.BinDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.25.9/bin/linux/amd64/kubelet", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:0eb951237379ef023aa52deedb0df5eae54fa71caeb52bdb30a4660806bed23e",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeletPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.25.9/bin/linux/amd64/kubeadm", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:157be24d998111a51d52db016f9010cd6418506a028f87b5a712f518b392a3f3",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeadmPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.25.9/bin/linux/amd64/kubectl", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:aaa5ea3b3630730d2b8a8ef3cccb14b47754602c7207c7b0717158ae83c7cb10",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubectlPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
2022-11-10 09:20:10 -05:00
|
|
|
},
|
2022-10-24 10:13:26 -04:00
|
|
|
// CloudControllerManagerImageAWS is the CCM image used on AWS.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageAWS: "registry.k8s.io/provider-aws/cloud-controller-manager:v1.25.3@sha256:47eb1c1e6a3bd6d0fb44ac4992885b6218f1448ea339de778d8b703df463c06f", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
// CloudControllerManagerImageAzure is the CCM image used on Azure.
|
2023-05-05 07:22:53 -04:00
|
|
|
// Check for newer versions at https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/README.md.
|
2023-05-05 07:58:50 -04:00
|
|
|
CloudControllerManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager:v1.25.12@sha256:4d3ef41c14f95c5d855fbc01e40b5dfd63357956cd754a251a88ad8bd21cea17", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
// CloudNodeManagerImageAzure is the cloud-node-manager image used on Azure.
|
2023-05-05 07:22:53 -04:00
|
|
|
// Check for newer versions at https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/README.md.
|
2023-05-05 07:58:50 -04:00
|
|
|
CloudNodeManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager:v1.25.12@sha256:5735db598627ca42f47d060f59c21f3f72d17f0342da0097414b8b5dbdb6f492", // renovate:container
|
2023-03-17 04:44:30 -04:00
|
|
|
// CloudControllerManagerImageGCP is the CCM image used on GCP.
|
|
|
|
// TODO: use newer "cloud-provider-gcp" from https://github.com/kubernetes/cloud-provider-gcp when newer releases are available.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageGCP: "ghcr.io/edgelesssys/cloud-provider-gcp:v25.2.0@sha256:86fa9d31ed0b3d0d8806f13d6e7debd3471028b2cb7cca3a876d8a31612a7ba5", // renovate:container
|
2023-03-17 04:44:30 -04:00
|
|
|
// CloudControllerManagerImageOpenStack is the CCM image used on OpenStack.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageOpenStack: "docker.io/k8scloudprovider/openstack-cloud-controller-manager:v1.25.5", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
// External service image. Depends on k8s version.
|
2023-05-05 07:22:53 -04:00
|
|
|
// Check for new versions at https://github.com/kubernetes/autoscaler/releases.
|
2023-05-05 08:30:48 -04:00
|
|
|
ClusterAutoscalerImage: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.25.1@sha256:cfdfd46b726a2d5488d4df9c41b636acbab0dff4c01c8c6dbe3d057539f2f2af", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
},
|
2023-05-05 07:22:53 -04:00
|
|
|
V1_26: {
|
|
|
|
ClusterVersion: "v1.26.4", // renovate:kubernetes-release
|
2023-01-06 06:04:36 -05:00
|
|
|
KubernetesComponents: components.Components{
|
2022-11-14 13:09:49 -05:00
|
|
|
{
|
2023-01-23 08:56:28 -05:00
|
|
|
URL: "https://github.com/containernetworking/plugins/releases/download/v1.2.0/cni-plugins-linux-amd64-v1.2.0.tgz", // renovate:cni-plugins-release
|
|
|
|
Hash: "sha256:f3a841324845ca6bf0d4091b4fc7f97e18a623172158b72fc3fdcdb9d42d2d37",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.CniPluginsDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-04-05 05:37:15 -04:00
|
|
|
URL: "https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.26.1/crictl-v1.26.1-linux-amd64.tar.gz", // renovate:crictl-release
|
|
|
|
Hash: "sha256:0c1a0f9900c15ee7a55e757bcdc220faca5dd2e1cfc120459ad1f04f08598127",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.BinDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.26.4/bin/linux/amd64/kubelet", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:1e29fe7a097066cfbc1c1d2ab37f8b883c8f3fec414bafe8f2c7b960b0fb60fe",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeletPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.26.4/bin/linux/amd64/kubeadm", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:aa1a137aa2c3427f199ff652c96b11d6b124358296996eb7b8cbde220607b2fe",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeadmPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.26.4/bin/linux/amd64/kubectl", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:636ac0eaa467dbceda4b2c4e33662adc9709f5ce40341c9fc1a687fc276ac02d",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubectlPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
2022-11-10 09:20:10 -05:00
|
|
|
},
|
2022-10-24 10:13:26 -04:00
|
|
|
// CloudControllerManagerImageAWS is the CCM image used on AWS.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageAWS: "registry.k8s.io/provider-aws/cloud-controller-manager:v1.26.1@sha256:2a43d2d5611ba920c49e23127cfd474fb7932fcade1671dddbef757921fcdb40", // renovate:container
|
2022-12-09 10:30:21 -05:00
|
|
|
// CloudControllerManagerImageAzure is the CCM image used on Azure.
|
|
|
|
// Check for newer versions at https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/README.md.
|
2023-05-05 07:58:50 -04:00
|
|
|
CloudControllerManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager:v1.26.8@sha256:cc5e7a91c528cd9e71dd77a951ec0e19b8f7e4129396686b139a05da567abc2b", // renovate:container
|
2022-12-09 10:30:21 -05:00
|
|
|
// CloudNodeManagerImageAzure is the cloud-node-manager image used on Azure.
|
|
|
|
// Check for newer versions at https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/README.md.
|
2023-05-05 07:58:50 -04:00
|
|
|
CloudNodeManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager:v1.26.8@sha256:2cbf7f9bfe19ab4bfae6134b93cba18ffe8b2d1f04621755eb83ee9aa13ecc39", // renovate:container
|
2023-03-17 04:44:30 -04:00
|
|
|
// CloudControllerManagerImageGCP is the CCM image used on GCP.
|
|
|
|
// TODO: use newer "cloud-provider-gcp" from https://github.com/kubernetes/cloud-provider-gcp when newer releases are available.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageGCP: "ghcr.io/edgelesssys/cloud-provider-gcp:v26.0.1@sha256:db2b15a20ad690784a6015bfad55c4dff15826be8cf9f6ac77d70abd11b1f70c", // renovate:container
|
2023-03-17 04:44:30 -04:00
|
|
|
// CloudControllerManagerImageOpenStack is the CCM image used on OpenStack.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageOpenStack: "docker.io/k8scloudprovider/openstack-cloud-controller-manager:v1.26.2", // renovate:container
|
2022-12-09 10:30:21 -05:00
|
|
|
// External service image. Depends on k8s version.
|
|
|
|
// Check for new versions at https://github.com/kubernetes/autoscaler/releases.
|
2023-05-05 08:30:48 -04:00
|
|
|
ClusterAutoscalerImage: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.26.2@sha256:fe25585a9b4bbf85bb3ee0ea4f84187683b9106f2838f28d8717a6fdacb84501", // renovate:container
|
2022-12-09 10:30:21 -05:00
|
|
|
},
|
2023-05-05 07:22:53 -04:00
|
|
|
V1_27: {
|
|
|
|
ClusterVersion: "v1.27.1", // renovate:kubernetes-release
|
2023-01-06 06:04:36 -05:00
|
|
|
KubernetesComponents: components.Components{
|
2022-12-09 10:30:21 -05:00
|
|
|
{
|
2023-01-23 08:56:28 -05:00
|
|
|
URL: "https://github.com/containernetworking/plugins/releases/download/v1.2.0/cni-plugins-linux-amd64-v1.2.0.tgz", // renovate:cni-plugins-release
|
|
|
|
Hash: "sha256:f3a841324845ca6bf0d4091b4fc7f97e18a623172158b72fc3fdcdb9d42d2d37",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.CniPluginsDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.27.0/crictl-v1.27.0-linux-amd64.tar.gz", // renovate:crictl-release
|
|
|
|
Hash: "sha256:d335d6e16c309fbc3ff1a29a7e49bb253b5c9b4b030990bf7c6b48687f985cee",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.BinDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.27.1/bin/linux/amd64/kubelet", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:cb2845fff0ce41c400489393da73925d28fbee54cfeb7834cd4d11e622cbd3a7",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.KubeletPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.27.1/bin/linux/amd64/kubeadm", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:c7d32d698e99b90f877025104cb4a9f3f8c707e99e6817940f260135b6d1ad0a",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.KubeadmPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-05-05 07:22:53 -04:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.27.1/bin/linux/amd64/kubectl", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:7fe3a762d926fb068bae32c399880e946e8caf3d903078bea9b169dcd5c17f6d",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.KubectlPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// CloudControllerManagerImageAWS is the CCM image used on AWS.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageAWS: "registry.k8s.io/provider-aws/cloud-controller-manager:v1.27.0@sha256:d3621822ad3c0cfb0f969754ca6965e5b1b3b59a9632ec93cbb822010694f0d4", // renovate:container
|
2022-09-02 08:05:44 -04:00
|
|
|
// CloudControllerManagerImageAzure is the CCM image used on Azure.
|
2022-10-06 05:18:23 -04:00
|
|
|
// Check for newer versions at https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/README.md.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudControllerManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager:v1.27.1@sha256:fb338b05a81b7aa82dc780b6c8062a9e4de9c2dbdc1bf41baf48c9bfd7149af0", // renovate:container
|
2022-09-02 08:05:44 -04:00
|
|
|
// CloudNodeManagerImageAzure is the cloud-node-manager image used on Azure.
|
2022-10-06 05:18:23 -04:00
|
|
|
// Check for newer versions at https://github.com/kubernetes-sigs/cloud-provider-azure/blob/master/README.md.
|
2023-05-05 07:22:53 -04:00
|
|
|
CloudNodeManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager:v1.27.1@sha256:9f5baf4cef45dad7163cc4bfae6e65e773279e848513ee1cc2c3aab278bd909b", // renovate:container
|
2023-03-17 04:44:30 -04:00
|
|
|
// CloudControllerManagerImageGCP is the CCM image used on GCP.
|
|
|
|
// TODO: use newer "cloud-provider-gcp" from https://github.com/kubernetes/cloud-provider-gcp when newer releases are available.
|
|
|
|
CloudControllerManagerImageGCP: "ghcr.io/edgelesssys/cloud-provider-gcp:v26.0.1@sha256:db2b15a20ad690784a6015bfad55c4dff15826be8cf9f6ac77d70abd11b1f70c", // renovate:container
|
|
|
|
// CloudControllerManagerImageOpenStack is the CCM image used on OpenStack.
|
|
|
|
CloudControllerManagerImageOpenStack: "docker.io/k8scloudprovider/openstack-cloud-controller-manager:v1.26.2", // renovate:container
|
2022-09-02 08:05:44 -04:00
|
|
|
// External service image. Depends on k8s version.
|
2022-10-06 05:18:23 -04:00
|
|
|
// Check for new versions at https://github.com/kubernetes/autoscaler/releases.
|
2023-05-05 08:30:48 -04:00
|
|
|
ClusterAutoscalerImage: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.26.2@sha256:fe25585a9b4bbf85bb3ee0ea4f84187683b9106f2838f28d8717a6fdacb84501", // renovate:container
|
2022-09-02 08:05:44 -04:00
|
|
|
},
|
2022-07-21 08:41:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// KubernetesVersion bundles download URLs to all version-releated binaries necessary for installing/deploying a particular Kubernetes version.
|
|
|
|
type KubernetesVersion struct {
|
2023-03-17 04:44:30 -04:00
|
|
|
ClusterVersion string
|
|
|
|
KubernetesComponents components.Components
|
|
|
|
CloudControllerManagerImageAWS string // k8s version dependency.
|
|
|
|
CloudControllerManagerImageAzure string // k8s version dependency.
|
|
|
|
CloudControllerManagerImageGCP string // Using self-built image until resolved: https://github.com/kubernetes/cloud-provider-gcp/issues/289
|
|
|
|
CloudControllerManagerImageOpenStack string // k8s version dependency.
|
|
|
|
CloudNodeManagerImageAzure string // k8s version dependency. Same version as above.
|
|
|
|
ClusterAutoscalerImage string // Matches k8s versioning scheme.
|
2022-11-14 13:09:49 -05:00
|
|
|
}
|
|
|
|
|
2022-10-06 06:58:56 -04:00
|
|
|
// versionFromDockerImage returns the version tag from the image name, e.g. "v1.22.2" from "foocr.io/org/repo:v1.22.2@sha256:3009fj0...".
|
|
|
|
func versionFromDockerImage(imageName string) string {
|
|
|
|
beforeAt, _, _ := strings.Cut(imageName, "@")
|
|
|
|
_, version, ok := strings.Cut(beforeAt, ":")
|
|
|
|
if !ok {
|
|
|
|
panic(fmt.Errorf("failed to extract version from image name, no ':' found in %s", imageName))
|
|
|
|
}
|
|
|
|
return version
|
|
|
|
}
|