Skip to content

Configuration for KEB allow to provide a keys with null values and it doesnt work with Landscaper #3152

@PK85

Description

@PK85

Description

Landscaper uses strategic merge patch semantics when processing data objects. Null values are interpreted as "delete this key" rather than "set this key to null". This is what we saw in the kcp-kyma-environment-broker configmap too.

This config:

providersConfiguration:
    aws:
        regionsSupportingMachine:
            g4dn:
                us-gov-east-1:
                us-gov-west-1:
            g6:

becomes:

providersConfiguration:
    aws:
        regionsSupportingMachine:
            g4dn: { }

AC

  1. check where in our configs we allow to leave keys with null values
  2. for regionsSupportingMachine we should consider supporting empty [ ] or "" and treat them as null scenarios
  3. This is an enhancement(backward compatible), release as a patch. Update docs

Metadata

Metadata

Assignees

Labels

kind/enhancementCategorizes issue or PR as related to modifying or improving an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions