Comments (6)
@mkotsalainen I would just use the metadata resource and build a release file with the name. I'm doing that myself in a pipeline and it works fine.
from concourse-helm-resource.
Ok it's this line (in the out shellscript) that is causing the cat error above:
release=cat $source/$release_file
When I try skip the release parameter (according to readme it is optional) I get the following error:
Running command helm upgrade --install --tiller-namespace kube-system --namespace default stable/redis | tee /tmp/log
Error: This command needs 2 arguments: release name, chart path
from concourse-helm-resource.
Ok I know what is wrong now. I didn't realize that release is supposed to be a file, not a string. I'll bet a bunch of others get burned by this.
If you don't specify a release in the resource_type or the put def, you'll get the helm upgrade error I wrote about earlier. There should probably be a check there and do a regular helm install if the release param isn't present. If you want I could do a PR with that fix.
from concourse-helm-resource.
I just went through this myself.
I think it should be either a file or a string. The reason I want a string is, I'm deploying many Helm charts to the same resource, with different release names.
I have my own patch at https://github.com/arbourd/concourse-helm-resource/commit/4477167248b0890b38ce83be9a5b125f00c2100b. Image available here for the meantime https://hub.docker.com/r/arbourd/concourse-helm-resource
from concourse-helm-resource.
I can see the reason for it being a file - that makes it more dynamic. I agree that both string and files should be allowed.
My use case is that I wanted to install a chart with a few datastores that we could run our integrationtest against. I wanted the helm chart to be installed with release-name ci-build-$BUILD_ID.
I thought I could use the file option for that - I just needed to get the $BUILD_ID into a file. The only problem is that only resources get that parameter, not tasks. I could use this https://github.com/vito/build-metadata-resource along with a task but instead I chose to hack up a verision of this resource for myself: release_build_number_string_prefix parameter: mkotsalainen@5ac105f
Maybe someone has a better idea of how to achieve what I want?
from concourse-helm-resource.
It can now be a file or a string, thanks to the PR by @arbourd
from concourse-helm-resource.
Related Issues (20)
- token_path mentioned under wrong section HOT 1
- deploy chart doesn't work for some reason. HOT 4
- Support for setting values inline (no yaml file) HOT 1
- Failed to ping registry https://https/v2/ HOT 1
- Check doesn't work with TLS and token_path HOT 3
- [ Feature Request ] Tillerless run HOT 3
- check resource fails when source.release != params.release HOT 5
- Release tillerless tag HOT 4
- Release 2.14.0 breaks cluster_ca (and https cluster_urls) HOT 4
- pr115 breaks kubeconfig tiller_namespace
- Add the ability to reset values HOT 1
- pods is forbidden HOT 1
- Querying too many releases at the end of a build causes the build to fail HOT 7
- Escape override_values
- AWS EKS Support
- New release 2.14.3 HOT 1
- Helm 3 HOT 1
- Request update to 2.16.6 HOT 2
- Support --insecure-skip-tls-verify
- Request update to 2.17.0 HOT 2
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 concourse-helm-resource.