cmds

package
v0.1.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *client.Getter
	Debug  command.DebugConfig
)

Functions

func App

func App() *cobra.Command

func NewAgentConfig

func NewAgentConfig() *cobra.Command

func NewAgentToken

func NewAgentToken() *cobra.Command

func NewApply

func NewApply() *cobra.Command

func NewInstall

func NewInstall() *cobra.Command

func NewManager

func NewManager() *cobra.Command

func NewTest

func NewTest() *cobra.Command

Types

type AgentConfig

type AgentConfig struct {
	SystemNamespace string            `usage:"System namespace of the manager" default:"fleet-system"`
	Labels          map[string]string `usage:"Labels to apply to the new cluster on register" short:"l"`
}

func (*AgentConfig) Run

func (a *AgentConfig) Run(cmd *cobra.Command, args []string) error

type AgentToken

type AgentToken struct {
	SystemNamespace string `usage:"System namespace of the manager" default:"fleet-system"`
	TTL             string `usage:"How long the generated registration token is valid, 0 means forever" default:"1440m" short:"t"`
	CAFile          string `usage:"File containing optional CA cert for fleet management server" name:"ca-file" short:"c"`
	NoCA            bool   `json:"Use no custom CA for a fleet manager that is signed by a well known CA with a proper CN."`
	ServerURL       string `usage:"The full URL to the fleet management server"`
	Group           string `usage:"Cluster group to generate config for" default:"default" short:"g"`
}

func (*AgentToken) Run

func (a *AgentToken) Run(cmd *cobra.Command, args []string) error

type Apply

type Apply struct {
	BundleInputArgs
	OutputArgsNoDefault
	File     string `usage:"Read full bundle contents from file" short:"f"`
	Compress bool   `usage:"Force all resources to be compress" short:"c"`
}

func (*Apply) Run

func (a *Apply) Run(cmd *cobra.Command, args []string) error

type BundleInputArgs

type BundleInputArgs struct {
	BundleFile string `usage:"Location of the bundle.yaml" short:"b"`
}

type Flt

type Flt struct {
	Namespace  string `usage:"namespace" env:"NAMESPACE" default:"default" short:"n" env:"NAMESPACE"`
	Kubeconfig string `usage:"kubeconfig for authentication" short:"k"`
}

func (*Flt) PersistentPre

func (r *Flt) PersistentPre(cmd *cobra.Command, args []string) error

func (*Flt) Run

func (r *Flt) Run(cmd *cobra.Command, args []string) error

type Manager

type Manager struct {
	SystemNamespace string `usage:"Namespace that will be use in manager and agent cluster" default:"fleet-system"`
	ManagerImage    string `usage:"Image to use for manager"`
	AgentImage      string `usage:"Image to use for all agents"`
	CRDsOnly        bool   `usage:"Output CustomResourceDefinitions only"`
}

func (*Manager) Run

func (a *Manager) Run(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"`
	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"`
	PrintBundle bool              `usage:"Don't run match and just output the generated bundle"`
}

func (*Test) Run

func (m *Test) Run(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL