Add function to allow custom values in Ingress status

This commit is contained in:
Manuel de Brito Fontes 2017-07-28 18:57:33 -04:00
parent 697041aae3
commit fe1b913f21
5 changed files with 34 additions and 4 deletions

View file

@ -35,6 +35,7 @@ import (
proxyproto "github.com/armon/go-proxyproto"
api_v1 "k8s.io/api/core/v1"
extensions "k8s.io/api/extensions/v1beta1"
"k8s.io/ingress/controllers/nginx/pkg/config"
ngx_template "k8s.io/ingress/controllers/nginx/pkg/template"
@ -373,6 +374,11 @@ func (n *NGINXController) SetListers(lister ingress.StoreLister) {
n.storeLister = lister
}
// UpdateIngressStatus custom Ingress status update
func (n *NGINXController) UpdateIngressStatus(*extensions.Ingress) []api_v1.LoadBalancerIngress {
return nil
}
// OnUpdate is called by syncQueue in https://github.com/aledbf/ingress-controller/blob/master/pkg/ingress/controller/controller.go#L82
// periodically to keep the configuration in sync.
//