config

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	// (Required) Health check plugin type.
	Type string `mapstructure:"type"`

	// (Required) Customized health check parameters defined by individual health check plugin.
	Params map[string]interface{} `mapstructure:"params"`
}

type Config

type Config struct {
	// (Optional) Emit an event without repairing nodes. Default: false
	DryRun bool `mapstructure:"dry-run"`

	// (Required) Cluster identifier
	ClusterName string `mapstructure:"cluster-name"`

	// (Optional) Cloud provider name. Default: openstack
	CloudProvider string `mapstructure:"cloud-provider"`

	// (Optional) Interval of the nodes monitoring check. Default: 30s
	MonitorInterval time.Duration `mapstructure:"monitor-interval"`

	// (Optional) If master nodes monitoring is enabled. Default: true
	MasterMonitorEnabled bool `mapstructure:"master-monitor-enabled"`

	// (Optional) If worker nodes monitoring is enabled. Default: true
	WorkerMonitorEnabled bool `mapstructure:"worker-monitor-enabled"`

	// (Optional) Kubernetes related configuration.
	Kubernetes kubeConfig `mapstructure:"kubernetes"`

	// (Required) OpenStack related configuration.
	OpenStack openstack_provider.AuthOpts `mapstructure:"openstack"`

	// (Optional) Healthcheck configuration for master and worker.
	HealthCheck healthCheck `mapstructure:"healthcheck"`

	// (Optional) Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. Default: true
	LeaderElect bool `mapstructure:"leader-elect"`

	// (Optional) How long after new node added that the node will be checked for health status. Default: 10m
	CheckDelayAfterAdd time.Duration `mapstructure:"check-delay-after-add"`
}

Config struct contains ingress controller configuration

func NewConfig

func NewConfig() Config

NewConfig defines the default values for Config

Jump to

Keyboard shortcuts

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