Comments (8)
@kierenj ya it's a bit tricky to pass arguments with actions, I wish it would just allow full yaml syntax and pass that along somehow to the action.
The code that does this is here: https://github.com/deliverybot/helm/blob/master/index.js#L81-L97
I believe what's happening is you have a trailing slash in the array which is causing it to be invalid JSON, if it's invalid the action just tries to interpret it as a string. If you remove the trailing slash everything should work :)
from helm.
This is what I'm doing:
- uses: deliverybot/helm@v1
with:
helm: helm3
release: foobar
namespace: default
chart: path/to/chart
dry-run: true
value-files: '["values.yaml", "values.production.yaml"]'
You shouldn't indent the values. If you really want to (eg. for readability) I believe this is valid YAML:
- uses: deliverybot/helm@v1
with:
helm: helm3
release: foobar
namespace: default
chart: path/to/chart
dry-run: true
value-files: >-
[
"values.yaml",
"values.production.yaml",
]
Here is helpful information on how to deal with strings that contain multiple new lines: https://yaml-multiline.info/
from helm.
Thanks @riker09 - I think the trailing slash would still cause an error.
from helm.
What trailing slash are we talking about? I can spot a trailing comma which may cause an error.
from helm.
Ya my bad I actually meant comma
from helm.
So in conclusion a perfectly valid configuration would look like this:
- uses: deliverybot/helm@v1
with:
helm: helm3
release: foobar
namespace: default
chart: path/to/chart
dry-run: true
value-files: >-
[
"values.yaml",
"values.production.yaml"
]
Notice the removed comma on the second to last line.
from helm.
There should be a clear example in the README. I've spent hours trying to figure out this problem with this action.
from helm.
@nodox feel free to contribute an example, will be happy to merge it.
from helm.
Related Issues (20)
- Add helmfile HOT 1
- Issue while downloading the chart by passing the full URL. HOT 6
- Deploying to EKS, need credentials passed HOT 8
- Howto reuse values? HOT 4
- [Error] Error: unknown flag: --home HOT 2
- update repos? HOT 3
- Unexpected input 'helm'
- deliverybot/[email protected] breaks CI HOT 4
- Add --create-namespace flag HOT 8
- Warning for missing input parameters
- Add --debug flag HOT 1
- Unexpected input(s) 'timeout' HOT 1
- Add reuse-values as possible argument to the helm upgrade action
- Image build fails because of Helm having removed the stable repo HOT 7
- No module 'awscli' when deploying to EKS HOT 4
- How can I use multiple KUBECONFIG_FILE? - Works with auto_deploy_on, fails with manual deploy
- helm chart base dir
- Image build fails HOT 7
- Image Build Fails HOT 4
- provide an option to provide --insecure-skip-tls-verify flag HOT 1
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 helm.