Documentation ¶
Index ¶
Constants ¶
View Source
const ( IngressMonitorControllerSecretConfigKey = "config.yaml" IngressMonitorControllerSecretDefaultName = "imc-config" )
Variables ¶
View Source
var ReconciliationRequeueTime = getRequeueTime()
Functions ¶
func LoadControllerConfig ¶
Types ¶
type AppInsights ¶
type AppInsights struct { Name string `yaml:"name"` Location string `yaml:"location"` ResourceGroup string `yaml:"resourceGroup"` Frequency int32 `yaml:"frequency"` GeoLocation []interface{} `yaml:"geoLocation"` EmailAction EmailAction `yaml:"emailAction"` WebhookAction WebhookAction `yaml:"webhookAction"` }
type Config ¶
type Config struct { Providers []Provider `yaml:"providers"` EnableMonitorDeletion bool `yaml:"enableMonitorDeletion"` MonitorNameTemplate string `yaml:"monitorNameTemplate"` ResyncPeriod int `yaml:"resyncPeriod,omitempty"` CreationDelay time.Duration `yaml:"creationDelay,omitempty"` }
var (
IngressMonitorControllerConfig Config
)
func GetControllerConfig ¶
func GetControllerConfig() Config
func GetControllerConfigTest ¶
func GetControllerConfigTest() Config
func ReadConfig ¶
func (*Config) UnmarshalYAML ¶
UnmarshalYAML interface to deserialize specific types
type EmailAction ¶
type Provider ¶
type Provider struct { Name string `yaml:"name"` ApiKey string `yaml:"apiKey"` ApiToken string `yaml:"apiToken"` ApiURL string `yaml:"apiURL"` AlertContacts string `yaml:"alertContacts"` AlertIntegrations string `yaml:"alertIntegrations"` TeamAlertContacts string `yaml:"teamAlertContacts"` Username string `yaml:"username"` Password string `yaml:"password"` AccountEmail string `yaml:"accountEmail"` AppInsightsConfig AppInsights `yaml:"appInsightsConfig"` GcloudConfig Gcloud `yaml:"gcloudConfig"` }
type WebhookAction ¶
type WebhookAction struct {
ServiceURI string `yaml:"service_uri"`
}
Click to show internal directories.
Click to hide internal directories.