Skip to content
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

Discuss indentation of configuration files in debugging docs #847

Merged
merged 3 commits into from
May 14, 2019
Merged

Discuss indentation of configuration files in debugging docs #847

merged 3 commits into from
May 14, 2019

Conversation

sgibson91
Copy link
Member

While building my BinderHub, most of my problems came from not indenting keys correctly in config.yaml and secret.yaml. I've updated the Debugging BinderHub docs to discuss different types of nested charts and suggest some tools to help with this issue based on discussions in #845 and this Discourse thread.

Discuss how most unexpected behaviour from BinderHub occurs from
mis-indented keys in values.yaml. Explain different types of
nested charts. Include some tools to check indentation, helm diff
and linting scripts.
@minrk
Copy link
Member

minrk commented May 13, 2019

This is excellent!

@sgibson91
Copy link
Member Author

Thank you, I had excellent source material to work from!

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

If you think something should change but the diff is empty, that's probably a good clue something is misplaced!

An automated script to check linting may also be of appeal.
The Jupyter Team have a `lint script <https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/eaf87a217fca1834e299a0567a1ef87d813369b7/tools/templates/lint-and-validate.py>`_ to check the validity of the JupyterHub chart.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh hmmmmm, never thought about using this before!

Hmmmm, could this be extracted from the repo, perhaps as a python package, to allow users install this python package and invoke a test on their own deployment?

Hmmm... @sgibson91 ❤️ for processing these things!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great idea!


An automated script to check linting may also be of appeal.
The Jupyter Team have a `lint script <https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/eaf87a217fca1834e299a0567a1ef87d813369b7/tools/templates/lint-and-validate.py>`_ to check the validity of the JupyterHub chart.
It runs ``yamllint``, ``helm lint`` and ``kubeval``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW: It also first runs helm template to generate rendered kubernetes files based on provided values before yamllint is run to validate the output from the templates. If I recall correctly, but this is a technical aspect. No change requested.

The Jupyter Team have a `lint script <https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/eaf87a217fca1834e299a0567a1ef87d813369b7/tools/templates/lint-and-validate.py>`_ to check the validity of the JupyterHub chart.
It runs ``yamllint``, ``helm lint`` and ``kubeval``.

For further discussion on this topic or to join the conversation, you can visit `this Discourse thread <https://discourse.jupyter.org/t/nesting-levels-in-config-yml-file/1037>`_ or `this GitHub issue <https://github.com/jupyterhub/binderhub/issues/845>`_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sgibson91 sgibson91 merged commit b7dcc7f into jupyterhub:master May 14, 2019
yuvipanda pushed a commit to jupyterhub/helm-chart that referenced this pull request May 14, 2019
yuvipanda pushed a commit to jupyterhub/helm-chart that referenced this pull request May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants