Skip to content

Commit

Permalink
Merge pull request #287 from pdettori/issue-286
Browse files Browse the repository at this point in the history
✨ upgrade kube from 1.27 to 1.29
  • Loading branch information
MikeSpreitzer authored Oct 17, 2024
2 parents 2a71b64 + b933822 commit 1131006
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/reconcilers/k8s/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1131006

Please sign in to comment.