diff --git a/cmd/document/plugin.go b/cmd/document/plugin.go index 6e12d1841..aa6de28d1 100644 --- a/cmd/document/plugin.go +++ b/cmd/document/plugin.go @@ -33,11 +33,17 @@ Example: $ cat /tmp/generator.yaml --- apiVersion: airshipit.org/v1alpha1 -kind: BareMetalHostGenerator -spec: - hostList: - - mac: 00:aa:bb:cc:dd - powerAddress: redfish+http://1.2.3.4/ +kind: ReplacementTransformer +metadata: + name: notImportantHere +replacements: +- source: + value: nginx:newtag + target: + objref: + kind: Deployment + fieldrefs: + - spec.template.spec.containers[name=nginx-latest].image $ airshipctl document plugin /tmp/generator.yaml diff --git a/cmd/document/testdata/TestPluginGoldenOutput/document-plugin-cmd-with-help.golden b/cmd/document/testdata/TestPluginGoldenOutput/document-plugin-cmd-with-help.golden index 3e032c273..3e90219e8 100644 --- a/cmd/document/testdata/TestPluginGoldenOutput/document-plugin-cmd-with-help.golden +++ b/cmd/document/testdata/TestPluginGoldenOutput/document-plugin-cmd-with-help.golden @@ -8,11 +8,17 @@ Example: $ cat /tmp/generator.yaml --- apiVersion: airshipit.org/v1alpha1 -kind: BareMetalHostGenerator -spec: - hostList: - - mac: 00:aa:bb:cc:dd - powerAddress: redfish+http://1.2.3.4/ +kind: ReplacementTransformer +metadata: + name: notImportantHere +replacements: +- source: + value: nginx:newtag + target: + objref: + kind: Deployment + fieldrefs: + - spec.template.spec.containers[name=nginx-latest].image $ airshipctl document plugin /tmp/generator.yaml