Comments (7)
yes it is, thanks !
from argo-cd-helmfile.
Put something like this in your helmfiles:
apiVersions:
{{- if (env "KUBE_API_VERSIONS") }}
{{- range $apiV := ( requiredEnv "KUBE_API_VERSIONS" | split "," ) }}
- {{ $apiV }}
{{- end }}
{{- end }}
I personally put that snippet in as base
file and have something like this at the top of all my release yaml:
---
bases:
- ../../bases/repositories.yaml
- ../../bases/environments.yaml.gotmpl
- ../../bases/api-versions.yaml
# https://github.com/roboll/helmfile/issues/1230
---
releases:
...
from argo-cd-helmfile.
Thanks ill try it
I also trying to put this env var of repo server:
- name: HELM_TEMPLATE_OPTIONS
value: "--kube-version 1.22 --validate"
Will update if its works
from argo-cd-helmfile.
The HELM_TEMPLATE_OPTIONS envar doesnt worked
although I tried to run helm templat and its outputting the prometheusrule:
helm template ingress-nginx ingress-nginx/ingress-nginx --version 4.2.1 --namespace ingress-nginx --values nucs/dev/us-east/infra/namespaces/ingress-nginx/helmfile/ingress-nginx/values.yaml --values nucs/dev/us-east/infra/namespaces/ingress-nginx/helmfile/ingress-nginx/values-env-specific.yaml --kube-version 1.22 --validate > output.yaml
from argo-cd-helmfile.
You shouldn't need to handle those values manually, argocd passes both the kube version and api versions off to the plugin as standard procedure (which is good because if you have argocd handling multiple clusters the values should be dynamic anyway).
from argo-cd-helmfile.
I think what makes the difference is the --validate argument to the helm template, not the kubeapi version
I mean both makes the differences I guess
from argo-cd-helmfile.
Is it working with the snippet I sent then?
from argo-cd-helmfile.
Related Issues (20)
- Helm secrets support HOT 6
- helmfile diff - invalid ownership metadata HOT 5
- context deadline exceeded / unknown sync HOT 16
- application spec for testapp is invalid: InvalidSpecError: Unable to generate manifests HOT 6
- How to use helmfile apply option instead of helmfile sync HOT 1
- HOME var overide HOT 7
- set -x eats etcd space
- Support for ArgoCD v2.5.1 HOT 22
- kubectl rollout restart interrupted ? HOT 4
- Mask helm repository password in ArgoCD UI HOT 2
- Private OCI repositories HOT 2
- Helmfile is moved HOT 2
- Error: unknown flag: --skip-crds HOT 10
- Passing args to helm HOT 11
- Issues related to sidecar CMP mode HOT 13
- Autodiscover with apps in app HOT 10
- Helm repository not found HOT 13
- adding kustomize transformers: causes breakage HOT 3
- helmfile/vals integration HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argo-cd-helmfile.