From 8d148c7ee4c256a843a320f9faba52126ff69c99 Mon Sep 17 00:00:00 2001 From: "Dan Slinky @ Cookpad" <62966219+dan-slinky-ckpd@users.noreply.github.com> Date: Thu, 28 May 2020 13:36:12 +0100 Subject: [PATCH] Update set.md examples to use correct field name --- cmd/config/docs/commands/set.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/config/docs/commands/set.md b/cmd/config/docs/commands/set.md index bacbfbb3c..07aca03be 100644 --- a/cmd/config/docs/commands/set.md +++ b/cmd/config/docs/commands/set.md @@ -48,12 +48,12 @@ To create a custom setter for a field see: `kustomize help config create-setter` # DIR/resources.yaml ... metadata: - name: PREFIX-app1 # {"type":"string","x-kustomize":{"partialFieldSetters":[{"name":"name-prefix","value":"PREFIX"}]}} + name: PREFIX-app1 # {"type":"string","x-kustomize":{"setter":[{"name":"name-prefix","value":"PREFIX"}]}} ... --- ... metadata: - name: PREFIX-app2 # {"type":"string","x-kustomize":{"partialFieldSetters":[{"name":"name-prefix","value":"PREFIX"}]}} + name: PREFIX-app2 # {"type":"string","x-kustomize":{"setter":[{"name":"name-prefix","value":"PREFIX"}]}} ... List setters: Show the possible setters @@ -78,10 +78,10 @@ To create a custom setter for a field see: `kustomize help config create-setter` # DIR/resources.yaml ... metadata: - name: test-app1 # {"description":"test environment","type":"string","x-kustomize":{"setBy":"dev","partialFieldSetters":[{"name":"name-prefix","value":"test"}]}} + name: test-app1 # {"description":"test environment","type":"string","x-kustomize":{"setBy":"dev","setter":[{"name":"name-prefix","value":"test"}]}} ... --- ... metadata: - name: test-app2 # {"description":"test environment","type":"string","x-kustomize":{"setBy":"dev","partialFieldSetters":[{"name":"name-prefix","value":"test"}]}} + name: test-app2 # {"description":"test environment","type":"string","x-kustomize":{"setBy":"dev","setter":[{"name":"name-prefix","value":"test"}]}} ...