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
Default Resource Requests and Limits overwrites empty/null value #353
Comments
@felfa01 I did a test with chart 2.28.0 by changing the resources from resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 1000m
memory: 1024Mi to resources: {} The rendered manifest without the cpu/memory requests/limits. Also, I configured resources:
requests:
cpu: 500m
memory: 512Mi could you please check it? |
@jenting Yes you are correct that what you do works. However, if you are passing a value files with resources:
requests:
memory: 512Mi
limits:
cpu: 1000m
memory: 1024Mi or resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: ~
memory: null all empty or |
@felfa01 Please try this resources:
requests:
cpu: null
memory: 512Mi
limits:
cpu: 1000m
memory: 1024Mi or resources:
requests:
cpu: 500m
memory: 512Mi
limits: null I use the helm v3.7.1 for testing. |
@jenting dependencies:
- name: velero
version: 2.23.10
repository: https://vmware-tanzu.github.io/helm-charts If I in my sub-chart have a values.yaml and configure the following: #values.yaml
resources:
requests:
cpu: null
memory: 1Gi
limits:
cpu: 1
memory: 1Gi and run helm template I get the following output: resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 1
memory: 1Gi However, if I add an additional #test-values.yaml
resources:
requests:
cpu: null
memory: null and run resources:
requests:
memory: 1Gi
limits:
cpu: 1
memory: 1Gi I get the right value for requests.cpu but not for requests.memory. |
I see. It's the helm issue with sub-chart not Velero helm chart issue. |
I'll close this issue because it's not Velero helm chart issue, but a helm issue. |
Describe the problem/challenge you have
You are not able to configure null values for restic daemonset or velero deployment containers. If left empty or with
null
/~
it will always use the default values. For some use cases you do not want to have e.g. CPU Limits.Describe the solution you'd like
Allow empty values for CPU/Memory Requests/Limits.
Environment:
helm version
): version.BuildInfo{Version:"v3.6.2", GitCommit:"ee407bdf364942bcb8e8c665f82e15aa28009b71", GitTreeState:"clean", GoVersion:"go1.16.5"}helm list -n <YOUR NAMESPACE>
): 2.23.10kubectl version
):v1.21.9/etc/os-release
):The text was updated successfully, but these errors were encountered: