gitops

package
v0.10.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(zo *zap.Options) *cobra.Command

Types

type GitOperator

type GitOperator struct {
	command.DebugConfig
	Kubeconfig           string `usage:"Kubeconfig file"`
	Namespace            string `usage:"namespace to watch" default:"cattle-fleet-system" env:"NAMESPACE"`
	MetricsAddr          string `name:"metrics-bind-address" default:":8081" usage:"The address the metric endpoint binds to."`
	DisableMetrics       bool   `name:"disable-metrics" usage:"Disable the metrics server."`
	EnableLeaderElection bool   `` /* 160-byte string literal not displayed */
	Image                string `name:"gitjob-image" default:"rancher/fleet:dev" usage:"The gitjob image that will be used in the generated job."`
	Listen               string `default:":8080" usage:"The port the webhook listens."`
	ShardID              string `usage:"only manage resources labeled with a specific shard ID" name:"shard-id"`
	ShardNodeSelector    string `usage:"node selector to apply to jobs based on the shard ID, if any" name:"shard-node-selector"`
}

func (*GitOperator) HelpFunc

func (c *GitOperator) HelpFunc(cmd *cobra.Command, strings []string)

HelpFunc hides the global flag from the help output

func (*GitOperator) PersistentPre

func (g *GitOperator) PersistentPre(_ *cobra.Command, _ []string) error

func (*GitOperator) Run

func (g *GitOperator) Run(cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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