Skip to content

Unable to set Helm values to null in Go

Open

Description

What happened?

I tried to override the default value of CPU limit using null but it gives me 999m, other test along with this was I tried as well to use the AllowNullValues but it doesn't work as well, it says

    panic: fatal: A precondition has failed for vsrc: value must be valid`

I'm using https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/release/#kubernetes-helm-sh-v3-release

Example

    resources:
      requests:
        cpu: 10m
        memory: 200Mi
      limits:
        cpu: null
        memory: 200Mi

### Output of `pulumi about`

CLI          
Version      3.134.1
Go Version   go1.23.1
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  azure         5.89.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azure-native  2.63.0
resource  azuread       5.53.4
language  go            unknown
resource  kubernetes    3.30.2
resource  rancher2      3.9.0

Host     
OS       ubuntu
Version  22.04
Arch     x86_64

### Additional context

_No response_

### Contributing

Vote on this issue by adding a 👍 reaction. 
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already). 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    awaiting-feedbackBlocked on input from the authorBlocked on input from the authorkind/bugSome behavior is incorrect or out of specSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions