-
Notifications
You must be signed in to change notification settings - Fork 391
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
Most problems deploying/upgrading BinderHub can be solved by checking indentation #845
Comments
This is a general problem with helm, silently ignoring misspelled or mis-structured config instead of warning about it. It's feasible to handle certain common mistakes like verifying the list of top-level keys in values.yaml, but general linting is going to be tough without a dedicated command that's not run on helm upgrade, which is of significantly reduced utility. |
Agreed. I guess what I want to do is raise awareness that this is probably the most likely cause of a problem and to check that before deep-diving into any k8s stuff. This might be an ok resource to link to. It doesn't seem perfect, but better than nothing. I might play with it over the next week or so and see how I get along with it. |
Yeah. It would be really awesome if helm could record which items in values.yaml were visited and then show you what's been ignored. That might be pretty hard, though. helm lint is useful, but I think it doesn't help with the ignored-config case. It does help catch things like producing invalid templates. If you are exploring it, maybe check out the jupyterhub lint script, which we use to run yamllint, helm lint, and kubeval to test the validity of the chart. |
Ah, what might be useful for ignored config is helm diff, which shows you what would change. If you think you're changing something and the diff is empty, that's probably a good clue! |
Thanks, those look like great resources! |
I think adding some text to the documentation (or even just linking to this issue) would already help get people unstuck. Should we do that while we investigate more automatic/tooling based approaches? Another thing to do is add a paragraph to the docs about the difference between using the BinderHub chart (in which case you (probably) have a I think our docs are consistent in using the |
The third flavour being you have a BinderHub |
Yeah, docs on common gotchas (e.g. extra indent) and troubleshooting ( |
I'm having a headache with connecting an Azure container registry to my BinderHub. So if I don't have any breakthroughs with that, I can start a PR for this 😄 |
@sgibson91 ❤️ 🎉 you are great! :D |
PR open at #847 🎉 |
Hello!
So 9 times out of 10 when my BinderHub is acting weird, it's because I've indented something incorrectly in
config.yaml
. There was a (brief) discussion in #835 around trying to implement some kind of linting check to catch these types of mistakes, but there isn't a concrete plan yet.For the time being, I suggest updating the Debugging BinderHub docs to advise users to thoroughly check their config files before diving into k8s debugging.
Are there any thoughts or further ideas around this?
The text was updated successfully, but these errors were encountered: