Documentation ¶
Index ¶
Constants ¶
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 ¶
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
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" )
Click to show internal directories.
Click to hide internal directories.