Add falg to report node internal IP address in ingress status
This commit is contained in:
parent
4479b54953
commit
284448f8d9
5 changed files with 34 additions and 20 deletions
|
|
@ -135,9 +135,11 @@ type Configuration struct {
|
|||
Backend ingress.Controller
|
||||
|
||||
UpdateStatus bool
|
||||
UseNodeInternalIP bool
|
||||
ElectionID string
|
||||
UpdateStatusOnShutdown bool
|
||||
SortBackends bool
|
||||
|
||||
SortBackends bool
|
||||
}
|
||||
|
||||
// newIngressController creates an Ingress controller
|
||||
|
|
@ -174,6 +176,7 @@ func newIngressController(config *Configuration) *GenericController {
|
|||
DefaultIngressClass: config.DefaultIngressClass,
|
||||
UpdateStatusOnShutdown: config.UpdateStatusOnShutdown,
|
||||
CustomIngressStatus: ic.cfg.Backend.UpdateIngressStatus,
|
||||
UseNodeInternalIP: ic.cfg.UseNodeInternalIP,
|
||||
})
|
||||
} else {
|
||||
glog.Warning("Update of ingress status is disabled (flag --update-status=false was specified)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue