Documentation
¶
Overview ¶
Package cli sets up the CLI commands for the fleet apply binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Client Getter
SystemNamespace string
Debug command.DebugConfig
)
Functions ¶
func NewCleanUp ¶
func NewCleanUp() *cobra.Command
Types ¶
type Apply ¶
type Apply struct {
BundleInputArgs
OutputArgsNoDefault
Label map[string]string `usage:"Labels to apply to created bundles" short:"l"`
TargetsFile string `usage:"Addition source of targets and restrictions to be append"`
Compress bool `usage:"Force all resources to be compress" short:"c"`
ServiceAccount string `usage:"Service account to assign to bundle created" short:"a"`
SyncGeneration int `usage:"Generation number used to force sync the deployment"`
TargetNamespace string `usage:"Ensure this bundle goes to this target namespace"`
Paused bool `usage:"Create bundles in a paused state"`
Commit string `usage:"Commit to assign to the bundle" env:"COMMIT"`
Username string `usage:"Basic auth username for helm repo" env:"HELM_USERNAME"`
PasswordFile string `usage:"Path of file containing basic auth password for helm repo"`
CACertsFile string `usage:"Path of custom cacerts for helm repo" name:"cacerts-file"`
SSHPrivateKeyFile string `usage:"Path of ssh-private-key for helm repo" name:"ssh-privatekey-file"`
HelmRepoURLRegex string `` /* 166-byte string literal not displayed */
KeepResources bool `usage:"Keep resources created after the GitRepo or Bundle is deleted" name:"keep-resources"`
HelmCredentialsByPathFile string `usage:"Path of file containing helm credentials for paths" name:"helm-credentials-by-path-file"`
CorrectDrift bool `usage:"Rollback any change made from outside of Fleet" name:"correct-drift"`
CorrectDriftForce bool `usage:"Use --force when correcting drift. Resources can be deleted and recreated" name:"correct-drift-force"`
CorrectDriftKeepFailHistory bool `usage:"Keep helm history for failed rollbacks" name:"correct-drift-keep-fail-history"`
}
type BundleInputArgs ¶
type BundleInputArgs struct {
File string `usage:"Location of the fleet.yaml" short:"f"`
BundleFile string `usage:"Location of the raw Bundle resource yaml" short:"b"`
}
type CleanUp ¶
type CleanUp struct {
Min string `usage:"Minimum delay between deletes (default: 10ms)" name:"min"`
Max string `usage:"Maximum delay between deletes (default: 5s)" name:"max"`
Factor string `usage:"Factor to increase delay between deletes (default: 1.1)" name:"factor"`
}
type Fleet ¶
type Fleet struct {
SystemNamespace string `usage:"System namespace of the controller" default:"cattle-fleet-system"`
Namespace string `usage:"namespace" env:"NAMESPACE" default:"fleet-local" short:"n"`
Kubeconfig string `usage:"kubeconfig for authentication" short:"k"`
Context string `usage:"kubeconfig context for authentication"`
}
func (*Fleet) PersistentPre ¶
func (r *Fleet) PersistentPre(cmd *cobra.Command, args []string) error
type OutputArgs ¶
type OutputArgs struct {
Output string `usage:"Output contents to file or - for stdout" short:"o" default:"-"`
}
type OutputArgsNoDefault ¶
type OutputArgsNoDefault struct {
Output string `usage:"Output contents to file or - for stdout" short:"o"`
}
type Test ¶
type Test struct {
BundleInputArgs
Quiet bool `usage:"Just print the match and don't print the resources" short:"q"`
Group string `usage:"Cluster group to match against" short:"g"`
Name string `usage:"Cluster name to match against" short:"N"`
Label map[string]string `usage:"Cluster labels to match against" short:"l"`
GroupLabel map[string]string `usage:"Cluster group labels to match against" short:"L"`
Target string `usage:"Explicit target to match" short:"t"`
}
Directories
¶
Path | Synopsis |
---|---|
Package apply creates bundle resources from gitrepo resources.
|
Package apply creates bundle resources from gitrepo resources. |
Package match is used to test matching a bundles to a target on the command line.
|
Package match is used to test matching a bundles to a target on the command line. |
Package writer provides a writer that can be used to write to a file or stdout.
|
Package writer provides a writer that can be used to write to a file or stdout. |
Click to show internal directories.
Click to hide internal directories.