cmds

package
v0.3.10-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 13 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"`
	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"`
}

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"`
	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"`
	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"`
}

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