
This adds coverage to: * NewDocumentCommand * NewBaremetalCommand Change-Id: I7ece84cd36a4df07dc4c2e7437175484ced9b802
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
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.
|
|
|
|
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
|
|
|
|
|
|
Flags:
|
|
-h, --help help for plugin
|