Fix cmd document pull with help test
Previously it was not executed due to typo. Change-Id: I91e166ded37e818ae1836cc33295579af068bd53 Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
parent
ead4f56f25
commit
f1b606f8bf
@ -36,7 +36,7 @@ func TestDocument(t *testing.T) {
|
||||
{
|
||||
Name: "document-pull-with-help",
|
||||
CmdLine: "-h",
|
||||
Cmd: document.NewPluginCommand(),
|
||||
Cmd: document.NewPullCommand(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
@ -1,37 +1,7 @@
|
||||
This command is meant to be used as a kustomize exec plugin.
|
||||
|
||||
The command reads the configuration file CONFIG passed as a first argument and
|
||||
determines a particular plugin to execute. Additional arguments may be passed
|
||||
to this command and can be used by the particular plugin.
|
||||
|
||||
CONFIG must be a structured kubernetes manifest (i.e. resource) and must have
|
||||
'apiVersion' and 'kind' keys. If the appropriate plugin was not found, the
|
||||
command returns an error.
|
||||
Pulls documents from remote git repository
|
||||
|
||||
Usage:
|
||||
plugin CONFIG [ARGS] [flags]
|
||||
|
||||
Examples:
|
||||
|
||||
# Perform a replacement on a deployment. Prior to running this command,
|
||||
# the file '/tmp/replacement.yaml' should be created as follows:
|
||||
---
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ReplacementTransformer
|
||||
metadata:
|
||||
name: notImportantHere
|
||||
replacements:
|
||||
- source:
|
||||
value: nginx:newtag
|
||||
target:
|
||||
objref:
|
||||
kind: Deployment
|
||||
fieldrefs:
|
||||
- spec.template.spec.containers[name=nginx-latest].image
|
||||
|
||||
# The replacement can then be performed. Output defaults to stdout.
|
||||
airshipctl document plugin /tmp/replacement.yaml
|
||||
|
||||
pull [flags]
|
||||
|
||||
Flags:
|
||||
-h, --help help for plugin
|
||||
-h, --help help for pull
|
||||
|
Loading…
x
Reference in New Issue
Block a user