Skip to content

Commit 7d29a52

Browse files
lexfreiclaude
andcommitted
fix: pin Helm 3.17.3 and helm-diff 3.12.5 for compatibility
kubernetes.core collection (v6.x) requires Helm 3.x (rejects 4.x). helm-diff v3.13.0+ uses plugin.yaml fields (platformCommand, platformHooks) that Helm 3.x cannot parse. Pin to last compatible versions and ensure git is installed for helm plugin install. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
1 parent 0251b78 commit 7d29a52

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Runs on `server[0]` only.
182182
| `cozystack_operator_variant` | `generic` | Operator variant: generic, talos, hosted |
183183
| `cozystack_api_server_port` | `6443` | API server port |
184184
| `cozystack_kubeconfig` | `/etc/rancher/k3s/k3s.yaml` | Kubeconfig path on target |
185-
| `cozystack_helm_version` | `4.1.1` | Helm binary version to install |
185+
| `cozystack_helm_version` | `3.17.3` | Helm binary version to install |
186186
| `cozystack_helm_binary` | `/usr/local/bin/helm` | Path to Helm binary on target |
187187
| `cozystack_create_platform_package` | `true` | Create Platform Package CR after install |
188188
| `cozystack_platform_variant` | `isp-full-generic` | Platform variant: default, isp-full, isp-hosted, isp-full-generic |

roles/cozystack/defaults/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ cozystack_api_server_port: "6443"
2828
cozystack_kubeconfig: "/etc/rancher/k3s/k3s.yaml"
2929

3030
# Helm binary version to install on the target node
31-
cozystack_helm_version: "4.1.1"
31+
cozystack_helm_version: "3.17.3"
3232

3333
# Path to Helm binary on the target node
3434
cozystack_helm_binary: "/usr/local/bin/helm"
3535

36+
# helm-diff plugin version (v3.13.0+ requires Helm 4 plugin.yaml format)
37+
cozystack_helm_diff_version: "3.12.5"
38+
3639
# ---- Platform Package settings ----
3740

3841
# Whether to create the Platform Package CR after chart install

roles/cozystack/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@
2525
become: true
2626
when: not ansible_check_mode
2727

28+
- name: Ensure git is installed (required by helm plugin install)
29+
ansible.builtin.package:
30+
name: git
31+
state: present
32+
become: true
33+
2834
- name: Install helm-diff plugin
2935
kubernetes.core.helm_plugin:
3036
plugin_path: https://github.com/databus23/helm-diff
37+
plugin_version: "{{ cozystack_helm_diff_version }}"
3138
state: present
3239
binary_path: "{{ cozystack_helm_binary }}"
3340
become: true

0 commit comments

Comments
 (0)