Updating cmd files for documentation

This PS updates cmd related to root, completion, document and
version subcommands. It also updates minor details in other
subcommands.

The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: I562c15c0d25b2e9731c0eb03854d1d348eb435f2
This commit is contained in:
Sirisha Gopigiri 2021-05-06 15:40:29 +05:30
parent 14ef1f8680
commit 21f015b502
73 changed files with 297 additions and 263 deletions

View File

@ -29,43 +29,43 @@ type Action int
const ( const (
baremetalLong = ` baremetalLong = `
Provides commands that can be performed on bare metal host(s). The commands helps in Provides commands that can be performed on bare metal host(s). The commands help in
performing the basic boot and power operations on the bare metal host(s). performing the basic boot and power operations on the bare metal host(s).
` `
flagLabel = "labels" flagLabel = "labels"
flagLabelShort = "l" flagLabelShort = "l"
flagLabelDescription = "label(s) to filter desired bare metal host documents" flagLabelDescription = "label(s) to filter desired bare metal host from site manifest documents"
flagName = "name" flagName = "name"
flagNameDescription = "name to filter desired bare metal host document" flagNameDescription = "name to filter desired bare metal host from site manifest document"
flagNamespace = "namespace" flagNamespace = "namespace"
flagNamespaceSort = "n" flagNamespaceSort = "n"
flagNamespaceDescription = "airshipctl phase that contains the desired bare metal host document(s)" flagNamespaceDescription = "airshipctl phase that contains the desired bare metal host from site manifest document(s)"
flagTimeout = "timeout" flagTimeout = "timeout"
flagTimeoutDescription = "timeout on bare metal action" flagTimeoutDescription = "timeout on bare metal action"
flagAll = "all" flagAll = "all"
flagAllDescription = "specify this to target all hosts in the inventory" flagAllDescription = "specify this to target all hosts in the site inventory"
) )
var ( var (
selectorsDescription = fmt.Sprintf(`The command will target bare metal hosts from airship inventory based on the selectorsDescription = fmt.Sprintf(`The command will target bare metal hosts from airship site inventory based on the
--%s, --%s and --%s flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --%s, --%s and --%s flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory.`, flagName, flagNamespace, flagLabel) inventory.`, flagName, flagNamespace, flagLabel)
bmhActionExampleTemplate = ` bmhActionExampleTemplate = `
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform %[1]s action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal %[1]s --name rdm9r3s3 # airshipctl baremetal %[1]s --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform %[1]s action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal %[1]s --name rdm9r3s3 --namespace metal3 # airshipctl baremetal %[1]s --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform %[1]s action against all hosts defined in inventory
# airshipctl baremetal %[1]s --all # airshipctl baremetal %[1]s --all
Perform action against hosts with a label 'foo=bar' Perform %[1]s action against hosts with a label 'foo=bar'
# airshipctl baremetal %[1]s --labels "foo=bar" # airshipctl baremetal %[1]s --labels "foo=bar"
` `
) )

View File

@ -28,13 +28,13 @@ based on the --name, --namespace, --label and --timeout flags provided.
` `
powerStatusExample = ` powerStatusExample = `
Perform action against host with name rdm9r3s3 in all namespaces where the host is found To get power status of host with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal powerstatus --name rdm9r3s3 # airshipctl baremetal powerstatus --name rdm9r3s3
Perform action against host with name rdm9r3s3 in namespace metal3 To get power status of host with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal powerstatus --name rdm9r3s3 --namespace metal3 # airshipctl baremetal powerstatus --name rdm9r3s3 --namespace metal3
Perform action against host with a label 'foo=bar' To get power status of host with a label 'foo=bar'
# airshipctl baremetal powerstatus --labels "foo=bar" # airshipctl baremetal powerstatus --labels "foo=bar"
` `
) )

View File

@ -28,13 +28,13 @@ on the --iso-url, --name, --namespace, --label and --timeout flags provided.
` `
remoteDirectExample = ` remoteDirectExample = `
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform bootstrap action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal remotedirect --name rdm9r3s3 # airshipctl baremetal remotedirect --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform bootstrap action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal remotedirect --name rdm9r3s3 --namespace metal3 # airshipctl baremetal remotedirect --name rdm9r3s3 --namespace metal3
Perform action against hosts with a label 'foo=bar' Perform bootstrap action against hosts with a label 'foo=bar'
# airshipctl baremetal remotedirect --labels "foo=bar" # airshipctl baremetal remotedirect --labels "foo=bar"
` `
) )

View File

@ -1,5 +1,5 @@
Eject virtual media attached to a bare metal host. The command will target bare metal hosts from airship inventory based on the Eject virtual media attached to a bare metal host. The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
Usage: Usage:
@ -7,23 +7,23 @@ Usage:
Examples: Examples:
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform ejectmedia action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal ejectmedia --name rdm9r3s3 # airshipctl baremetal ejectmedia --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform ejectmedia action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal ejectmedia --name rdm9r3s3 --namespace metal3 # airshipctl baremetal ejectmedia --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform ejectmedia action against all hosts defined in inventory
# airshipctl baremetal ejectmedia --all # airshipctl baremetal ejectmedia --all
Perform action against hosts with a label 'foo=bar' Perform ejectmedia action against hosts with a label 'foo=bar'
# airshipctl baremetal ejectmedia --labels "foo=bar" # airshipctl baremetal ejectmedia --labels "foo=bar"
Flags: Flags:
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for ejectmedia -h, --help help for ejectmedia
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)

View File

@ -1,5 +1,5 @@
Power off bare metal host(s). The command will target bare metal hosts from airship inventory based on the Power off bare metal host(s). The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
Usage: Usage:
@ -7,23 +7,23 @@ Usage:
Examples: Examples:
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform poweroff action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal poweroff --name rdm9r3s3 # airshipctl baremetal poweroff --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform poweroff action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal poweroff --name rdm9r3s3 --namespace metal3 # airshipctl baremetal poweroff --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform poweroff action against all hosts defined in inventory
# airshipctl baremetal poweroff --all # airshipctl baremetal poweroff --all
Perform action against hosts with a label 'foo=bar' Perform poweroff action against hosts with a label 'foo=bar'
# airshipctl baremetal poweroff --labels "foo=bar" # airshipctl baremetal poweroff --labels "foo=bar"
Flags: Flags:
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for poweroff -h, --help help for poweroff
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)

View File

@ -1,5 +1,5 @@
Power on bare metal host(s). The command will target bare metal hosts from airship inventory based on the Power on bare metal host(s). The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
Usage: Usage:
@ -7,23 +7,23 @@ Usage:
Examples: Examples:
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform poweron action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal poweron --name rdm9r3s3 # airshipctl baremetal poweron --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform poweron action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal poweron --name rdm9r3s3 --namespace metal3 # airshipctl baremetal poweron --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform poweron action against all hosts defined in inventory
# airshipctl baremetal poweron --all # airshipctl baremetal poweron --all
Perform action against hosts with a label 'foo=bar' Perform poweron action against hosts with a label 'foo=bar'
# airshipctl baremetal poweron --labels "foo=bar" # airshipctl baremetal poweron --labels "foo=bar"
Flags: Flags:
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for poweron -h, --help help for poweron
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)

View File

@ -6,19 +6,19 @@ Usage:
Examples: Examples:
Perform action against host with name rdm9r3s3 in all namespaces where the host is found To get power status of host with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal powerstatus --name rdm9r3s3 # airshipctl baremetal powerstatus --name rdm9r3s3
Perform action against host with name rdm9r3s3 in namespace metal3 To get power status of host with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal powerstatus --name rdm9r3s3 --namespace metal3 # airshipctl baremetal powerstatus --name rdm9r3s3 --namespace metal3
Perform action against host with a label 'foo=bar' To get power status of host with a label 'foo=bar'
# airshipctl baremetal powerstatus --labels "foo=bar" # airshipctl baremetal powerstatus --labels "foo=bar"
Flags: Flags:
-h, --help help for powerstatus -h, --help help for powerstatus
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)

View File

@ -1,5 +1,5 @@
Reboot bare metal host(s). The command will target bare metal hosts from airship inventory based on the Reboot bare metal host(s). The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
Usage: Usage:
@ -7,23 +7,23 @@ Usage:
Examples: Examples:
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform reboot action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal reboot --name rdm9r3s3 # airshipctl baremetal reboot --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform reboot action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal reboot --name rdm9r3s3 --namespace metal3 # airshipctl baremetal reboot --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform reboot action against all hosts defined in inventory
# airshipctl baremetal reboot --all # airshipctl baremetal reboot --all
Perform action against hosts with a label 'foo=bar' Perform reboot action against hosts with a label 'foo=bar'
# airshipctl baremetal reboot --labels "foo=bar" # airshipctl baremetal reboot --labels "foo=bar"
Flags: Flags:
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for reboot -h, --help help for reboot
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)

View File

@ -6,20 +6,20 @@ Usage:
Examples: Examples:
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform bootstrap action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal remotedirect --name rdm9r3s3 # airshipctl baremetal remotedirect --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform bootstrap action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal remotedirect --name rdm9r3s3 --namespace metal3 # airshipctl baremetal remotedirect --name rdm9r3s3 --namespace metal3
Perform action against hosts with a label 'foo=bar' Perform bootstrap action against hosts with a label 'foo=bar'
# airshipctl baremetal remotedirect --labels "foo=bar" # airshipctl baremetal remotedirect --labels "foo=bar"
Flags: Flags:
-h, --help help for remotedirect -h, --help help for remotedirect
--iso-url string specify iso url for host to boot from --iso-url string specify iso url for host to boot from
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)

View File

@ -1,5 +1,5 @@
Provides commands that can be performed on bare metal host(s). The commands helps in Provides commands that can be performed on bare metal host(s). The commands help in
performing the basic boot and power operations on the bare metal host(s). performing the basic boot and power operations on the bare metal host(s).
Usage: Usage:

View File

@ -31,21 +31,21 @@ workload cluster) and also the node certificates present inside /etc/kubernetes/
` `
checkExample = ` checkExample = `
To display all the expiring entities in the cluster To display all the expiring certificates in the cluster
# airshipctl cluster check-certificate-expiration --kubeconfig testconfig # airshipctl cluster check-certificate-expiration --kubeconfig testconfig
To display the entities whose expiration is within threshold of 30 days To display the certificates whose expiration is within threshold of 30 days
# airshipctl cluster check-certificate-expiration -t 30 --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -t 30 --kubeconfig testconfig
To output the contents to json (default operation) To output the contents in json format (default operation)
# airshipctl cluster check-certificate-expiration -o json --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -o json --kubeconfig testconfig
or or
# airshipctl cluster check-certificate-expiration --kubeconfig testconfig # airshipctl cluster check-certificate-expiration --kubeconfig testconfig
To output the contents to yaml To output the contents in yaml format
# airshipctl cluster check-certificate-expiration -o yaml --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -o yaml --kubeconfig testconfig
To output the contents whose expiration is within 30 days to yaml To output the contents whose expiration is within 30 days in yaml format
# airshipctl cluster check-certificate-expiration -t 30 -o yaml --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -t 30 -o yaml --kubeconfig testconfig
` `

View File

@ -7,21 +7,21 @@ Usage:
Examples: Examples:
To display all the expiring entities in the cluster To display all the expiring certificates in the cluster
# airshipctl cluster check-certificate-expiration --kubeconfig testconfig # airshipctl cluster check-certificate-expiration --kubeconfig testconfig
To display the entities whose expiration is within threshold of 30 days To display the certificates whose expiration is within threshold of 30 days
# airshipctl cluster check-certificate-expiration -t 30 --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -t 30 --kubeconfig testconfig
To output the contents to json (default operation) To output the contents in json format (default operation)
# airshipctl cluster check-certificate-expiration -o json --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -o json --kubeconfig testconfig
or or
# airshipctl cluster check-certificate-expiration --kubeconfig testconfig # airshipctl cluster check-certificate-expiration --kubeconfig testconfig
To output the contents to yaml To output the contents in yaml format
# airshipctl cluster check-certificate-expiration -o yaml --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -o yaml --kubeconfig testconfig
To output the contents whose expiration is within 30 days to yaml To output the contents whose expiration is within 30 days in yaml format
# airshipctl cluster check-certificate-expiration -t 30 -o yaml --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -t 30 -o yaml --kubeconfig testconfig

View File

@ -25,10 +25,10 @@ const (
getKubeconfigLong = ` getKubeconfigLong = `
Retrieves kubeconfig of the cluster and prints it to stdout. Retrieves kubeconfig of the cluster and prints it to stdout.
If you specify clusterName, kubeconfig will have a CurrentContext set to clusterName and If you specify CLUSTER_NAME, kubeconfig will have a CurrentContext set to CLUSTER_NAME and
will have its context defined. will have its context defined.
If you don't specify clusterName, kubeconfig will have multiple contexts for every cluster If you don't specify CLUSTER_NAME, kubeconfig will have multiple contexts for every cluster
in the airship site. Context names will correspond to cluster names. CurrentContext will be empty. in the airship site. Context names will correspond to cluster names. CurrentContext will be empty.
` `
getKubeconfigExample = ` getKubeconfigExample = `

View File

@ -23,7 +23,8 @@ import (
const ( const (
listLong = ` listLong = `
Retrieve and list the defined clusters in the table form or display just the name as specified. Retrieve and list the defined clusters in table form or display just the cluster names. The contents of the
table would include cluster name, kubeconfig context and parent cluster name.
` `
listExample = ` listExample = `

View File

@ -27,8 +27,8 @@ const (
Reset/rotate the Service Account(SA) tokens and additionally restart the corresponding pods to get the latest Reset/rotate the Service Account(SA) tokens and additionally restart the corresponding pods to get the latest
token data reflected in the pod spec. token data reflected in the pod spec.
Secret-namespace is a mandatory flag and secret-name is optional. If secret-name is not given, all the SA tokens Secret-namespace is a mandatory flag and secret-name is optional. If a secret-name is not specified, all of the SA
in that particular namespace is considered, else only that particular input secret-name. tokens in the specified namespace are rotated, else only the specified secret-name.
` `
resetExample = ` resetExample = `

View File

@ -1,8 +1,8 @@
Reset/rotate the Service Account(SA) tokens and additionally restart the corresponding pods to get the latest Reset/rotate the Service Account(SA) tokens and additionally restart the corresponding pods to get the latest
token data reflected in the pod spec. token data reflected in the pod spec.
Secret-namespace is a mandatory flag and secret-name is optional. If secret-name is not given, all the SA tokens Secret-namespace is a mandatory flag and secret-name is optional. If a secret-name is not specified, all of the SA
in that particular namespace is considered, else only that particular input secret-name. tokens in the specified namespace are rotated, else only the specified secret-name.
Usage: Usage:
rotate-sa-token [flags] rotate-sa-token [flags]

View File

@ -1,9 +1,9 @@
Retrieves kubeconfig of the cluster and prints it to stdout. Retrieves kubeconfig of the cluster and prints it to stdout.
If you specify clusterName, kubeconfig will have a CurrentContext set to clusterName and If you specify CLUSTER_NAME, kubeconfig will have a CurrentContext set to CLUSTER_NAME and
will have its context defined. will have its context defined.
If you don't specify clusterName, kubeconfig will have multiple contexts for every cluster If you don't specify CLUSTER_NAME, kubeconfig will have multiple contexts for every cluster
in the airship site. Context names will correspond to cluster names. CurrentContext will be empty. in the airship site. Context names will correspond to cluster names. CurrentContext will be empty.
Usage: Usage:

View File

@ -1,5 +1,6 @@
Retrieve and list the defined clusters in the table form or display just the name as specified. Retrieve and list the defined clusters in table form or display just the cluster names. The contents of the
table would include cluster name, kubeconfig context and parent cluster name.
Usage: Usage:
list [flags] list [flags]

View File

@ -27,11 +27,11 @@ Generate completion script for airshipctl for the specified shell (bash or zsh).
` `
completionExample = ` completionExample = `
# Save shell completion to a file Save shell completion to a file
airshipctl completion bash > $HOME/.airship_completions # airshipctl completion bash > $HOME/.airship_completions
# Apply completions to the current shell Apply completions to the current shell
source <(airshipctl completion bash) # source <(airshipctl completion bash)
` `
) )
@ -51,7 +51,7 @@ func NewCompletionCommand() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "completion SHELL", Use: "completion SHELL",
Short: "Generate completion script for the specified shell (bash or zsh)", Short: "Airshipctl command to generate completion script for the specified shell (bash or zsh)",
Long: completionLong[1:], Long: completionLong[1:],
Example: completionExample, Example: completionExample,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),

View File

@ -4,11 +4,11 @@ Usage:
Examples: Examples:
# Save shell completion to a file Save shell completion to a file
airshipctl completion bash > $HOME/.airship_completions # airshipctl completion bash > $HOME/.airship_completions
# Apply completions to the current shell Apply completions to the current shell
source <(airshipctl completion bash) # source <(airshipctl completion bash)
Flags: Flags:

View File

@ -4,11 +4,11 @@ Usage:
Examples: Examples:
# Save shell completion to a file Save shell completion to a file
airshipctl completion bash > $HOME/.airship_completions # airshipctl completion bash > $HOME/.airship_completions
# Apply completions to the current shell Apply completions to the current shell
source <(airshipctl completion bash) # source <(airshipctl completion bash)
Flags: Flags:

View File

@ -4,11 +4,11 @@ Usage:
Examples: Examples:
# Save shell completion to a file Save shell completion to a file
airshipctl completion bash > $HOME/.airship_completions # airshipctl completion bash > $HOME/.airship_completions
# Apply completions to the current shell Apply completions to the current shell
source <(airshipctl completion bash) # source <(airshipctl completion bash)
Flags: Flags:

View File

@ -20,11 +20,16 @@ import (
"opendev.org/airship/airshipctl/pkg/config" "opendev.org/airship/airshipctl/pkg/config"
) )
const documentLong = `
Provides commands which help in management of site manifest documents.
`
// NewDocumentCommand creates a new command for managing airshipctl documents // NewDocumentCommand creates a new command for managing airshipctl documents
func NewDocumentCommand(cfgFactory config.Factory) *cobra.Command { func NewDocumentCommand(cfgFactory config.Factory) *cobra.Command {
documentRootCmd := &cobra.Command{ documentRootCmd := &cobra.Command{
Use: "document", Use: "document",
Short: "Manage deployment documents", Short: "Airshipctl command to manage site manifest documents",
Long: documentLong,
} }
documentRootCmd.AddCommand(NewPullCommand(cfgFactory)) documentRootCmd.AddCommand(NewPullCommand(cfgFactory))

View File

@ -32,6 +32,12 @@ the repositories will be cloned are defined in the airship config file.
By default the airship config file is initialized with the By default the airship config file is initialized with the
repository "https://opendev.org/airship/treasuremap" as a source of repository "https://opendev.org/airship/treasuremap" as a source of
manifests and with the manifests target path "%s". manifests and with the manifests target path "%s".
`
pullExample = `
Pull manifests from remote repos
# airshipctl document pull
>>>>>>> Updating cmd files for documentation
` `
) )
@ -39,17 +45,18 @@ manifests and with the manifests target path "%s".
func NewPullCommand(cfgFactory config.Factory) *cobra.Command { func NewPullCommand(cfgFactory config.Factory) *cobra.Command {
var noCheckout bool var noCheckout bool
documentPullCmd := &cobra.Command{ documentPullCmd := &cobra.Command{
Use: "pull", Use: "pull",
Short: "Pulls documents from remote git repository",
Long: fmt.Sprintf(long[1:], filepath.Join( Long: fmt.Sprintf(long[1:], filepath.Join(
config.HomeEnvVar, config.AirshipConfigDir, config.AirshipDefaultManifest)), config.HomeEnvVar, config.AirshipConfigDir, config.AirshipDefaultManifest)),
Short: "Airshipctl command to pull manifests from remote git repositories",
Example: pullExample,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
return pull.Pull(cfgFactory, noCheckout) return pull.Pull(cfgFactory, noCheckout)
}, },
} }
documentPullCmd.Flags().BoolVarP(&noCheckout, "no-checkout", "n", false, documentPullCmd.Flags().BoolVarP(&noCheckout, "no-checkout", "n", false,
"No checkout is performed after the clone is complete.") "no checkout is performed after the clone is complete.")
return documentPullCmd return documentPullCmd
} }

View File

@ -1,11 +1,12 @@
Manage deployment documents
Provides commands which help in management of site manifest documents.
Usage: Usage:
document [command] document [command]
Available Commands: Available Commands:
help Help about any command help Help about any command
pull Pulls documents from remote git repository pull Airshipctl command to pull manifests from remote git repositories
Flags: Flags:
-h, --help help for document -h, --help help for document

View File

@ -8,6 +8,13 @@ manifests and with the manifests target path "$HOME/.airship/default".
Usage: Usage:
pull [flags] pull [flags]
Examples:
Pull manifests from remote repos
# airshipctl document pull
>>>>>>> Updating cmd files for documentation
Flags: Flags:
-h, --help help for pull -h, --help help for pull
-n, --no-checkout No checkout is performed after the clone is complete. -n, --no-checkout no checkout is performed after the clone is complete.

View File

@ -34,7 +34,7 @@ import (
"opendev.org/airship/airshipctl/pkg/log" "opendev.org/airship/airshipctl/pkg/log"
) )
const longRoot = `A unified entrypoint to various airship components const longRoot = `Command line utility for management of end-to-end kubernetes cluster deployment.
Find more information at: https://docs.airshipit.org/airshipctl/ Find more information at: https://docs.airshipit.org/airshipctl/
` `
@ -57,8 +57,10 @@ func NewAirshipCTLCommand(out io.Writer) *cobra.Command {
func NewRootCommand(out io.Writer) (*cobra.Command, *RootOptions) { func NewRootCommand(out io.Writer) (*cobra.Command, *RootOptions) {
options := &RootOptions{} options := &RootOptions{}
rootCmd := &cobra.Command{ rootCmd := &cobra.Command{
Use: "airshipctl", Use: "airshipctl",
Short: "A unified entrypoint to various airship components", Short: "A unified command line tool for management of end-to-end " +
"kubernetes cluster deployment on cloud infrastructure " +
"environments.",
Long: longRoot, Long: longRoot,
SilenceErrors: true, SilenceErrors: true,
SilenceUsage: true, SilenceUsage: true,
@ -95,9 +97,6 @@ func initFlags(options *RootOptions, cmd *cobra.Command) {
defaultAirshipConfigDir := filepath.Join(cfg.HomeEnvVar, cfg.AirshipConfigDir) defaultAirshipConfigDir := filepath.Join(cfg.HomeEnvVar, cfg.AirshipConfigDir)
defaultAirshipConfigPath := filepath.Join(defaultAirshipConfigDir, cfg.AirshipConfig) defaultAirshipConfigPath := filepath.Join(defaultAirshipConfigDir, cfg.AirshipConfig)
flags.StringVar( flags.StringVar(&options.AirshipConfigPath, "airshipconf", "",
&options.AirshipConfigPath, `path to the airshipctl configuration file. Defaults to "`+defaultAirshipConfigPath+`"`)
"airshipconf",
"",
`Path to file for airshipctl configuration. (default "`+defaultAirshipConfigPath+`")`)
} }

View File

@ -1,4 +1,4 @@
A unified entrypoint to various airship components Command line utility for management of end-to-end kubernetes cluster deployment.
Find more information at: https://docs.airshipit.org/airshipctl/ Find more information at: https://docs.airshipit.org/airshipctl/
@ -8,17 +8,17 @@ Usage:
Available Commands: Available Commands:
baremetal Airshipctl command to manage bare metal host(s) baremetal Airshipctl command to manage bare metal host(s)
cluster Airshipctl command to manage kubernetes clusters cluster Airshipctl command to manage kubernetes clusters
completion Generate completion script for the specified shell (bash or zsh) completion Airshipctl command to generate completion script for the specified shell (bash or zsh)
config Airshipctl command to manage airshipctl config file config Airshipctl command to manage airshipctl config file
document Manage deployment documents document Airshipctl command to manage site manifest documents
help Help about any command help Help about any command
phase Airshipctl command to manage phases phase Airshipctl command to manage phases
plan Airshipctl command to manage plans plan Airshipctl command to manage plans
secret Airshipctl command to manage secrets secret Airshipctl command to manage secrets
version Show the version number of airshipctl version Airshipctl command to display the current version number
Flags: Flags:
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
-h, --help help for airshipctl -h, --help help for airshipctl

View File

@ -1,4 +1,4 @@
A unified entrypoint to various airship components Command line utility for management of end-to-end kubernetes cluster deployment.
Find more information at: https://docs.airshipit.org/airshipctl/ Find more information at: https://docs.airshipit.org/airshipctl/

View File

@ -1,4 +1,4 @@
A unified entrypoint to various airship components Command line utility for management of end-to-end kubernetes cluster deployment.
Find more information at: https://docs.airshipit.org/airshipctl/ Find more information at: https://docs.airshipit.org/airshipctl/
@ -10,7 +10,7 @@ Available Commands:
help Help about any command help Help about any command
Flags: Flags:
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
-h, --help help for airshipctl -h, --help help for airshipctl

View File

@ -1,4 +1,4 @@
Show the version number of airshipctl Airshipctl command to display the current version number
Usage: Usage:
version [flags] version [flags]

View File

@ -27,7 +27,7 @@ import (
func NewVersionCommand() *cobra.Command { func NewVersionCommand() *cobra.Command {
versionCmd := &cobra.Command{ versionCmd := &cobra.Command{
Use: "version", Use: "version",
Short: "Show the version number of airshipctl", Short: "Airshipctl command to display the current version number",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
out := cmd.OutOrStdout() out := cmd.OutOrStdout()
clientV := clientVersion() clientV := clientVersion()

View File

@ -1,10 +1,10 @@
## airshipctl ## airshipctl
A unified entrypoint to various airship components A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
### Synopsis ### Synopsis
A unified entrypoint to various airship components Command line utility for management of end-to-end kubernetes cluster deployment.
Find more information at: https://docs.airshipit.org/airshipctl/ Find more information at: https://docs.airshipit.org/airshipctl/
@ -12,7 +12,7 @@ A unified entrypoint to various airship components
### Options ### Options
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
-h, --help help for airshipctl -h, --help help for airshipctl
``` ```
@ -21,11 +21,11 @@ A unified entrypoint to various airship components
* [airshipctl baremetal](airshipctl_baremetal.md) - Airshipctl command to manage bare metal host(s) * [airshipctl baremetal](airshipctl_baremetal.md) - Airshipctl command to manage bare metal host(s)
* [airshipctl cluster](airshipctl_cluster.md) - Airshipctl command to manage kubernetes clusters * [airshipctl cluster](airshipctl_cluster.md) - Airshipctl command to manage kubernetes clusters
* [airshipctl completion](airshipctl_completion.md) - Generate completion script for the specified shell (bash or zsh) * [airshipctl completion](airshipctl_completion.md) - Airshipctl command to generate completion script for the specified shell (bash or zsh)
* [airshipctl config](airshipctl_config.md) - Airshipctl command to manage airshipctl config file * [airshipctl config](airshipctl_config.md) - Airshipctl command to manage airshipctl config file
* [airshipctl document](airshipctl_document.md) - Manage deployment documents * [airshipctl document](airshipctl_document.md) - Airshipctl command to manage site manifest documents
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases * [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
* [airshipctl plan](airshipctl_plan.md) - Airshipctl command to manage plans * [airshipctl plan](airshipctl_plan.md) - Airshipctl command to manage plans
* [airshipctl secret](airshipctl_secret.md) - Airshipctl command to manage secrets * [airshipctl secret](airshipctl_secret.md) - Airshipctl command to manage secrets
* [airshipctl version](airshipctl_version.md) - Show the version number of airshipctl * [airshipctl version](airshipctl_version.md) - Airshipctl command to display the current version number

View File

@ -5,7 +5,7 @@ Airshipctl command to manage bare metal host(s)
### Synopsis ### Synopsis
Provides commands that can be performed on bare metal host(s). The commands helps in Provides commands that can be performed on bare metal host(s). The commands help in
performing the basic boot and power operations on the bare metal host(s). performing the basic boot and power operations on the bare metal host(s).
@ -18,13 +18,13 @@ performing the basic boot and power operations on the bare metal host(s).
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl baremetal ejectmedia](airshipctl_baremetal_ejectmedia.md) - Airshipctl command to eject virtual media attached to a bare metal host * [airshipctl baremetal ejectmedia](airshipctl_baremetal_ejectmedia.md) - Airshipctl command to eject virtual media attached to a bare metal host
* [airshipctl baremetal poweroff](airshipctl_baremetal_poweroff.md) - Airshipctl command to shutdown bare metal host(s) * [airshipctl baremetal poweroff](airshipctl_baremetal_poweroff.md) - Airshipctl command to shutdown bare metal host(s)
* [airshipctl baremetal poweron](airshipctl_baremetal_poweron.md) - Airshipctl command to power on host(s) * [airshipctl baremetal poweron](airshipctl_baremetal_poweron.md) - Airshipctl command to power on host(s)

View File

@ -4,8 +4,8 @@ Airshipctl command to eject virtual media attached to a bare metal host
### Synopsis ### Synopsis
Eject virtual media attached to a bare metal host. The command will target bare metal hosts from airship inventory based on the Eject virtual media attached to a bare metal host. The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
@ -17,16 +17,16 @@ airshipctl baremetal ejectmedia [flags]
``` ```
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform ejectmedia action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal ejectmedia --name rdm9r3s3 # airshipctl baremetal ejectmedia --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform ejectmedia action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal ejectmedia --name rdm9r3s3 --namespace metal3 # airshipctl baremetal ejectmedia --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform ejectmedia action against all hosts defined in inventory
# airshipctl baremetal ejectmedia --all # airshipctl baremetal ejectmedia --all
Perform action against hosts with a label 'foo=bar' Perform ejectmedia action against hosts with a label 'foo=bar'
# airshipctl baremetal ejectmedia --labels "foo=bar" # airshipctl baremetal ejectmedia --labels "foo=bar"
``` ```
@ -34,18 +34,18 @@ Perform action against hosts with a label 'foo=bar'
### Options ### Options
``` ```
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for ejectmedia -h, --help help for ejectmedia
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -4,8 +4,8 @@ Airshipctl command to shutdown bare metal host(s)
### Synopsis ### Synopsis
Power off bare metal host(s). The command will target bare metal hosts from airship inventory based on the Power off bare metal host(s). The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
@ -17,16 +17,16 @@ airshipctl baremetal poweroff [flags]
``` ```
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform poweroff action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal poweroff --name rdm9r3s3 # airshipctl baremetal poweroff --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform poweroff action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal poweroff --name rdm9r3s3 --namespace metal3 # airshipctl baremetal poweroff --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform poweroff action against all hosts defined in inventory
# airshipctl baremetal poweroff --all # airshipctl baremetal poweroff --all
Perform action against hosts with a label 'foo=bar' Perform poweroff action against hosts with a label 'foo=bar'
# airshipctl baremetal poweroff --labels "foo=bar" # airshipctl baremetal poweroff --labels "foo=bar"
``` ```
@ -34,18 +34,18 @@ Perform action against hosts with a label 'foo=bar'
### Options ### Options
``` ```
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for poweroff -h, --help help for poweroff
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -4,8 +4,8 @@ Airshipctl command to power on host(s)
### Synopsis ### Synopsis
Power on bare metal host(s). The command will target bare metal hosts from airship inventory based on the Power on bare metal host(s). The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
@ -17,16 +17,16 @@ airshipctl baremetal poweron [flags]
``` ```
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform poweron action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal poweron --name rdm9r3s3 # airshipctl baremetal poweron --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform poweron action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal poweron --name rdm9r3s3 --namespace metal3 # airshipctl baremetal poweron --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform poweron action against all hosts defined in inventory
# airshipctl baremetal poweron --all # airshipctl baremetal poweron --all
Perform action against hosts with a label 'foo=bar' Perform poweron action against hosts with a label 'foo=bar'
# airshipctl baremetal poweron --labels "foo=bar" # airshipctl baremetal poweron --labels "foo=bar"
``` ```
@ -34,18 +34,18 @@ Perform action against hosts with a label 'foo=bar'
### Options ### Options
``` ```
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for poweron -h, --help help for poweron
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -16,13 +16,13 @@ airshipctl baremetal powerstatus [flags]
``` ```
Perform action against host with name rdm9r3s3 in all namespaces where the host is found To get power status of host with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal powerstatus --name rdm9r3s3 # airshipctl baremetal powerstatus --name rdm9r3s3
Perform action against host with name rdm9r3s3 in namespace metal3 To get power status of host with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal powerstatus --name rdm9r3s3 --namespace metal3 # airshipctl baremetal powerstatus --name rdm9r3s3 --namespace metal3
Perform action against host with a label 'foo=bar' To get power status of host with a label 'foo=bar'
# airshipctl baremetal powerstatus --labels "foo=bar" # airshipctl baremetal powerstatus --labels "foo=bar"
``` ```
@ -31,16 +31,16 @@ Perform action against host with a label 'foo=bar'
``` ```
-h, --help help for powerstatus -h, --help help for powerstatus
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -4,8 +4,8 @@ Airshipctl command to reboot host(s)
### Synopsis ### Synopsis
Reboot bare metal host(s). The command will target bare metal hosts from airship inventory based on the Reboot bare metal host(s). The command will target bare metal hosts from airship site inventory based on the
--name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the --name, --namespace and --labels flags provided. If no flags are provided, airshipctl will select all bare metal hosts in the site
inventory. inventory.
@ -17,16 +17,16 @@ airshipctl baremetal reboot [flags]
``` ```
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform reboot action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal reboot --name rdm9r3s3 # airshipctl baremetal reboot --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform reboot action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal reboot --name rdm9r3s3 --namespace metal3 # airshipctl baremetal reboot --name rdm9r3s3 --namespace metal3
Perform action against all hosts defined in inventory Perform reboot action against all hosts defined in inventory
# airshipctl baremetal reboot --all # airshipctl baremetal reboot --all
Perform action against hosts with a label 'foo=bar' Perform reboot action against hosts with a label 'foo=bar'
# airshipctl baremetal reboot --labels "foo=bar" # airshipctl baremetal reboot --labels "foo=bar"
``` ```
@ -34,18 +34,18 @@ Perform action against hosts with a label 'foo=bar'
### Options ### Options
``` ```
--all specify this to target all hosts in the inventory --all specify this to target all hosts in the site inventory
-h, --help help for reboot -h, --help help for reboot
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -16,13 +16,13 @@ airshipctl baremetal remotedirect [flags]
``` ```
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform bootstrap action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal remotedirect --name rdm9r3s3 # airshipctl baremetal remotedirect --name rdm9r3s3
Perform action against hosts with name rdm9r3s3 in namespace metal3 Perform bootstrap action against hosts with name rdm9r3s3 in metal3 namespace
# airshipctl baremetal remotedirect --name rdm9r3s3 --namespace metal3 # airshipctl baremetal remotedirect --name rdm9r3s3 --namespace metal3
Perform action against hosts with a label 'foo=bar' Perform bootstrap action against hosts with a label 'foo=bar'
# airshipctl baremetal remotedirect --labels "foo=bar" # airshipctl baremetal remotedirect --labels "foo=bar"
``` ```
@ -32,16 +32,16 @@ Perform action against hosts with a label 'foo=bar'
``` ```
-h, --help help for remotedirect -h, --help help for remotedirect
--iso-url string specify iso url for host to boot from --iso-url string specify iso url for host to boot from
-l, --labels string label(s) to filter desired bare metal host documents -l, --labels string label(s) to filter desired bare metal host from site manifest documents
--name string name to filter desired bare metal host document --name string name to filter desired bare metal host from site manifest document
-n, --namespace string airshipctl phase that contains the desired bare metal host document(s) -n, --namespace string airshipctl phase that contains the desired bare metal host from site manifest document(s)
--timeout duration timeout on bare metal action (default 10m0s) --timeout duration timeout on bare metal action (default 10m0s)
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -17,13 +17,13 @@ such as getting status and deploying initial infrastructure.
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl cluster check-certificate-expiration](airshipctl_cluster_check-certificate-expiration.md) - Airshipctl command to check expiring TLS certificates, secrets and kubeconfigs in the kubernetes cluster * [airshipctl cluster check-certificate-expiration](airshipctl_cluster_check-certificate-expiration.md) - Airshipctl command to check expiring TLS certificates, secrets and kubeconfigs in the kubernetes cluster
* [airshipctl cluster get-kubeconfig](airshipctl_cluster_get-kubeconfig.md) - Airshipctl command to retrieve kubeconfig for a desired cluster * [airshipctl cluster get-kubeconfig](airshipctl_cluster_get-kubeconfig.md) - Airshipctl command to retrieve kubeconfig for a desired cluster
* [airshipctl cluster list](airshipctl_cluster_list.md) - Airshipctl command to get and list defined clusters * [airshipctl cluster list](airshipctl_cluster_list.md) - Airshipctl command to get and list defined clusters

View File

@ -17,21 +17,21 @@ airshipctl cluster check-certificate-expiration [flags]
``` ```
To display all the expiring entities in the cluster To display all the expiring certificates in the cluster
# airshipctl cluster check-certificate-expiration --kubeconfig testconfig # airshipctl cluster check-certificate-expiration --kubeconfig testconfig
To display the entities whose expiration is within threshold of 30 days To display the certificates whose expiration is within threshold of 30 days
# airshipctl cluster check-certificate-expiration -t 30 --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -t 30 --kubeconfig testconfig
To output the contents to json (default operation) To output the contents in json format (default operation)
# airshipctl cluster check-certificate-expiration -o json --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -o json --kubeconfig testconfig
or or
# airshipctl cluster check-certificate-expiration --kubeconfig testconfig # airshipctl cluster check-certificate-expiration --kubeconfig testconfig
To output the contents to yaml To output the contents in yaml format
# airshipctl cluster check-certificate-expiration -o yaml --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -o yaml --kubeconfig testconfig
To output the contents whose expiration is within 30 days to yaml To output the contents whose expiration is within 30 days in yaml format
# airshipctl cluster check-certificate-expiration -t 30 -o yaml --kubeconfig testconfig # airshipctl cluster check-certificate-expiration -t 30 -o yaml --kubeconfig testconfig
``` ```
@ -49,7 +49,7 @@ To output the contents whose expiration is within 30 days to yaml
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -6,10 +6,10 @@ Airshipctl command to retrieve kubeconfig for a desired cluster
Retrieves kubeconfig of the cluster and prints it to stdout. Retrieves kubeconfig of the cluster and prints it to stdout.
If you specify clusterName, kubeconfig will have a CurrentContext set to clusterName and If you specify CLUSTER_NAME, kubeconfig will have a CurrentContext set to CLUSTER_NAME and
will have its context defined. will have its context defined.
If you don't specify clusterName, kubeconfig will have multiple contexts for every cluster If you don't specify CLUSTER_NAME, kubeconfig will have multiple contexts for every cluster
in the airship site. Context names will correspond to cluster names. CurrentContext will be empty. in the airship site. Context names will correspond to cluster names. CurrentContext will be empty.
@ -38,7 +38,7 @@ Retrieve kubeconfig for the entire site; the kubeconfig will have context for ev
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -5,7 +5,8 @@ Airshipctl command to get and list defined clusters
### Synopsis ### Synopsis
Retrieve and list the defined clusters in the table form or display just the name as specified. Retrieve and list the defined clusters in table form or display just the cluster names. The contents of the
table would include cluster name, kubeconfig context and parent cluster name.
``` ```
@ -33,7 +34,7 @@ Retrieve list of clusters
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -7,8 +7,8 @@ Airshipctl command to rotate tokens of Service Account(s)
Reset/rotate the Service Account(SA) tokens and additionally restart the corresponding pods to get the latest Reset/rotate the Service Account(SA) tokens and additionally restart the corresponding pods to get the latest
token data reflected in the pod spec. token data reflected in the pod spec.
Secret-namespace is a mandatory flag and secret-name is optional. If secret-name is not given, all the SA tokens Secret-namespace is a mandatory flag and secret-name is optional. If a secret-name is not specified, all of the SA
in that particular namespace is considered, else only that particular input secret-name. tokens in the specified namespace are rotated, else only the specified secret-name.
``` ```
@ -39,7 +39,7 @@ To rotate all the SA tokens in cert-manager namespace
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -20,7 +20,7 @@ airshipctl cluster status [flags]
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -1,6 +1,6 @@
## airshipctl completion ## airshipctl completion
Generate completion script for the specified shell (bash or zsh) Airshipctl command to generate completion script for the specified shell (bash or zsh)
### Synopsis ### Synopsis
@ -15,11 +15,11 @@ airshipctl completion SHELL [flags]
``` ```
# Save shell completion to a file Save shell completion to a file
airshipctl completion bash > $HOME/.airship_completions # airshipctl completion bash > $HOME/.airship_completions
# Apply completions to the current shell Apply completions to the current shell
source <(airshipctl completion bash) # source <(airshipctl completion bash)
``` ```
@ -32,11 +32,11 @@ source <(airshipctl completion bash)
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.

View File

@ -17,13 +17,13 @@ Provides commands which can be used to manage the airshipctl config file.
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl config get-context](airshipctl_config_get-context.md) - Airshipctl command to get context(s) information from the airshipctl config * [airshipctl config get-context](airshipctl_config_get-context.md) - Airshipctl command to get context(s) information from the airshipctl config
* [airshipctl config get-management-config](airshipctl_config_get-management-config.md) - Airshipctl command to view management config(s) defined in the airshipctl config * [airshipctl config get-management-config](airshipctl_config_get-management-config.md) - Airshipctl command to view management config(s) defined in the airshipctl config
* [airshipctl config get-manifest](airshipctl_config_get-manifest.md) - Airshipctl command to get a specific or all manifest(s) information from the airshipctl config * [airshipctl config get-manifest](airshipctl_config_get-manifest.md) - Airshipctl command to get a specific or all manifest(s) information from the airshipctl config

View File

@ -38,7 +38,7 @@ Display a specific context
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -34,7 +34,7 @@ View a specific management configuration named "default"
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -33,7 +33,7 @@ Display a specific manifest
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -39,7 +39,7 @@ To create new airshipctl config file at the custom location and overwrite it
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -36,7 +36,7 @@ To update the manifest of the current-context
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -43,7 +43,7 @@ Enable proxy for "test" management configuration
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -48,7 +48,7 @@ Change the target-path for manifest
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -30,7 +30,7 @@ Switch to a context named "exampleContext" in airshipctl config file
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -1,10 +1,12 @@
## airshipctl document ## airshipctl document
Manage deployment documents Airshipctl command to manage site manifest documents
### Synopsis ### Synopsis
Manage deployment documents
Provides commands which help in management of site manifest documents.
### Options ### Options
@ -15,12 +17,12 @@ Manage deployment documents
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl document pull](airshipctl_document_pull.md) - Pulls documents from remote git repository * [airshipctl document pull](airshipctl_document_pull.md) - Airshipctl command to pull manifests from remote git repositories

View File

@ -1,6 +1,6 @@
## airshipctl document pull ## airshipctl document pull
Pulls documents from remote git repository Airshipctl command to pull manifests from remote git repositories
### Synopsis ### Synopsis
@ -16,21 +16,31 @@ manifests and with the manifests target path "$HOME/.airship/default".
airshipctl document pull [flags] airshipctl document pull [flags]
``` ```
### Examples
```
Pull manifests from remote repos
# airshipctl document pull
>>>>>>> Updating cmd files for documentation
```
### Options ### Options
``` ```
-h, --help help for pull -h, --help help for pull
-n, --no-checkout No checkout is performed after the clone is complete. -n, --no-checkout no checkout is performed after the clone is complete.
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl document](airshipctl_document.md) - Manage deployment documents * [airshipctl document](airshipctl_document.md) - Airshipctl command to manage site manifest documents

View File

@ -16,13 +16,13 @@ Provides capabilities for interacting with phases, such as getting list of phase
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl phase list](airshipctl_phase_list.md) - Airshipctl command to list phases * [airshipctl phase list](airshipctl_phase_list.md) - Airshipctl command to list phases
* [airshipctl phase render](airshipctl_phase_render.md) - Airshipctl command to render phase documents from model * [airshipctl phase render](airshipctl_phase_render.md) - Airshipctl command to render phase documents from model
* [airshipctl phase run](airshipctl_phase_run.md) - Airshipctl command to run phase * [airshipctl phase run](airshipctl_phase_run.md) - Airshipctl command to run phase

View File

@ -45,7 +45,7 @@ List phases with clustername
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -47,7 +47,7 @@ Get all documents executor rendered documents for a phase
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -33,7 +33,7 @@ Run initinfra phase
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -31,7 +31,7 @@ Status of initinfra phase
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -32,7 +32,7 @@ yaml explorer of a phase with phase name
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -30,7 +30,7 @@ To validate initinfra phase
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -16,13 +16,13 @@ Provides capabilities for interacting with plan objects, responsible for executi
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl plan list](airshipctl_plan_list.md) - Airshipctl command to list plans * [airshipctl plan list](airshipctl_plan_list.md) - Airshipctl command to list plans
* [airshipctl plan run](airshipctl_plan_run.md) - Airshipctl command to run plan * [airshipctl plan run](airshipctl_plan_run.md) - Airshipctl command to run plan
* [airshipctl plan validate](airshipctl_plan_validate.md) - Airshipctl command to validate plan * [airshipctl plan validate](airshipctl_plan_validate.md) - Airshipctl command to validate plan

View File

@ -35,7 +35,7 @@ List plan(table output format)
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -35,7 +35,7 @@ Perform a dry run of a plan
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -30,7 +30,7 @@ Validate plan named iso
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -15,12 +15,12 @@ Commands and sub-commnads defined can be used to manage secrets.
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.
* [airshipctl secret generate](airshipctl_secret_generate.md) - Airshipctl command to generate secrets * [airshipctl secret generate](airshipctl_secret_generate.md) - Airshipctl command to generate secrets

View File

@ -15,7 +15,7 @@ Airshipctl command to generate secrets
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -36,7 +36,7 @@ Generates a secure encryption key or passphrase matching the regular expression
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```

View File

@ -1,10 +1,10 @@
## airshipctl version ## airshipctl version
Show the version number of airshipctl Airshipctl command to display the current version number
### Synopsis ### Synopsis
Show the version number of airshipctl Airshipctl command to display the current version number
``` ```
airshipctl version [flags] airshipctl version [flags]
@ -19,11 +19,11 @@ airshipctl version [flags]
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config") --airshipconf string path to the airshipctl configuration file. Defaults to "$HOME/.airship/config"
--debug enable verbose output --debug enable verbose output
``` ```
### SEE ALSO ### SEE ALSO
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components * [airshipctl](airshipctl.md) - A unified command line tool for management of end-to-end kubernetes cluster deployment on cloud infrastructure environments.