Phase- updating cmd files for documentation
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: I3587ad211f7d614b5cc6a162ca352ac54c3b90f0
This commit is contained in:
parent
ebfca69643
commit
4c3140be93
@ -23,25 +23,24 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
cmdLong = `
|
cmdLong = `
|
||||||
List life-cycle phases which were defined in document model by group.
|
List phases defined in site manifests by plan. Phases within a plan are
|
||||||
Phases within a group are executed sequentially. Multiple phase groups
|
executed sequentially. Multiple phase plans are executed in parallel.
|
||||||
are executed in parallel.
|
|
||||||
`
|
`
|
||||||
listExample = `
|
listExample = `
|
||||||
# List phases of phasePlan
|
List phases of phasePlan
|
||||||
airshipctl phase list --plan phasePlan
|
# airshipctl phase list --plan phasePlan
|
||||||
|
|
||||||
# To output the contents to table (default operation)
|
To output the contents in table format (default operation)
|
||||||
airshipctl phase list --plan phasePlan -o table
|
# airshipctl phase list --plan phasePlan -o table
|
||||||
|
|
||||||
# To output the contents to yaml
|
To output the contents in yaml format
|
||||||
airshipctl phase list --plan phasePlan -o yaml
|
# airshipctl phase list --plan phasePlan -o yaml
|
||||||
|
|
||||||
# List all phases
|
List all phases
|
||||||
airshipctl phase list
|
# airshipctl phase list
|
||||||
|
|
||||||
# List phases with clustername
|
List phases with clustername
|
||||||
airshipctl phase list --cluster-name clustername
|
# airshipctl phase list --cluster-name clustername
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,7 +50,7 @@ func NewListCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
|
|
||||||
planCmd := &cobra.Command{
|
planCmd := &cobra.Command{
|
||||||
Use: "list PHASE_NAME",
|
Use: "list PHASE_NAME",
|
||||||
Short: "List phases",
|
Short: "Airshipctl command to list phases",
|
||||||
Long: cmdLong[1:],
|
Long: cmdLong[1:],
|
||||||
Example: listExample,
|
Example: listExample,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
@ -67,22 +66,8 @@ func NewListCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
func addListFlags(options *phase.ListCommand, cmd *cobra.Command) {
|
func addListFlags(options *phase.ListCommand, cmd *cobra.Command) {
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
|
|
||||||
flags.StringVarP(
|
flags.StringVarP(&options.ClusterName, "cluster-name", "c", "", "filter documents by cluster name")
|
||||||
&options.ClusterName,
|
flags.StringVar(&options.PlanID.Name, "plan", "", "plan name of a plan")
|
||||||
"cluster-name",
|
flags.StringVarP(&options.OutputFormat, "output", "o", "table",
|
||||||
"c",
|
"output format. Supported formats are 'table' and 'yaml'")
|
||||||
"",
|
|
||||||
"filter documents by cluster name")
|
|
||||||
|
|
||||||
flags.StringVar(
|
|
||||||
&options.PlanID.Name,
|
|
||||||
"plan",
|
|
||||||
"",
|
|
||||||
"Plan name of a plan")
|
|
||||||
|
|
||||||
flags.StringVarP(
|
|
||||||
&options.OutputFormat,
|
|
||||||
"output", "o", "table", "'table' "+
|
|
||||||
"and 'yaml' are available "+
|
|
||||||
"output formats")
|
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
phaseLong = `
|
phaseLong = `
|
||||||
This command provides capabilities for interacting with phases,
|
Provides capabilities for interacting with phases, such as getting list of phases or applying a specific one.
|
||||||
such as getting list and applying specific one.
|
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -31,7 +30,7 @@ such as getting list and applying specific one.
|
|||||||
func NewPhaseCommand(cfgFactory config.Factory) *cobra.Command {
|
func NewPhaseCommand(cfgFactory config.Factory) *cobra.Command {
|
||||||
phaseRootCmd := &cobra.Command{
|
phaseRootCmd := &cobra.Command{
|
||||||
Use: "phase",
|
Use: "phase",
|
||||||
Short: "Manage phases",
|
Short: "Airshipctl command to manage phases",
|
||||||
Long: phaseLong[1:],
|
Long: phaseLong[1:],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,20 +22,22 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
renderLong = `
|
||||||
|
Render documents for a phase.
|
||||||
|
`
|
||||||
|
|
||||||
renderExample = `
|
renderExample = `
|
||||||
# Get all 'initinfra' phase documents containing labels "app=helm" and
|
Get all 'initinfra' phase documents containing labels "app=helm" and "service=tiller"
|
||||||
# "service=tiller"
|
# airshipctl phase render initinfra -l app=helm,service=tiller
|
||||||
airshipctl phase render initinfra -l app=helm,service=tiller
|
|
||||||
|
|
||||||
# Get all phase documents containing labels "app=helm" and "service=tiller"
|
Get all phase documents containing labels "app=helm" and "service=tiller" and kind 'Deployment'
|
||||||
# and kind 'Deployment'
|
# airshipctl phase render initinfra -l app=helm,service=tiller -k Deployment
|
||||||
airshipctl phase render initinfra -l app=helm,service=tiller -k Deployment
|
|
||||||
|
|
||||||
# Get all documents from config bundle
|
Get all documents from config bundle
|
||||||
airshipctl phase render --source config
|
# airshipctl phase render --source config
|
||||||
|
|
||||||
# Get all documents executor rendered documents for a phase
|
Get all documents executor rendered documents for a phase
|
||||||
airshipctl phase render initinfra --source executor
|
# airshipctl phase render initinfra --source executor
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -44,7 +46,8 @@ func NewRenderCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
filterOptions := &phase.RenderCommand{}
|
filterOptions := &phase.RenderCommand{}
|
||||||
renderCmd := &cobra.Command{
|
renderCmd := &cobra.Command{
|
||||||
Use: "render PHASE_NAME",
|
Use: "render PHASE_NAME",
|
||||||
Short: "Render phase documents from model",
|
Short: "Airshipctl command to render phase documents from model",
|
||||||
|
Long: renderLong,
|
||||||
Example: renderExample,
|
Example: renderExample,
|
||||||
Args: RenderArgs(filterOptions),
|
Args: RenderArgs(filterOptions),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
@ -60,48 +63,15 @@ func NewRenderCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
func addRenderFlags(filterOptions *phase.RenderCommand, cmd *cobra.Command) {
|
func addRenderFlags(filterOptions *phase.RenderCommand, cmd *cobra.Command) {
|
||||||
flags := cmd.Flags()
|
flags := cmd.Flags()
|
||||||
|
|
||||||
flags.StringVarP(
|
flags.StringVarP(&filterOptions.Label, "label", "l", "", "filter documents by Labels")
|
||||||
&filterOptions.Label,
|
flags.StringVarP(&filterOptions.Annotation, "annotation", "a", "", "filter documents by Annotations")
|
||||||
"label",
|
flags.StringVarP(&filterOptions.APIVersion, "apiversion", "g", "", "filter documents by API version")
|
||||||
"l",
|
flags.StringVarP(&filterOptions.Kind, "kind", "k", "", "filter documents by Kind")
|
||||||
"",
|
flags.StringVarP(&filterOptions.Source, "source", "s", phase.RenderSourcePhase,
|
||||||
"filter documents by Labels")
|
"phase: phase entrypoint will be rendered by kustomize, if entrypoint is not specified error will be returned\n"+
|
||||||
|
|
||||||
flags.StringVarP(
|
|
||||||
&filterOptions.Annotation,
|
|
||||||
"annotation",
|
|
||||||
"a",
|
|
||||||
"",
|
|
||||||
"filter documents by Annotations")
|
|
||||||
|
|
||||||
flags.StringVarP(
|
|
||||||
&filterOptions.APIVersion,
|
|
||||||
"apiversion",
|
|
||||||
"g",
|
|
||||||
"",
|
|
||||||
"filter documents by API version")
|
|
||||||
|
|
||||||
flags.StringVarP(
|
|
||||||
&filterOptions.Kind,
|
|
||||||
"kind",
|
|
||||||
"k",
|
|
||||||
"",
|
|
||||||
"filter documents by Kinds")
|
|
||||||
|
|
||||||
flags.StringVarP(
|
|
||||||
&filterOptions.Source,
|
|
||||||
"source",
|
|
||||||
"s",
|
|
||||||
phase.RenderSourcePhase,
|
|
||||||
"phase: phase entrypoint will be rendered by kustomize, if entrypoint is not specified "+
|
|
||||||
"error will be returned\n"+
|
|
||||||
"executor: rendering will be performed by executor if the phase\n"+
|
"executor: rendering will be performed by executor if the phase\n"+
|
||||||
"config: this will render bundle containing phase and executor documents")
|
"config: this will render bundle containing phase and executor documents")
|
||||||
flags.BoolVarP(
|
flags.BoolVarP(&filterOptions.FailOnDecryptionError, "decrypt", "d", false,
|
||||||
&filterOptions.FailOnDecryptionError,
|
|
||||||
"decrypt",
|
|
||||||
"d",
|
|
||||||
false,
|
|
||||||
"ensure that decryption of encrypted documents has finished successfully")
|
"ensure that decryption of encrypted documents has finished successfully")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,10 +24,13 @@ import (
|
|||||||
const (
|
const (
|
||||||
// TODO (kkalynovskyi) when different phase executors will be implemented, and their description is more clear,
|
// TODO (kkalynovskyi) when different phase executors will be implemented, and their description is more clear,
|
||||||
// add documentation here. also consider adding dynamic phase descriptions based on executors.
|
// add documentation here. also consider adding dynamic phase descriptions based on executors.
|
||||||
runLong = `Run specific life-cycle phase such as ephemeral-control-plane, target-initinfra etc...`
|
runLong = `
|
||||||
|
Run a phase such as controlplane-ephemeral, remotedirect-ephemeral, initinfra-ephemeral, etc...
|
||||||
|
To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
`
|
||||||
runExample = `
|
runExample = `
|
||||||
# Run initinfra phase
|
Run initinfra phase
|
||||||
airshipctl phase run ephemeral-control-plane
|
# airshipctl phase run ephemeral-control-plane
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -40,7 +43,7 @@ func NewRunCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
|
|
||||||
runCmd := &cobra.Command{
|
runCmd := &cobra.Command{
|
||||||
Use: "run PHASE_NAME",
|
Use: "run PHASE_NAME",
|
||||||
Short: "Run phase",
|
Short: "Airshipctl command to run phase",
|
||||||
Long: runLong,
|
Long: runLong,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Example: runExample,
|
Example: runExample,
|
||||||
@ -50,15 +53,7 @@ func NewRunCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
flags := runCmd.Flags()
|
flags := runCmd.Flags()
|
||||||
flags.BoolVar(
|
flags.BoolVar(&p.Options.DryRun, "dry-run", false, "simulate phase execution")
|
||||||
&p.Options.DryRun,
|
flags.DurationVar(&p.Options.Timeout, "wait-timeout", 0, "wait timeout")
|
||||||
"dry-run",
|
|
||||||
false,
|
|
||||||
"simulate phase execution")
|
|
||||||
flags.DurationVar(
|
|
||||||
&p.Options.Timeout,
|
|
||||||
"wait-timeout",
|
|
||||||
0,
|
|
||||||
"wait timeout")
|
|
||||||
return runCmd
|
return runCmd
|
||||||
}
|
}
|
||||||
|
@ -22,10 +22,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
statusLong = `Status of the specific life-cycle phase such as ephemeral-control-plane, target-initinfra etc...`
|
statusLong = `
|
||||||
|
Get the status of a phase such as ephemeral-control-plane, target-initinfra etc...
|
||||||
|
To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
`
|
||||||
statusExample = `
|
statusExample = `
|
||||||
#Status of initinfra phase
|
Status of initinfra phase
|
||||||
airshipctl phase status ephemeral-control-plane
|
# airshipctl phase status ephemeral-control-plane
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -37,8 +40,8 @@ func NewStatusCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
statusCmd := &cobra.Command{
|
statusCmd := &cobra.Command{
|
||||||
Use: "status",
|
Use: "status PHASE_NAME",
|
||||||
Short: "Status of the phase",
|
Short: "Airshipctl command to show status of the phase",
|
||||||
Long: statusLong,
|
Long: statusLong,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Example: statusExample,
|
Example: statusExample,
|
||||||
|
@ -1,30 +1,29 @@
|
|||||||
List life-cycle phases which were defined in document model by group.
|
List phases defined in site manifests by plan. Phases within a plan are
|
||||||
Phases within a group are executed sequentially. Multiple phase groups
|
executed sequentially. Multiple phase plans are executed in parallel.
|
||||||
are executed in parallel.
|
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
list PHASE_NAME [flags]
|
list PHASE_NAME [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
# List phases of phasePlan
|
List phases of phasePlan
|
||||||
airshipctl phase list --plan phasePlan
|
# airshipctl phase list --plan phasePlan
|
||||||
|
|
||||||
# To output the contents to table (default operation)
|
To output the contents in table format (default operation)
|
||||||
airshipctl phase list --plan phasePlan -o table
|
# airshipctl phase list --plan phasePlan -o table
|
||||||
|
|
||||||
# To output the contents to yaml
|
To output the contents in yaml format
|
||||||
airshipctl phase list --plan phasePlan -o yaml
|
# airshipctl phase list --plan phasePlan -o yaml
|
||||||
|
|
||||||
# List all phases
|
List all phases
|
||||||
airshipctl phase list
|
# airshipctl phase list
|
||||||
|
|
||||||
# List phases with clustername
|
List phases with clustername
|
||||||
airshipctl phase list --cluster-name clustername
|
# airshipctl phase list --cluster-name clustername
|
||||||
|
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-c, --cluster-name string filter documents by cluster name
|
-c, --cluster-name string filter documents by cluster name
|
||||||
-h, --help help for list
|
-h, --help help for list
|
||||||
-o, --output string 'table' and 'yaml' are available output formats (default "table")
|
-o, --output string output format. Supported formats are 'table' and 'yaml' (default "table")
|
||||||
--plan string Plan name of a plan
|
--plan string plan name of a plan
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
This command provides capabilities for interacting with phases,
|
Provides capabilities for interacting with phases, such as getting list of phases or applying a specific one.
|
||||||
such as getting list and applying specific one.
|
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
phase [command]
|
phase [command]
|
||||||
|
|
||||||
Available Commands:
|
Available Commands:
|
||||||
help Help about any command
|
help Help about any command
|
||||||
list List phases
|
list Airshipctl command to list phases
|
||||||
render Render phase documents from model
|
render Airshipctl command to render phase documents from model
|
||||||
run Run phase
|
run Airshipctl command to run phase
|
||||||
status Status of the phase
|
status Airshipctl command to show status of the phase
|
||||||
tree Tree view of kustomize entrypoints of phase
|
tree Airshipctl command to show tree view of kustomize entrypoints of phase
|
||||||
validate Assert that a phase is valid
|
validate Airshipctl command to validate phase and its documents
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-h, --help help for phase
|
-h, --help help for phase
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
Summarized tree view of the kustomize entrypoints of a specific phase
|
Get tree view of the kustomize entrypoints of a phase.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
tree PHASE_NAME [flags]
|
tree PHASE_NAME [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
# yaml explorer of a phase with relative path
|
yaml explorer of a phase with relative path
|
||||||
airshipctl phase tree /manifests/site/test-site/ephemeral/initinfra
|
# airshipctl phase tree /manifests/site/test-site/ephemeral/initinfra
|
||||||
|
|
||||||
#yaml explorer of a phase with phase name
|
yaml explorer of a phase with phase name
|
||||||
airshipctl phase tree initinfra-ephemeral
|
# airshipctl phase tree initinfra-ephemeral
|
||||||
|
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
@ -1,23 +1,22 @@
|
|||||||
Render phase documents from model
|
|
||||||
|
Render documents for a phase.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
render PHASE_NAME [flags]
|
render PHASE_NAME [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
# Get all 'initinfra' phase documents containing labels "app=helm" and
|
Get all 'initinfra' phase documents containing labels "app=helm" and "service=tiller"
|
||||||
# "service=tiller"
|
# airshipctl phase render initinfra -l app=helm,service=tiller
|
||||||
airshipctl phase render initinfra -l app=helm,service=tiller
|
|
||||||
|
|
||||||
# Get all phase documents containing labels "app=helm" and "service=tiller"
|
Get all phase documents containing labels "app=helm" and "service=tiller" and kind 'Deployment'
|
||||||
# and kind 'Deployment'
|
# airshipctl phase render initinfra -l app=helm,service=tiller -k Deployment
|
||||||
airshipctl phase render initinfra -l app=helm,service=tiller -k Deployment
|
|
||||||
|
|
||||||
# Get all documents from config bundle
|
Get all documents from config bundle
|
||||||
airshipctl phase render --source config
|
# airshipctl phase render --source config
|
||||||
|
|
||||||
# Get all documents executor rendered documents for a phase
|
Get all documents executor rendered documents for a phase
|
||||||
airshipctl phase render initinfra --source executor
|
# airshipctl phase render initinfra --source executor
|
||||||
|
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
@ -25,7 +24,7 @@ Flags:
|
|||||||
-g, --apiversion string filter documents by API version
|
-g, --apiversion string filter documents by API version
|
||||||
-d, --decrypt ensure that decryption of encrypted documents has finished successfully
|
-d, --decrypt ensure that decryption of encrypted documents has finished successfully
|
||||||
-h, --help help for render
|
-h, --help help for render
|
||||||
-k, --kind string filter documents by Kinds
|
-k, --kind string filter documents by Kind
|
||||||
-l, --label string filter documents by Labels
|
-l, --label string filter documents by Labels
|
||||||
-s, --source string phase: phase entrypoint will be rendered by kustomize, if entrypoint is not specified error will be returned
|
-s, --source string phase: phase entrypoint will be rendered by kustomize, if entrypoint is not specified error will be returned
|
||||||
executor: rendering will be performed by executor if the phase
|
executor: rendering will be performed by executor if the phase
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
Run specific life-cycle phase such as ephemeral-control-plane, target-initinfra etc...
|
|
||||||
|
Run a phase such as controlplane-ephemeral, remotedirect-ephemeral, initinfra-ephemeral, etc...
|
||||||
|
To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
run PHASE_NAME [flags]
|
run PHASE_NAME [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
# Run initinfra phase
|
Run initinfra phase
|
||||||
airshipctl phase run ephemeral-control-plane
|
# airshipctl phase run ephemeral-control-plane
|
||||||
|
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
Status of the specific life-cycle phase such as ephemeral-control-plane, target-initinfra etc...
|
|
||||||
|
Get the status of a phase such as ephemeral-control-plane, target-initinfra etc...
|
||||||
|
To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
status [flags]
|
status PHASE_NAME [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
#Status of initinfra phase
|
Status of initinfra phase
|
||||||
airshipctl phase status ephemeral-control-plane
|
# airshipctl phase status ephemeral-control-plane
|
||||||
|
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
Command which would validate that the phase contains the required documents to run the phase.
|
|
||||||
|
Validates phase and its documents. To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
validate PHASE_NAME [flags]
|
validate PHASE_NAME [flags]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
# validate initinfra phase
|
To validate initinfra phase
|
||||||
airshipctl phase validate initinfra
|
# airshipctl phase validate initinfra
|
||||||
|
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
@ -24,14 +24,15 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
treeLong = `
|
treeLong = `
|
||||||
Summarized tree view of the kustomize entrypoints of a specific phase`
|
Get tree view of the kustomize entrypoints of a phase.
|
||||||
|
`
|
||||||
|
|
||||||
treeExample = `
|
treeExample = `
|
||||||
# yaml explorer of a phase with relative path
|
yaml explorer of a phase with relative path
|
||||||
airshipctl phase tree /manifests/site/test-site/ephemeral/initinfra
|
# airshipctl phase tree /manifests/site/test-site/ephemeral/initinfra
|
||||||
|
|
||||||
#yaml explorer of a phase with phase name
|
yaml explorer of a phase with phase name
|
||||||
airshipctl phase tree initinfra-ephemeral
|
# airshipctl phase tree initinfra-ephemeral
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -39,7 +40,7 @@ airshipctl phase tree initinfra-ephemeral
|
|||||||
func NewTreeCommand(cfgFactory config.Factory) *cobra.Command {
|
func NewTreeCommand(cfgFactory config.Factory) *cobra.Command {
|
||||||
treeCmd := &cobra.Command{
|
treeCmd := &cobra.Command{
|
||||||
Use: "tree PHASE_NAME",
|
Use: "tree PHASE_NAME",
|
||||||
Short: "Tree view of kustomize entrypoints of phase",
|
Short: "Airshipctl command to show tree view of kustomize entrypoints of phase",
|
||||||
Long: treeLong[1:],
|
Long: treeLong[1:],
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Example: treeExample,
|
Example: treeExample,
|
||||||
|
@ -22,13 +22,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
validLong = `Command which would validate that the phase contains ` +
|
validLong = `
|
||||||
`the required documents to run the phase.
|
Validates phase and its documents. To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
`
|
`
|
||||||
|
|
||||||
validExample = `
|
validExample = `
|
||||||
# validate initinfra phase
|
To validate initinfra phase
|
||||||
airshipctl phase validate initinfra
|
# airshipctl phase validate initinfra
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ func NewValidateCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
}
|
}
|
||||||
validCmd := &cobra.Command{
|
validCmd := &cobra.Command{
|
||||||
Use: "validate PHASE_NAME",
|
Use: "validate PHASE_NAME",
|
||||||
Short: "Assert that a phase is valid",
|
Short: "Airshipctl command to validate phase and its documents",
|
||||||
Long: validLong,
|
Long: validLong,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Example: validExample,
|
Example: validExample,
|
||||||
|
@ -12,7 +12,7 @@ Available Commands:
|
|||||||
config Airshipctl command to manage airshipctl config file
|
config Airshipctl command to manage airshipctl config file
|
||||||
document Manage deployment documents
|
document Manage deployment documents
|
||||||
help Help about any command
|
help Help about any command
|
||||||
phase Manage phases
|
phase Airshipctl command to manage phases
|
||||||
plan Manage plans
|
plan Manage plans
|
||||||
secret Manage secrets
|
secret Manage secrets
|
||||||
version Show the version number of airshipctl
|
version Show the version number of airshipctl
|
||||||
|
@ -24,7 +24,7 @@ A unified entrypoint to various airship components
|
|||||||
* [airshipctl completion](airshipctl_completion.md) - Generate completion script for the specified shell (bash or zsh)
|
* [airshipctl completion](airshipctl_completion.md) - 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) - Manage deployment documents
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
* [airshipctl plan](airshipctl_plan.md) - Manage plans
|
* [airshipctl plan](airshipctl_plan.md) - Manage plans
|
||||||
* [airshipctl secret](airshipctl_secret.md) - Manage secrets
|
* [airshipctl secret](airshipctl_secret.md) - Manage secrets
|
||||||
* [airshipctl version](airshipctl_version.md) - Show the version number of airshipctl
|
* [airshipctl version](airshipctl_version.md) - Show the version number of airshipctl
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
## airshipctl phase
|
## airshipctl phase
|
||||||
|
|
||||||
Manage phases
|
Airshipctl command to manage phases
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
This command provides capabilities for interacting with phases,
|
Provides capabilities for interacting with phases, such as getting list of phases or applying a specific one.
|
||||||
such as getting list and applying specific one.
|
|
||||||
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
@ -24,10 +23,10 @@ such as getting list and applying specific one.
|
|||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components
|
* [airshipctl](airshipctl.md) - A unified entrypoint to various airship components
|
||||||
* [airshipctl phase list](airshipctl_phase_list.md) - List phases
|
* [airshipctl phase list](airshipctl_phase_list.md) - Airshipctl command to list phases
|
||||||
* [airshipctl phase render](airshipctl_phase_render.md) - 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) - Run phase
|
* [airshipctl phase run](airshipctl_phase_run.md) - Airshipctl command to run phase
|
||||||
* [airshipctl phase status](airshipctl_phase_status.md) - Status of the phase
|
* [airshipctl phase status](airshipctl_phase_status.md) - Airshipctl command to show status of the phase
|
||||||
* [airshipctl phase tree](airshipctl_phase_tree.md) - Tree view of kustomize entrypoints of phase
|
* [airshipctl phase tree](airshipctl_phase_tree.md) - Airshipctl command to show tree view of kustomize entrypoints of phase
|
||||||
* [airshipctl phase validate](airshipctl_phase_validate.md) - Assert that a phase is valid
|
* [airshipctl phase validate](airshipctl_phase_validate.md) - Airshipctl command to validate phase and its documents
|
||||||
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
## airshipctl phase list
|
## airshipctl phase list
|
||||||
|
|
||||||
List phases
|
Airshipctl command to list phases
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
List life-cycle phases which were defined in document model by group.
|
List phases defined in site manifests by plan. Phases within a plan are
|
||||||
Phases within a group are executed sequentially. Multiple phase groups
|
executed sequentially. Multiple phase plans are executed in parallel.
|
||||||
are executed in parallel.
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -17,20 +16,20 @@ airshipctl phase list PHASE_NAME [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# List phases of phasePlan
|
List phases of phasePlan
|
||||||
airshipctl phase list --plan phasePlan
|
# airshipctl phase list --plan phasePlan
|
||||||
|
|
||||||
# To output the contents to table (default operation)
|
To output the contents in table format (default operation)
|
||||||
airshipctl phase list --plan phasePlan -o table
|
# airshipctl phase list --plan phasePlan -o table
|
||||||
|
|
||||||
# To output the contents to yaml
|
To output the contents in yaml format
|
||||||
airshipctl phase list --plan phasePlan -o yaml
|
# airshipctl phase list --plan phasePlan -o yaml
|
||||||
|
|
||||||
# List all phases
|
List all phases
|
||||||
airshipctl phase list
|
# airshipctl phase list
|
||||||
|
|
||||||
# List phases with clustername
|
List phases with clustername
|
||||||
airshipctl phase list --cluster-name clustername
|
# airshipctl phase list --cluster-name clustername
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,8 +38,8 @@ airshipctl phase list --cluster-name clustername
|
|||||||
```
|
```
|
||||||
-c, --cluster-name string filter documents by cluster name
|
-c, --cluster-name string filter documents by cluster name
|
||||||
-h, --help help for list
|
-h, --help help for list
|
||||||
-o, --output string 'table' and 'yaml' are available output formats (default "table")
|
-o, --output string output format. Supported formats are 'table' and 'yaml' (default "table")
|
||||||
--plan string Plan name of a plan
|
--plan string plan name of a plan
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options inherited from parent commands
|
### Options inherited from parent commands
|
||||||
@ -52,5 +51,5 @@ airshipctl phase list --cluster-name clustername
|
|||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
|
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
## airshipctl phase render
|
## airshipctl phase render
|
||||||
|
|
||||||
Render phase documents from model
|
Airshipctl command to render phase documents from model
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Render phase documents from model
|
|
||||||
|
Render documents for a phase.
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
airshipctl phase render PHASE_NAME [flags]
|
airshipctl phase render PHASE_NAME [flags]
|
||||||
@ -14,19 +16,17 @@ airshipctl phase render PHASE_NAME [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Get all 'initinfra' phase documents containing labels "app=helm" and
|
Get all 'initinfra' phase documents containing labels "app=helm" and "service=tiller"
|
||||||
# "service=tiller"
|
# airshipctl phase render initinfra -l app=helm,service=tiller
|
||||||
airshipctl phase render initinfra -l app=helm,service=tiller
|
|
||||||
|
|
||||||
# Get all phase documents containing labels "app=helm" and "service=tiller"
|
Get all phase documents containing labels "app=helm" and "service=tiller" and kind 'Deployment'
|
||||||
# and kind 'Deployment'
|
# airshipctl phase render initinfra -l app=helm,service=tiller -k Deployment
|
||||||
airshipctl phase render initinfra -l app=helm,service=tiller -k Deployment
|
|
||||||
|
|
||||||
# Get all documents from config bundle
|
Get all documents from config bundle
|
||||||
airshipctl phase render --source config
|
# airshipctl phase render --source config
|
||||||
|
|
||||||
# Get all documents executor rendered documents for a phase
|
Get all documents executor rendered documents for a phase
|
||||||
airshipctl phase render initinfra --source executor
|
# airshipctl phase render initinfra --source executor
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ airshipctl phase render initinfra --source executor
|
|||||||
-g, --apiversion string filter documents by API version
|
-g, --apiversion string filter documents by API version
|
||||||
-d, --decrypt ensure that decryption of encrypted documents has finished successfully
|
-d, --decrypt ensure that decryption of encrypted documents has finished successfully
|
||||||
-h, --help help for render
|
-h, --help help for render
|
||||||
-k, --kind string filter documents by Kinds
|
-k, --kind string filter documents by Kind
|
||||||
-l, --label string filter documents by Labels
|
-l, --label string filter documents by Labels
|
||||||
-s, --source string phase: phase entrypoint will be rendered by kustomize, if entrypoint is not specified error will be returned
|
-s, --source string phase: phase entrypoint will be rendered by kustomize, if entrypoint is not specified error will be returned
|
||||||
executor: rendering will be performed by executor if the phase
|
executor: rendering will be performed by executor if the phase
|
||||||
@ -53,5 +53,5 @@ airshipctl phase render initinfra --source executor
|
|||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
|
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
## airshipctl phase run
|
## airshipctl phase run
|
||||||
|
|
||||||
Run phase
|
Airshipctl command to run phase
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Run specific life-cycle phase such as ephemeral-control-plane, target-initinfra etc...
|
|
||||||
|
Run a phase such as controlplane-ephemeral, remotedirect-ephemeral, initinfra-ephemeral, etc...
|
||||||
|
To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
airshipctl phase run PHASE_NAME [flags]
|
airshipctl phase run PHASE_NAME [flags]
|
||||||
@ -14,8 +17,8 @@ airshipctl phase run PHASE_NAME [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Run initinfra phase
|
Run initinfra phase
|
||||||
airshipctl phase run ephemeral-control-plane
|
# airshipctl phase run ephemeral-control-plane
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -36,5 +39,5 @@ airshipctl phase run ephemeral-control-plane
|
|||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
|
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
## airshipctl phase status
|
## airshipctl phase status
|
||||||
|
|
||||||
Status of the phase
|
Airshipctl command to show status of the phase
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Status of the specific life-cycle phase such as ephemeral-control-plane, target-initinfra etc...
|
|
||||||
|
Get the status of a phase such as ephemeral-control-plane, target-initinfra etc...
|
||||||
|
To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
airshipctl phase status [flags]
|
airshipctl phase status PHASE_NAME [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#Status of initinfra phase
|
Status of initinfra phase
|
||||||
airshipctl phase status ephemeral-control-plane
|
# airshipctl phase status ephemeral-control-plane
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -34,5 +37,5 @@ airshipctl phase status ephemeral-control-plane
|
|||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
## airshipctl phase tree
|
## airshipctl phase tree
|
||||||
|
|
||||||
Tree view of kustomize entrypoints of phase
|
Airshipctl command to show tree view of kustomize entrypoints of phase
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Summarized tree view of the kustomize entrypoints of a specific phase
|
Get tree view of the kustomize entrypoints of a phase.
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
airshipctl phase tree PHASE_NAME [flags]
|
airshipctl phase tree PHASE_NAME [flags]
|
||||||
@ -14,11 +15,11 @@ airshipctl phase tree PHASE_NAME [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# yaml explorer of a phase with relative path
|
yaml explorer of a phase with relative path
|
||||||
airshipctl phase tree /manifests/site/test-site/ephemeral/initinfra
|
# airshipctl phase tree /manifests/site/test-site/ephemeral/initinfra
|
||||||
|
|
||||||
#yaml explorer of a phase with phase name
|
yaml explorer of a phase with phase name
|
||||||
airshipctl phase tree initinfra-ephemeral
|
# airshipctl phase tree initinfra-ephemeral
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -37,5 +38,5 @@ airshipctl phase tree initinfra-ephemeral
|
|||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
## airshipctl phase validate
|
## airshipctl phase validate
|
||||||
|
|
||||||
Assert that a phase is valid
|
Airshipctl command to validate phase and its documents
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Command which would validate that the phase contains the required documents to run the phase.
|
|
||||||
|
Validates phase and its documents. To list the phases associated with a site, run 'airshipctl phase list'.
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -15,8 +16,8 @@ airshipctl phase validate PHASE_NAME [flags]
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# validate initinfra phase
|
To validate initinfra phase
|
||||||
airshipctl phase validate initinfra
|
# airshipctl phase validate initinfra
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ airshipctl phase validate initinfra
|
|||||||
|
|
||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
|
|
||||||
* [airshipctl phase](airshipctl_phase.md) - Manage phases
|
* [airshipctl phase](airshipctl_phase.md) - Airshipctl command to manage phases
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user