-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using files
key
#145
Comments
Hi @trankchung, thanks for reporting this. Which version of reckoner are you encountering this on? |
I tried to convert it into
|
I was able to reproduce the We'll take a look at why |
So I did several more tests and it's not
But if I shorten it like below. It deployed fine.
I put in the dashes just to prove that dashes isn't the cause of the error. |
Can you share your full reckoner file? I was able to get the nfs chart to work:
|
It's really weird. When I use the release name course.yaml
This is the error when I use the relase name as
|
It looks like you're running into a Helm issue. Helm will fail to upgrade a release if the initial install failed. You need to purge the failed installation, and reinstall. |
I suspected you would say that and I made sure that wasn't the case. Please see my commands below
|
Okay I figured out the second issue. It's odd that when deleting the chart helm didn't delete the configmap. Please look into the Thanks, |
If you don't do a |
In regards to your original errors, I am unable to reproduce them as well: Course.yml ---
namespace: kube-system
repositories:
stable:
url: https://kubernetes-charts.storage.googleapis.com
repository: stable
charts:
nfs-client-provisioner:
chart: nfs-client-provisioner
namespace: nfs-client-provisioner
version: 1.2.6
files:
- nfs-client-provisioner.yaml nfs-client-provisioner.yaml test:
value:
file: none The original error message you posted looks to be something wrong with the actual file you are passing in, which I cannot seem to find in this thread.
There should be no issues setting the release name to the chart name (we do it a lot). Can you post a full listing of your course file, values file, and the helm version you are using? Steps to reproduce the error should be sufficient. |
|
I was able to reproduce the issue and come up with a workaround. It happens when you run example course file---
namespace: kube-system
repositories:
stable:
url: https://kubernetes-charts.storage.googleapis.com
repository: stable
charts:
nfs-client-provisioner:
namespace: nfs-client-provisioner
chart: nfs-client-provisioner
version: 1.2.6
files:
- values.yml directory listing$ ls
nfs-test.yml values.yml breaking$ reckoner plot nfs-test.yml
2019-10-15 09:50:46 sys76 root[21167] ERROR Helm upgrade failed on nfs-client-provisioner
2019-10-15 09:50:46 sys76 root[21167] ERROR ERROR: Chart failed to install.
2019-10-15 09:50:46 sys76 root[21167] ERROR - nfs-client-provisioner
2019-10-15 09:50:46 sys76 root[21167] ERROR Stopping chart installations due to an error! Some of your charts may not have been installed!
⛵🔥 Encountered errors while running the course ⛵🔥
* * * * *
Chart Name: nfs-client-provisioner
Status: Failed
Error Reason: unsupported operand type(s) for +: 'NoneType' and 'str' workaround$ reckoner plot $PWD/nfs-test.yml
2019-10-15 10:05:31 sys76 root[15493] INFO Installing nfs-client-provisioner
2019-10-15 10:05:32 sys76 root[15493] INFO Release "nfs-client-provisioner" has been upgraded. Happy Helming!
LAST DEPLOYED: Tue Oct 15 10:05:32 2019
NAMESPACE: nfs-client-provisioner
STATUS: DEPLOYED
..... |
Thanks @bambash. I’ll try this instead. |
@trankchung should be fixed in latest release |
Thanks @bambash |
I'm trying to deploy a simple chart using the
files
key under a chart and it's throwing error. If i removed thefiles
key it deployed fine.course.yaml
error
The text was updated successfully, but these errors were encountered: