Skip to content

[LIB+CLI] Add flag to explicitly preserve null values in merge - #4746

Draft
mozesl-nokia wants to merge 7 commits into
kptdev:mainfrom
nokia:merge3-preserve-explicit-null
Draft

[LIB+CLI] Add flag to explicitly preserve null values in merge#4746
mozesl-nokia wants to merge 7 commits into
kptdev:mainfrom
nokia:merge3-preserve-explicit-null

Conversation

@mozesl-nokia

@mozesl-nokia mozesl-nokia commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Depends on #4745

Added a new flag that allows you to explicitly preserve null values during merge3/update/upgrade.

The use-case for this is packages that are already meant to be patches themselves. Calling the current merge3 flow on such packages can cause the null to get cleared or overridden unintentionally, leading to "combination packages" to inconsistently remove/not remove values.

Default behaviour is unchanged.

The flag is supported by the kpt update command as well, which is persisted into the Kptfile.

AI disclosure: Cursor's Grok 4.6 and Claude Sonnet 5 were used for analysis and most of the implementation

Assisted-by: Cursor:grok-4.6
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Assisted-by: Cursor:claude-sonnet-5
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Assisted-by: Cursor:claude-sonnet-5
Assisted-by: Cursor:grok-4.6
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for kptdocs failed. Why did it fail? →

Name Link
🔨 Latest commit 8027e4a
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6aa41d0eaf418a00086d54dd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant