From b933822cd45611d7322086c080415705f05d3dd6 Mon Sep 17 00:00:00 2001 From: Paolo Dettori Date: Tue, 15 Oct 2024 10:32:57 -0400 Subject: [PATCH] upgrade kube from 1.27 to 1.29 Signed-off-by: Paolo Dettori --- pkg/reconcilers/k8s/deployment.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/reconcilers/k8s/deployment.go b/pkg/reconcilers/k8s/deployment.go index f338ca3..8f8b5f8 100644 --- a/pkg/reconcilers/k8s/deployment.go +++ b/pkg/reconcilers/k8s/deployment.go @@ -36,6 +36,8 @@ import ( "github.com/kubestellar/kubeflex/pkg/util" ) +const KubeVersion = "v1.29.9" + func (r *K8sReconciler) ReconcileAPIServerDeployment(ctx context.Context, hcp *tenancyv1alpha1.ControlPlane, isOCP bool) error { _ = clog.FromContext(ctx) namespace := util.GenerateNamespaceFromControlPlaneName(hcp.Name) @@ -144,7 +146,7 @@ func (r *K8sReconciler) generateAPIServerDeployment(namespace, dbName string, is }, { Name: "kube-apiserver", - Image: "registry.k8s.io/kube-apiserver:v1.27.1", + Image: fmt.Sprintf("registry.k8s.io/kube-apiserver:%s", KubeVersion), ImagePullPolicy: v1.PullIfNotPresent, Command: []string{ "kube-apiserver", @@ -304,7 +306,7 @@ func (r *K8sReconciler) generateCMDeployment(cpName, namespace string) (*appsv1. Containers: []v1.Container{ { Name: "kube-controller-manager", - Image: "registry.k8s.io/kube-controller-manager:v1.27.1", + Image: fmt.Sprintf("registry.k8s.io/kube-controller-manager:%s", KubeVersion), ImagePullPolicy: v1.PullIfNotPresent, Command: []string{ "kube-controller-manager",