mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
feat: add PatchArgs API type to populate patch options
This commit converts the Options section of a patch into an object instead of map. This allows better clarification of the available options.
This commit is contained in:
13
api/types/patchargs.go
Normal file
13
api/types/patchargs.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2019 The Kubernetes Authors.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package types
|
||||
|
||||
// PatchArgs represent set of options on resources of a patch.
|
||||
type PatchArgs struct {
|
||||
// AllowNameChange allows name changes to the resource.
|
||||
AllowNameChange bool `json:"allowNameChange,omitempty" yaml:"allowNameChange,omitempty"`
|
||||
|
||||
// AllowKindChange allows kind changes to the resource.
|
||||
AllowKindChange bool `json:"allowKindChange,omitempty" yaml:"allowKindChange,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user