controllers

package
v0.0.0-...-27a102d Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TickerTime: time to be set on hourly basis
	TickerTime int
	// Ticker holds a channel that delivers “ticks” of a clock at intervals
	Ticker *time.Ticker
)

Functions

func SetConfiguration

func SetConfiguration() error

SetConfiguration will extract the config data from file

func TrackConfigFileChanges

func TrackConfigFileChanges(eventChan chan<- interface{}, errChan chan<- error)

TrackConfigFileChanges monitors the config changes using fsnotfiy

func TrackConfigListener

func TrackConfigListener(errChan chan error)

TrackConfigListener listes to the chanel on the config file changes

Types

type ConfigModel

type ConfigModel struct {
	Reconciliation                         string      `yaml:"reconciliation"`
	ReconcileInterval                      string      `yaml:"reconcileInterval"`
	SecretName                             string      `yaml:"secretName"`
	MetricPort                             string      `yaml:"metricsBindPort"`
	HealthPort                             string      `yaml:"healthProbeBindPort"`
	EventClientPort                        string      `yaml:"eventClientPort"`
	LogLevel                               log.Level   `yaml:"logLevel"`
	LogFormat                              l.LogFormat `yaml:"logFormat"`
	KubeConfigPath                         string      `yaml:"kubeConfigPath"`
	EventSubReconciliation                 string      `yaml:"eventSubReconciliation"`
	Namespace                              string      `yaml:"namespace"`
	OperatorEventSubscriptionMeesageIds    []string    `yaml:"operatorEventSubsciptionMessageIds"`
	OperatorEventSubscriptionEventTypes    []string    `yaml:"operatorEventSubscriptionEventTypes"`
	OperatorEventSubscriptionResourceTypes []string    `yaml:" operatorEventSubsciptionResourceTypes"`
}

ConfigModel contains config values (Mandatory values)

var Data ConfigModel

Data is a global variable to store the configmap

Jump to

Keyboard shortcuts

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