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"
|
|
|
|
"strings"
|
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"
|
2022-10-06 06:58:56 -04:00
|
|
|
)
|
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 {
|
|
|
|
switch version {
|
2022-07-26 11:08:57 -04:00
|
|
|
case string(V1_24):
|
|
|
|
return true
|
2022-09-02 08:05:44 -04:00
|
|
|
case string(V1_25):
|
|
|
|
return true
|
2022-12-09 10:30:21 -05:00
|
|
|
case string(V1_26):
|
|
|
|
return true
|
2022-07-22 09:05:04 -04:00
|
|
|
default:
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-02 08:05:44 -04:00
|
|
|
// IsPreviewK8sVersion checks if a given Kubernetes version is still in preview and not fully supported.
|
|
|
|
func IsPreviewK8sVersion(version 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-01-27 09:25:05 -05:00
|
|
|
KonnectivityAgentImage = "registry.k8s.io/kas-network-proxy/proxy-agent:v0.1.1@sha256:939c42e815e6b6af3181f074652c0d18fe429fcee9b49c1392aee7e92887cfef" // renovate:container
|
2022-11-09 09:57:54 -05:00
|
|
|
// KonnectivityServerImage server image for konnectivity service.
|
2023-01-27 09:25:05 -05:00
|
|
|
KonnectivityServerImage = "registry.k8s.io/kas-network-proxy/proxy-server:v0.1.1@sha256:b1389e7014425a1752aac55f5043ef4c52edaef0e223bf4d48ed1324e298087c" // renovate:container
|
2022-11-09 09:57:54 -05:00
|
|
|
// JoinImage image of Constellation join service.
|
2023-01-27 10:01:08 -05:00
|
|
|
JoinImage = "ghcr.io/edgelesssys/constellation/join-service:v2.6.0-pre.0.20230127131021-e174146e0c93@sha256:6aeaab979ed0297fcab658d77b51ee26d9f1ce380d0add30f4d14648f34bd033" // renovate:container
|
2023-01-16 09:04:07 -05:00
|
|
|
// KeyServiceImage image of Constellation KMS server.
|
2023-01-31 12:08:40 -05:00
|
|
|
KeyServiceImage = "ghcr.io/edgelesssys/constellation/key-service:v2.6.0-pre.0.20230131161703-e0354826e058@sha256:6b25f9519f9a2ff40d08f4d74cdab8b66c4ad8c27ec64e0f7f5e460ac76b6b63" // renovate:container
|
2022-11-09 09:57:54 -05:00
|
|
|
// VerificationImage image of Constellation verification service.
|
2023-01-31 12:08:40 -05:00
|
|
|
VerificationImage = "ghcr.io/edgelesssys/constellation/verification-service:v2.6.0-pre.0.20230131161703-e0354826e058@sha256:ad9e04f1cbe544ffc2fbd60c99a9ffcaa36389e206281bcf4603b6022a26f3b6" // 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.
|
2022-11-09 09:57:54 -05:00
|
|
|
GcpGuestImage = "ghcr.io/edgelesssys/gcp-guest-agent:20220927.00@sha256:3dea1ae3f162d2353e6584b325f0e325a39cda5f380f41e5a0ee43c6641d3905" // renovate:container
|
2022-11-21 04:35:40 -05:00
|
|
|
// ConstellationOperatorImage is the image for the constellation node operator.
|
2023-01-31 12:08:40 -05:00
|
|
|
ConstellationOperatorImage = "ghcr.io/edgelesssys/constellation/node-operator:v2.6.0-pre.0.20230131161703-e0354826e058@sha256:6502f9021c30385f166990af75af2d8da46a9cdeecb9851e2a47aa802d84cccb" // 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-07-22 09:05:04 -04:00
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// QEMUMetadataImage image of QEMU metadata api service.
|
2023-01-31 12:08:40 -05:00
|
|
|
QEMUMetadataImage = "ghcr.io/edgelesssys/constellation/qemu-metadata-api:v2.6.0-pre.0.20230131161703-e0354826e058@sha256:39f5b47abf96baa31b0512bb2c9d0c049f4c087e1c32786fd94c5036181e880b" // renovate:container
|
2022-11-09 09:57:54 -05:00
|
|
|
// LibvirtImage image that provides libvirt.
|
|
|
|
LibvirtImage = "ghcr.io/edgelesssys/constellation/libvirt:v2.2.0@sha256:81ddc30cd679a95379e94e2f154861d9112bcabfffa96330c09a4917693f7cce" // renovate:container
|
2022-10-07 03:38:43 -04:00
|
|
|
|
2022-11-17 09:25:25 -05:00
|
|
|
// LogstashImage is the container image of logstash, used for log collection by debugd.
|
2023-01-21 14:17:07 -05:00
|
|
|
LogstashImage = "ghcr.io/edgelesssys/constellation/logstash-debugd:v2.5.0-pre.0.20230120132332-a31d79e9cb71@sha256:17f8555581d8916d8121c6ce00f85974e62df55898a890c9855e830856c8cdf7" // renovate:container
|
2022-11-17 09:25:25 -05:00
|
|
|
// FilebeatImage is the container image of filebeat, used for log collection by debugd.
|
2023-01-21 14:17:07 -05:00
|
|
|
FilebeatImage = "ghcr.io/edgelesssys/constellation/filebeat-debugd:v2.5.0-pre.0.20230120132332-a31d79e9cb71@sha256:9cdfa372c836325979aeeab74f23c1b31e9d757ef8ea95a362133c649a464b02" // 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
|
|
|
|
V1_24 ValidK8sVersion = "1.24"
|
|
|
|
//nolint:revive
|
|
|
|
V1_25 ValidK8sVersion = "1.25"
|
2022-12-09 10:30:21 -05:00
|
|
|
//nolint:revive
|
|
|
|
V1_26 ValidK8sVersion = "1.26"
|
2022-10-05 09:02:46 -04:00
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// Default k8s version deployed by Constellation.
|
2022-12-09 10:30:21 -05:00
|
|
|
Default ValidK8sVersion = V1_25
|
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-01-10 12:08:31 -05:00
|
|
|
//go:generate go run hash-generator/generate.go
|
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{
|
2022-07-26 11:08:57 -04:00
|
|
|
V1_24: {
|
2023-01-20 12:54:10 -05:00
|
|
|
ClusterVersion: "v1.24.10", // 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,
|
|
|
|
},
|
|
|
|
{
|
2022-12-14 09:39:17 -05:00
|
|
|
URL: "https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.26.0/crictl-v1.26.0-linux-amd64.tar.gz", // renovate:crictl-release
|
|
|
|
Hash: "sha256:cda5e2143bf19f6b548110ffba0fe3565e03e8743fadd625fee3d62fc4134eed",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.BinDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-01-20 12:54:10 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.24.10/bin/linux/amd64/kubelet", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:34b1731df37d1762662bd91f1cba57a9d2ee86296813c48c4e52a9d7955a1b9e",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeletPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-01-20 12:54:10 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.24.10/bin/linux/amd64/kubeadm", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:5e29917dc277a8bc4b90bf9dbed8d3dca903fd7cbf7f12c2e256fe22e9f2a1f9",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeadmPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-01-20 12:54:10 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.24.10/bin/linux/amd64/kubectl", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:d8e9cd9bb073ff09e2f2a74cf48e94a9b9d4f2fa2e2dd91b68b01f64e7061a3b",
|
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-01-05 10:35:19 -05:00
|
|
|
CloudControllerManagerImageAWS: "registry.k8s.io/provider-aws/cloud-controller-manager:v1.24.4@sha256:56f1e111977989a403ae2bb53a2b4d1565d1ce132016efe47cfbe45b635ec9cd", // renovate:container
|
2022-07-26 11:08:57 -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.
|
2022-10-31 05:34:12 -04:00
|
|
|
CloudControllerManagerImageGCP: "ghcr.io/edgelesssys/cloud-provider-gcp:v24.0.0@sha256:80e2910509ccb4d99b2e08182c2101fbed64f0663194adae08fc1cf878ecc58b", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
// CloudControllerManagerImageAzure is the CCM image used on Azure.
|
2023-01-23 08:32:21 -05:00
|
|
|
CloudControllerManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager:v1.24.13@sha256:2b0831475e5544ea08ae651e48a990935838cd6da6f82a9c162bdf7ff96d93cd", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
// CloudNodeManagerImageAzure is the cloud-node-manager image used on Azure.
|
2023-01-23 08:32:21 -05:00
|
|
|
CloudNodeManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager:v1.24.13@sha256:6f91d52ab1e51a3248fdc30285d9a250f03895ac9085cce5106c08d487d96bf8", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
// External service image. Depends on k8s version.
|
2022-12-12 05:35:12 -05:00
|
|
|
ClusterAutoscalerImage: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.24.0@sha256:5bd22353ae7f30c9abfaa08189281367ef47ea1b3d09eb13eb26bd13de241e72", // renovate:container
|
2022-07-26 11:08:57 -04:00
|
|
|
},
|
2022-09-02 08:05:44 -04:00
|
|
|
V1_25: {
|
2023-01-19 11:16:00 -05:00
|
|
|
ClusterVersion: "v1.25.6", // 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,
|
|
|
|
},
|
|
|
|
{
|
2022-12-14 09:39:17 -05:00
|
|
|
URL: "https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.26.0/crictl-v1.26.0-linux-amd64.tar.gz", // renovate:crictl-release
|
|
|
|
Hash: "sha256:cda5e2143bf19f6b548110ffba0fe3565e03e8743fadd625fee3d62fc4134eed",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.BinDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-01-19 11:16:00 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.25.6/bin/linux/amd64/kubelet", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:8485ac4a60455b77a9b518c13b3aeb0d32338ab7e9894a0b5d217fea585cd2be",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeletPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-01-19 11:16:00 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.25.6/bin/linux/amd64/kubeadm", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:d8bf16d1a808dce10d4eb9b391ddd6ee8a81e94c669441f20b1227083dbc4417",
|
2022-11-14 13:09:49 -05:00
|
|
|
InstallPath: constants.KubeadmPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-01-19 11:16:00 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.25.6/bin/linux/amd64/kubectl", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:ba876aef0e9d7e2e8fedac036ec194de5ec9b6d2953e30ff82a2758c6ba32174",
|
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-01-27 05:30:43 -05:00
|
|
|
CloudControllerManagerImageAWS: "registry.k8s.io/provider-aws/cloud-controller-manager:v1.25.3@sha256:47eb1c1e6a3bd6d0fb44ac4992885b6218f1448ea339de778d8b703df463c06f", // renovate:container
|
2022-12-09 10:30:21 -05: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:v25.2.0@sha256:86fa9d31ed0b3d0d8806f13d6e7debd3471028b2cb7cca3a876d8a31612a7ba5", // renovate:container
|
|
|
|
// 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-01-23 08:32:21 -05:00
|
|
|
CloudControllerManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager:v1.25.7@sha256:c78d515ca55ed9e0724b55f3c62821d33ebebce9be69b4a6194271870bd9bfc7", // 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-01-23 08:32:21 -05:00
|
|
|
CloudNodeManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager:v1.25.7@sha256:a81a008b6c4963ae3f3eb3a8135fd25a83c4f49da9b18c59aa1592f422aca920", // 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.
|
2022-12-12 05:35:12 -05:00
|
|
|
ClusterAutoscalerImage: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.25.0@sha256:f509ffab618dbd07d129b69ec56963aac7f61aaa792851206b54a2f0bbe046df", // renovate:container
|
2022-12-09 10:30:21 -05:00
|
|
|
},
|
|
|
|
V1_26: {
|
2023-01-19 11:16:00 -05:00
|
|
|
ClusterVersion: "v1.26.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,
|
|
|
|
},
|
|
|
|
{
|
2022-12-14 09:39:17 -05:00
|
|
|
URL: "https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.26.0/crictl-v1.26.0-linux-amd64.tar.gz", // renovate:crictl-release
|
|
|
|
Hash: "sha256:cda5e2143bf19f6b548110ffba0fe3565e03e8743fadd625fee3d62fc4134eed",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.BinDir,
|
|
|
|
Extract: true,
|
|
|
|
},
|
|
|
|
{
|
2023-01-19 11:16:00 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.26.1/bin/linux/amd64/kubelet", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:8b99dd73f309ca1ac4005db638e82f949ffcfb877a060089ec0e729503db8198",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.KubeletPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-01-19 11:16:00 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.26.1/bin/linux/amd64/kubeadm", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:1531abfe96e2e9d8af9219192c65d04df8507a46a081ae1e101478e95d2b63da",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.KubeadmPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
{
|
2023-01-19 11:16:00 -05:00
|
|
|
URL: "https://storage.googleapis.com/kubernetes-release/release/v1.26.1/bin/linux/amd64/kubectl", // renovate:kubernetes-release
|
|
|
|
Hash: "sha256:d57be22cfa25f7427cfb538cfc8853d763878f8b36c76ce93830f6f2d67c6e5d",
|
2022-12-09 10:30:21 -05:00
|
|
|
InstallPath: constants.KubectlPath,
|
|
|
|
Extract: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// CloudControllerManagerImageAWS is the CCM image used on AWS.
|
2022-12-28 11:23:31 -05:00
|
|
|
CloudControllerManagerImageAWS: "registry.k8s.io/provider-aws/cloud-controller-manager:v1.26.0@sha256:fdeb61e3e42ecd9cca868d550ebdb88dd6341d9e91fcfa9a37e227dab2ad22cb", // renovate:container
|
2022-09-02 08:05:44 -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-01-30 10:54:11 -05:00
|
|
|
CloudControllerManagerImageGCP: "ghcr.io/edgelesssys/cloud-provider-gcp:v26.0.1@sha256:8708a3339996a703008e331380142e0e0cb221b95f9cfaba3c8edbf678dae0ee", // 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-01-23 08:32:21 -05:00
|
|
|
CloudControllerManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager:v1.26.3@sha256:d0c4502704ae6654fa678330d5557f6c286d902fa529bc230008271dcbf5ce77", // 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-01-23 08:32:21 -05:00
|
|
|
CloudNodeManagerImageAzure: "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager:v1.26.3@sha256:85aea8e22d64b0188d4fcd420c3f2e33c37a53dd9b3fe8b99a8817521259addb", // 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-01-06 10:47:31 -05:00
|
|
|
ClusterAutoscalerImage: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.26.1@sha256:c0b4ef409e23a79b28e2e9710d7317dbddeab141f4021895ebe90422eba1055c", // 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-01-04 11:03:40 -05:00
|
|
|
ClusterVersion string
|
2023-01-06 06:04:36 -05:00
|
|
|
KubernetesComponents components.Components
|
2022-11-14 13:09:49 -05:00
|
|
|
CloudControllerManagerImageAWS string // k8s version dependency.
|
|
|
|
CloudControllerManagerImageGCP string // Using self-built image until resolved: https://github.com/kubernetes/cloud-provider-gcp/issues/289
|
|
|
|
CloudControllerManagerImageAzure string // k8s version dependency.
|
|
|
|
CloudNodeManagerImageAzure string // k8s version dependency. Same version as above.
|
|
|
|
ClusterAutoscalerImage string // Matches k8s versioning scheme.
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|