The path of the longhorn-volumes-healthy patch file error
Summary
The longhorn-volumes-healthy job is not working due to the patch file path error in values.yaml
Steps to reproduce
1 upgrade the longhorn version by the sylva upgration.
2 obseve the longhorn upgrade procedure
3 The action of the pvc mount and the upgrade of the longhorn take effect simultaneously
What is the current bug behavior?
longhorn-volumes-healthy job not working
What is the expected correct behavior?
longhorn-volumes-healthy job should be working during the upgrade.
Relevant logs and/or screenshots
In charts/sylva-units/values.yaml** It is now**
longhorn-volumes-healthy:
info:
description: wait for all longhorn volumes to be in a healthy state (attached/healthy or detached/unknown)
internal: true
enabled_conditions:
- '{{ tuple . "longhorn" | include "unit-enabled" }}'
- '{{ .Values._internal.state.is_upgrade }}'
depends_on:
cluster-machines-ready: '{{ .Values._internal.state.is_upgrade }}'
unit_templates:
- base-deps
- kube-job
repo: sylva-core
kustomization_spec:
targetNamespace: longhorn-system
_patches:
- target:
kind: ConfigMap
labelSelector: kube-job=script
patch: |
- op: replace
path: /data/kube-job.sh
value: |
{{ .Files.Get "scripts/scripts/longhorn-volumes-healthy.sh" | indent 4 }}
Possible fixes
It should be
{{ .Files.Get "scripts/longhorn-volumes-healthy.sh" | indent 4 }}