options

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLabelPrefix         string = "azure.tags"
	DefaultTagPrefix           string = "node.labels"
	DefaultResourceGroupFilter string = "none"
	DefaultMinSyncPeriod       string = "5m"
	UNSET                      string = "unset"
)

Variables

This section is empty.

Functions

func ConfigMapNamespacedName

func ConfigMapNamespacedName() types.NamespacedName

func GetConfigMapFromConfigOptions

func GetConfigMapFromConfigOptions(configOptions *ConfigOptions) (corev1.ConfigMap, error)

ConfigOptions -> ConfigMap

func NewDefaultConfig

func NewDefaultConfig() (*corev1.ConfigMap, error)

Types

type ConfigOptions

type ConfigOptions struct {
	SyncDirection       SyncDirection  `json:"syncDirection"`
	LabelPrefix         string         `json:"labelPrefix"`
	TagPrefix           string         `json:"tagPrefix"`
	ConflictPolicy      ConflictPolicy `json:"conflictPolicy"`
	ResourceGroupFilter string         `json:"resourceGroupFilter"`
	MinSyncPeriod       string         `json:"minSyncPeriod"`
}

func DefaultConfigOptions

func DefaultConfigOptions() ConfigOptions

func LoadConfigOptionsFromConfigMap

func LoadConfigOptionsFromConfigMap(configMap corev1.ConfigMap) (ConfigOptions, error)

ConfigMap -> ConfigOptions

func NewConfig

func NewConfig(configMap corev1.ConfigMap) (*ConfigOptions, error)

type ConflictPolicy

type ConflictPolicy string
const (
	Ignore         ConflictPolicy = "ignore"
	ARMPrecedence  ConflictPolicy = "arm-precedence"
	NodePrecedence ConflictPolicy = "node-precedence"
)

type SyncDirection

type SyncDirection string
const (
	TwoWay    SyncDirection = "two-way"
	ARMToNode SyncDirection = "arm-to-node"
	NodeToARM SyncDirection = "node-to-arm"
)

Jump to

Keyboard shortcuts

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