app

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedConfig

type CompletedConfig struct {
	// contains filtered or unexported fields
}

CompletedConfig same as Config, just to swap private object.

var (
	Conf *CompletedConfig
)

type Config

type Config struct {

	// the general kube client
	Client *clientset.Clientset

	// the client only used for leader election
	LeaderElectionClient *clientset.Clientset

	// the rest config for the master
	Kubeconfig *restclient.Config

	// the event sink
	EventRecorder record.EventRecorder

	// ClientBuilder will provide a client for this controller to use
	ClientBuilder controller.ControllerClientBuilder

	// VersionedClient will provide a client for informers
	VersionedClient clientset.Interface

	// SharedInformers gives access to informers for the controller.
	SharedInformers informers.SharedInformerFactory

	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
}

Config is the main context object for the cloud controller manager.

func (*Config) Complete

func (c *Config) Complete() *CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

Jump to

Keyboard shortcuts

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