mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
This commit converts the Options section of a patch into an object instead of map. This allows better clarification of the available options.
14 lines
481 B
Go
14 lines
481 B
Go
// 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"`
|
|
}
|