Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions api/generated/applyconfigurations/fnresult/v1/result.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions api/generated/applyconfigurations/kptfile/v1/function.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/generated/applyconfigurations/kptfile/v1/upstream.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions api/kptfile/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ type Upstream struct {

// UpdateStrategy declares how a package will be updated from upstream.
UpdateStrategy UpdateStrategyType `yaml:"updateStrategy,omitempty" json:"updateStrategy,omitempty"`

// PreserveExplicitNull, when true, keeps a field explicitly nulled in the
// local package during resource-merge instead of deleting it. Only applies
// to the resource-merge update strategy.
PreserveExplicitNull bool `yaml:"preserveExplicitNull,omitempty" json:"preserveExplicitNull,omitempty"`
}

// Git is the user-specified locator for a package on Git.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@
},
"updateStrategy": {
"$ref": "#/definitions/UpdateStrategyType"
},
"preserveExplicitNull": {
"description": "PreserveExplicitNull, when true, keeps a field explicitly nulled in the local package during resource-merge instead of deleting it. Only applies to the resource-merge update strategy.",
"type": "boolean",
"x-go-name": "PreserveExplicitNull"
}
},
"x-go-package": "github.com/kptdev/kpt/pkg/api/kptfile/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ definitions:
$ref: '#/definitions/OriginType'
updateStrategy:
$ref: '#/definitions/UpdateStrategyType'
preserveExplicitNull:
description: PreserveExplicitNull, when true, keeps a field explicitly nulled in the local package during resource-merge instead of deleting it. Only applies to the resource-merge update strategy.
type: boolean
x-go-name: PreserveExplicitNull
title: Upstream is a user-specified upstream locator for a package.
type: object
x-go-package: github.com/kptdev/kpt/pkg/api/kptfile/v1
Expand Down