Update lua configuration_data when number of controller pod change

This commit is contained in:
Maxime Ginters 2018-11-27 09:53:51 -05:00
parent 55b4f00368
commit f90881b367
10 changed files with 113 additions and 19 deletions

View file

@ -71,6 +71,9 @@ type Configuration struct {
// ConfigurationChecksum contains the particular checksum of a Configuration object
ConfigurationChecksum string `json:"configurationChecksum,omitempty"`
// ControllerPodsCount contains the list of running ingress controller Pod(s)
ControllerPodsCount int `json:"controllerPodsCount,omitempty"`
}
// Backend describes one or more remote server/s (endpoints) associated with a service
@ -338,3 +341,8 @@ type Ingress struct {
extensions.Ingress
ParsedAnnotations *annotations.Ingress
}
// GeneralConfig holds the definition of lua general configuration data
type GeneralConfig struct {
ControllerPodsCount int `json:"controllerPodsCount"`
}