Skip to content

Commit

Permalink
Merge pull request #4669 from k0sproject/backport-4666-to-release-1.30
Browse files Browse the repository at this point in the history
[Backport release-1.30] Allow nulls for helm values
  • Loading branch information
makhov authored Jun 25, 2024
2 parents 39c2cb4 + 4c4ef6e commit cc276d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/helm/v1beta1/generic_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func cleanUpInterfaceMap(in map[string]interface{}) map[string]interface{} {

// Cleans up the value in the map, recurses in case of arrays and maps
func cleanUpMapValue(v interface{}) interface{} {
// Keep null values as nil to avoid type mismatches
if v == nil {
return nil
}
switch v := v.(type) {
case []interface{}:
return cleanUpInterfaceArray(v)
Expand Down

0 comments on commit cc276d7

Please sign in to comment.