-
Notifications
You must be signed in to change notification settings - Fork 379
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
Helm extension not applying values #447
Comments
Thanks @bfjelds for such a detailed issue. There seems to be two separate things going on so let's tackle the values thing first. The "pipe" char in yaml indicates that everything below that with the same intendation will be treated as a single string. See e.g. https://yaml-multiline.info/ for info So the intention is that you can add the normal Helm values.yaml as embedded as-is in the k0s.yaml
With Helm the values.yaml and |
Thank you for the clarification! I was expecting each line of I tried copying the entirety of https://github.com/deislabs/akri/blob/main/deployment/helm/values.yaml into the $ sudo crictl --runtime-endpoint unix:///run/k0s/containerd.sock inspect $(sudo crictl --runtime-endpoint unix:///run/k0s/containerd.sock ps | grep agent | awk '{print $1}') | grep hostPath`)
...
"hostPath": "/usr/bin/crictl",
"hostPath": "/var/run/dockershim.sock",
... |
I haven't been building k0s, only downloading it ... how should I download and try out the new bits? |
@bfjelds |
I don't have the bandwidth to build k0s, but will try it out when #474 gets released :) |
@bfjelds the fix has been released and you can check it out here https://github.com/k0sproject/k0s/releases/tag/v0.8.0 |
awesome! that works for me!! |
Version
Platform
Which platform did you run k0s on?
What happened?
First, the docs specify some yaml I'm unfamiliar with and was looking for an explanation (the
2
after the pipe character '|'' in thevalues
definition). After playing around with a yaml validator, the2
seems related to consolidating the indentation when converting everything after the|
into a single string. Maybe this is more familiar to other people, but if it is obscure, a mention of what it means would be nice.I've been trying out k0s with a project I'm working on and am not having luck getting the Helm chart quite right
default
but the resulting components end up indefault
namespace.Is there a way to see some debug output or a log of what Helm is doing? Something in a log file that is equivalent to passing the --debug argument to Helm would be very helpful.
How To Reproduce
Add this to k0s.yaml (I have tried with
values: |2
,values: |
, andvalues:
... all yield the same results):I'm trying to do the equivalent of
helm install akri akri-helm-charts/akri-dev --version 0.0.42 --set debugEcho.enabled=true,debugEcho.shared=false,agent.allowDebugEcho=true
Expected behavior
I expected to see the akri components show up in
akri
namespace rather thandefault
( though, it is entirely possible that akri is messing up :) )I also expected to see a few more components starting based on the values specified, which makes me wonder if the values are being communicated to Helm ( though, again, it is entirely possible that akri is messing up :) )
Screenshots & Logs
Additional context
Following up on the idea that the values were not being applied to the Akri helm chart, I added a paramater that would result in a path being mounted in the resulting containers.
After deploying k0s, I can then test whether this new path was mounted as expected:
It (from this contrived test) seems that the values are not being applied to the Helm chart.
The text was updated successfully, but these errors were encountered: