remove inline json patch format

This commit is contained in:
Jingfang Liu
2018-09-06 11:18:00 -07:00
parent dc9ae64646
commit 81b5cf65d6
3 changed files with 53 additions and 61 deletions

View File

@@ -16,10 +16,6 @@ limitations under the License.
package patch
import (
"github.com/krishicks/yaml-patch"
)
// PatchJson6902 represents a json patch for an object
// with format documented https://tools.ietf.org/html/rfc6902.
type PatchJson6902 struct {
@@ -30,9 +26,6 @@ type PatchJson6902 struct {
// before addition of a namePrefix).
Target *Target `json:"target" yaml:"target"`
// jsonPatch is a list of operations in YAML format that follows JSON 6902 rule.
JsonPatch yamlpatch.Patch `json:"jsonPatch,omitempty" yaml:"jsonPatch,omitempty"`
// relative file path for a json patch file inside a kustomization
Path string `json:"path,omitempty" yaml:"path,omitempty"`
}