config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixKlogFlags

func FixKlogFlags()

FixKlogFlags copy flags between glog and klog

Types

type Options

type Options struct {
	// Options contains some useful options
	manager.Options

	// MasterURL is the url of kubernetes apiserver
	MasterURL string
	// KubeConfig is the path for kubeconfig file
	KubeConfig string
	// InstallCRD determine if we should install the HelmRequest CRD in the controller
	InstallCRD bool
	// ClusterNamespace is the namespace where all the Cluster resources lives in
	ClusterNamespace string

	// ChartRepoNamespace is the namespace where all the ChartRepo resources lives in
	ChartRepoNamespace string

	// 	InstallStableRepo install the default glob al stable repo
	InstallStableRepo bool

	// EnableWebhook decide if we should enable the validating/mutating webhook
	// it's not worth to support webhook anymore
	EnableWebhook bool

	// GlobalClusterName it the cluster'name who represents the global cluster, which is also the
	// cluster captain lives in. We need this variable because we want to support dependency of a
	// HelmRequest who's clusterName="", which should means the current cluster. Currently this
	// seems the only options, we can't compare them through endpoint or token ( not equal when captain
	// run in-cluster mode). Hope there will be a better way in the feature.
	GlobalClusterName string

	// PrintVersion print the version and exist
	PrintVersion bool
}

Options contains all the options for captain

func (*Options) BindFlags

func (opt *Options) BindFlags()

BindFlags init flags and options

Jump to

Keyboard shortcuts

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