config

package
v0.0.0-...-6526340 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CephConfig

type CephConfig struct {
	ConfigFile           string
	KeryingFile          string
	MdsSessionListPeriod time.Duration
	CephFSRootPath       string
	CephFSRootMountPath  string
}

CephConfig is a set of configurations used to manage ceph related volumes: CephRBD and CephFS.

type Config

type Config struct {
	WebhookConfig
	K8sConfig
	VolumeConfig
	Worker                  int
	CreateCRD               bool
	LeaderElection          bool
	LeaderElectionNamespace string
}

Config contains all configurations.

func (*Config) AddFlags

func (c *Config) AddFlags()

AddFlags adds all configurations to the global flags.

type K8sConfig

type K8sConfig struct {
	Master       string
	KubeConfig   string
	ResyncPeriod time.Duration
}

K8sConfig is a set of configurations used to create kubernetes clients and informers.

func (*K8sConfig) AddFlags

func (c *K8sConfig) AddFlags()

AddFlags adds Kubernetes related configurations to the global flags.

type VolumeConfig

type VolumeConfig struct {
	Types string
	CephConfig
}

VolumeConfig is a set of configurations about concrete volumes.

func (*VolumeConfig) AddFlags

func (c *VolumeConfig) AddFlags()

AddFlags adds volume related configurations to the global flags.

type WebhookConfig

type WebhookConfig struct {
	Name              string
	CertFile          string
	KeyFile           string
	CAFile            string
	MutatingPath      string
	ValidatingPath    string
	URL               string
	ServiceName       string
	ServiceNamespace  string
	WorkloadAdmission bool
}

WebhookConfig is a set of configurations of Webhook.

func (*WebhookConfig) AddFlags

func (c *WebhookConfig) AddFlags()

AddFlags adds webhook related configurations to the global flags.

func (*WebhookConfig) TLSConfig

func (c *WebhookConfig) TLSConfig() *tls.Config

TLSConfig returns the TLS config.

Jump to

Keyboard shortcuts

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