cmds

package
v0.3.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func App

func App() *cobra.Command

func NewApply

func NewApply() *cobra.Command

func NewTest

func NewTest() *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"`
	SyncBefore     string            `usage:"Force sync all deployments before this RFC3339 time"`
}

func (*Apply) Run

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

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 Fleet added in v0.3.0

type Fleet struct {
	SystemNamespace string `usage:"System namespace of the controller" default:"fleet-system"`
	Namespace       string `usage:"namespace" env:"NAMESPACE" default:"fleet-local" short:"n" env:"NAMESPACE"`
	Kubeconfig      string `usage:"kubeconfig for authentication" short:"k"`
	Context         string `usage:"kubeconfig context for authentication"`
}

func (*Fleet) PersistentPre added in v0.3.0

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

func (*Fleet) Run added in v0.3.0

func (r *Fleet) 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