From 24993f359f2c55b4cbdb9da7fe36467c76f2e0aa Mon Sep 17 00:00:00 2001 From: Taoge Date: Thu, 21 Feb 2019 17:49:40 +0800 Subject: [PATCH] - remove annoations in nginxcontroller struct --- internal/ingress/controller/nginx.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index 2cb5e61648..b35c2912fe 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -49,7 +49,6 @@ import ( "k8s.io/ingress-nginx/internal/file" "k8s.io/ingress-nginx/internal/ingress" - "k8s.io/ingress-nginx/internal/ingress/annotations" "k8s.io/ingress-nginx/internal/ingress/annotations/class" ngx_config "k8s.io/ingress-nginx/internal/ingress/controller/config" "k8s.io/ingress-nginx/internal/ingress/controller/process" @@ -133,9 +132,6 @@ func NewNGINXController(config *Configuration, mc metric.Collector, fs file.File config.DisableCatchAll) n.syncQueue = task.NewTaskQueue(n.syncIngress) - - n.annotations = annotations.NewAnnotationExtractor(n.store) - if config.UpdateStatus { n.syncStatus = status.NewStatusSyncer(status.Config{ Client: config.Client, @@ -221,8 +217,6 @@ Error loading new template: %v type NGINXController struct { cfg *Configuration - annotations annotations.Extractor - recorder record.EventRecorder syncQueue *task.Queue