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

Support setting resources to null to omit them #2055

Merged

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Feb 20, 2021

It wasn't possible to reset the resource requests such as hub.resources to null because of our helm template logic assumed an object. This PR makes it so that if a .resources chart config value is null or {}, then the resources section will be omitted.

@consideRatio consideRatio force-pushed the pr/avoid-always-setting-resources branch from e9c5a7f to c951062 Compare February 20, 2021 06:13
@yuvipanda yuvipanda merged commit ff29cc9 into jupyterhub:master Feb 20, 2021
@yuvipanda
Copy link
Collaborator

w00p, thanks @consideRatio!

consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Feb 20, 2021
jupyterhub/zero-to-jupyterhub-k8s#2055 Merge pull request #2055 from consideRatio/pr/avoid-always-setting-resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants