helmfile: JsonPatches doesnt work
linebreaks only for readability
Error: accumulating resources: accumulateFile "accumulating resources from 'helmx.1.rendered/cluster-crd/templates/01-prometheus-operator.yaml':
evalsymlink failure on '/tmp/chartify193562796/helmx.1.rendered/cluster-crd/templates/01-prometheus-operator.yaml' : lstat /tmp/chartify193562796/helmx.1.rendered: no such file or directory",
loader.New "Error loading helmx.1.rendered/cluster-crd/templates/01-prometheus-operator.yaml with git: url lacks host: helmx.1.rendered/cluster-crd/templates/01-prometheus-operator.yaml, dir: evalsymlink failure on '/tmp/chartify193562796/helmx.1.rendered/cluster-crd/templates/01-prometheus-operator.yaml' š
lstat /tmp/chartify193562796/helmx.1.rendered: no such file or directory, get: invalid source string: helmx.1.rendered/cluster-crd/templates/01-prometheus-operator.yaml"]
this is the helmfile piece that produces the error:
- name: prometheus-operator
chart: localFolder
jsonPatches:
- target:
version: v1
kind: ServiceAccount
name: prometheus-operator
patch:
- op: replace
path: /metadata/namespace
value: monitoring
the file that its rendering is pretty much this file. Any pointers?
kustomize: {Version:kustomize/v3.8.1 GitCommit:0b359d0ef0272e6545eda0e99aacd63aef99c4d0 BuildDate:2020-07-16T00:58:46Z GoOs:linux GoArch:amd64}
helmfile: version v0.125.7
helm: version.BuildInfo{Version:"v3.3.0", GitCommit:"8a4aeec08d67a7b84472007529e8097ec3742105", GitTreeState:"dirty", GoVersion:"go1.14.7"}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 22 (1 by maintainers)
Commits related to this issue
- Enable JSON patches on kustomize and raw manifests Ref https://github.com/roboll/helmfile/issues/1434#issuecomment-682247709 — committed to helmfile/chartify by mumoshu 4 years ago
- Bump chartify to 0.4.2 To fix the issue that adhoc json patches were not working on kustomize/raw manifests. Note that regular kustomize project was working. In other words, this only affetcts `char... — committed to roboll/helmfile by mumoshu 4 years ago
- Bump chartify to 0.4.2 (#1437) To fix the issue that adhoc json patches were not working on kustomize/raw manifests. Note that regular kustomize project was working. In other words, this only affe... — committed to roboll/helmfile by mumoshu 4 years ago
okay, this just started working with v0.126.2, no changes on my end. so Iām not sure how you claim it was working for you prior to that helmfile version š