@@ -40,21 +40,21 @@ type ApisixTLSController struct {
4040 controller * Controller
4141 kubeclientset kubernetes.Interface
4242 apisixClientset clientset.Interface
43- apisixTLSList listersv1.ApisixTLSLister
43+ apisixTLSList listersv1.ApisixTlsLister
4444 apisixTLSSynced cache.InformerSynced
4545 workqueue workqueue.RateLimitingInterface
4646}
4747
4848type TlsQueueObj struct {
4949 Key string `json:"key"`
50- OldObj * configv1.ApisixTLS `json:"old_obj"`
50+ OldObj * configv1.ApisixTls `json:"old_obj"`
5151 Ope string `json:"ope"` // add / update / delete
5252}
5353
5454func BuildApisixTlsController (
5555 kubeclientset kubernetes.Interface ,
5656 apisixTLSClientset clientset.Interface ,
57- apisixTLSInformer informersv1.ApisixTLSInformer ,
57+ apisixTLSInformer informersv1.ApisixTlsInformer ,
5858 root * Controller ) * ApisixTLSController {
5959
6060 runtime .Must (apisixscheme .AddToScheme (scheme .Scheme ))
@@ -128,13 +128,13 @@ func (c *ApisixTLSController) syncHandler(tqo *TlsQueueObj) error {
128128 }
129129 apisixTlsYaml := tqo .OldObj
130130 if tqo .Ope == state .Delete {
131- apisixIngressTls , _ := c .apisixTLSList .ApisixTLSs (namespace ).Get (name )
131+ apisixIngressTls , _ := c .apisixTLSList .ApisixTlses (namespace ).Get (name )
132132 if apisixIngressTls != nil && apisixIngressTls .ResourceVersion > tqo .OldObj .ResourceVersion {
133133 log .Warnf ("TLS %s has been covered when retry" , tqo .Key )
134134 return nil
135135 }
136136 } else {
137- apisixTlsYaml , err = c .apisixTLSList .ApisixTLSs (namespace ).Get (name )
137+ apisixTlsYaml , err = c .apisixTLSList .ApisixTlses (namespace ).Get (name )
138138 if err != nil {
139139 if errors .IsNotFound (err ) {
140140 log .Infof ("apisixTls %s is removed" , tqo .Key )
@@ -172,8 +172,8 @@ func (c *ApisixTLSController) addFunc(obj interface{}) {
172172}
173173
174174func (c * ApisixTLSController ) updateFunc (oldObj , newObj interface {}) {
175- oldTls := oldObj .(* configv1.ApisixTLS )
176- newTls := newObj .(* configv1.ApisixTLS )
175+ oldTls := oldObj .(* configv1.ApisixTls )
176+ newTls := newObj .(* configv1.ApisixTls )
177177 if oldTls .ResourceVersion == newTls .ResourceVersion {
178178 return
179179 }
@@ -191,13 +191,13 @@ func (c *ApisixTLSController) updateFunc(oldObj, newObj interface{}) {
191191}
192192
193193func (c * ApisixTLSController ) deleteFunc (obj interface {}) {
194- oldTls , ok := obj .(* configv1.ApisixTLS )
194+ oldTls , ok := obj .(* configv1.ApisixTls )
195195 if ! ok {
196196 oldState , ok := obj .(cache.DeletedFinalStateUnknown )
197197 if ! ok {
198198 return
199199 }
200- oldTls , ok = oldState .Obj .(* configv1.ApisixTLS )
200+ oldTls , ok = oldState .Obj .(* configv1.ApisixTls )
201201 if ! ok {
202202 return
203203 }
0 commit comments