From 4bf55fad94d2e25382c864bcc5dd32dc8b50dc12 Mon Sep 17 00:00:00 2001 From: Antonio Gallego Date: Thu, 14 Nov 2024 16:15:35 +0100 Subject: [PATCH] Add channel field to MAAS CK8sConfigTemplate --- templates/maas/cluster-template.yaml | 4 +++- templates/maas/template-variables.rc | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/maas/cluster-template.yaml b/templates/maas/cluster-template.yaml index 71f97036..2abd7d56 100644 --- a/templates/maas/cluster-template.yaml +++ b/templates/maas/cluster-template.yaml @@ -40,6 +40,7 @@ spec: name: ${CLUSTER_NAME}-control-plane replicas: ${CONTROL_PLANE_MACHINE_COUNT} version: ${KUBERNETES_VERSION} + channel: ${CHANNEL} --- apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: MaasMachineTemplate @@ -97,4 +98,5 @@ metadata: name: ${CLUSTER_NAME}-md-0 spec: template: - spec: {} + spec: + channel: ${CHANNEL} diff --git a/templates/maas/template-variables.rc b/templates/maas/template-variables.rc index 9cbaaefc..ee4b04b3 100644 --- a/templates/maas/template-variables.rc +++ b/templates/maas/template-variables.rc @@ -1,5 +1,6 @@ # Kubernetes cluster configuration export KUBERNETES_VERSION=v1.30.2 +export CHANNEL=latest/edge export CONTROL_PLANE_MACHINE_COUNT=1 export WORKER_MACHINE_COUNT=1