Selaa lähdekoodia

rename template patch, add cluster patch

Grega Bremec 1 viikko sitten
vanhempi
commit
3c75eddf7b
3 muutettua tiedostoa jossa 17 lisäystä ja 1 poistoa
  1. 11 0
      files/kafka-cluster.patch
  2. 0 0
      files/template.patch
  3. 6 1
      pre-flight.yml

+ 11 - 0
files/kafka-cluster.patch

@@ -0,0 +1,11 @@
+--- cluster.yaml.orig        2025-09-22 15:20:03.207498456 -0400
++++ cluster.yaml     2025-09-22 15:20:11.793599174 -0400
+@@ -11,7 +11,7 @@
+       name: ${CLUSTER_NAME}
+     spec:
+       kafka:
+-        version: 2.8.0
++        version: 3.8.0
+         replicas: "${{BROKER_REPLICAS}}"
+         listeners:
+           - name: plain

+ 0 - 0
files/template-patch.j2 → files/template.patch


+ 6 - 1
pre-flight.yml

@@ -53,11 +53,16 @@
     - name: Patch API version of some templates
       ansible.posix.patch:
         dest: /home/student/.local/lib/python3.11/site-packages/ad482/common/kubefiles/templates/{{ item }}
-        src: files/template-patch.j2
+        src: files/template.patch
       loop:
         - cluster.yaml
         - connect-cluster.yaml
         - elasticsearch.yaml
 
+    - name: Patch the cluster Kafka version
+      ansible.posix.patch:
+        dest: /home/student/.local/lib/python3.11/site-packages/ad482/common/kubefiles/templates/cluster.yaml
+        src: files/kafka-cluster.patch
+
   # TODO: deploy vscode / codium ?
 ...