options

package
v0.0.0-...-1142a2b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CloudControllerManagerUserAgent is the userAgent name when starting cloud-controller managers.
	CloudControllerManagerUserAgent = "polar-controller-manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PolarStackControllerManagerOptions

type PolarStackControllerManagerOptions struct {
	Master     string
	Kubeconfig string

	// NodeStatusUpdateFrequency is the frequency at which the controller updates nodes' status
	NodeStatusUpdateFrequency metav1.Duration

	CurrentNodeName            string
	DbclusterLogDir            string
	InsFolderOverdueDays       int32
	DevelopMode                bool
	Port                       int32
	EventsEnableUpload         bool   // 是否开启事件上报
	EventsUploadUrl            string // 事件上报地址
	EventsUploadTimeout        int32  // 事件上报超时 单位 秒
	JobEnableDelFIP            bool   // 是否开启 检查任务中 对无对应服务的IP删除
	JobEnableAddFIP            bool   // 是否开启 检查任务中 对缺失IP的添加
	PolarStackDaemonPodLabels  string // polar stack daemon 的 labels 用于准确查找出 polarstack-daemon 的 Pod 以便调用相关 API
	CoreVersionConfigMapLabel  string // core version configMap 的相关 labels
	MpdControllerConfigMapName string // mpd controller configMap Name (polardb4mpd-controller)
	ServiceOwnerDbCluster      string // service owner db cluster
}

PolarStackControllerManagerOptions is the main context object for the controller manager.

func NewPolarStackControllerManagerOptions

func NewPolarStackControllerManagerOptions() (*PolarStackControllerManagerOptions, error)

func (*PolarStackControllerManagerOptions) ApplyTo

func (o *PolarStackControllerManagerOptions) ApplyTo(c *config.Config, userAgent string) error

ApplyTo fills up cloud controller manager config with options.

func (*PolarStackControllerManagerOptions) Config

Config return a cloud controller manager config objective

func (*PolarStackControllerManagerOptions) Flags

Flags returns flags for a specific APIServer by section name

Jump to

Keyboard shortcuts

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