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 ¶
func (o *PolarStackControllerManagerOptions) Config() (*config.Config, error)
Config return a cloud controller manager config objective
func (*PolarStackControllerManagerOptions) Flags ¶
func (o *PolarStackControllerManagerOptions) Flags() cliflag.NamedFlagSets
Flags returns flags for a specific APIServer by section name
Click to show internal directories.
Click to hide internal directories.