diff --git a/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go b/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go index 58860d424..c4bc3cc49 100644 --- a/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go +++ b/app/kubemci/pkg/gcp/loadbalancer/loadbalancersyncer.go @@ -224,14 +224,14 @@ func (l *LoadBalancerSyncer) DeleteLoadBalancer(ing *v1beta1.Ingress) error { // Aggregate errors and return all at the end. err = multierror.Append(err, frErr) } - if scErr := l.scs.DeleteSSLCert(); scErr != nil { - // Aggregate errors and return all at the end. - err = multierror.Append(err, scErr) - } if tpErr := l.tps.DeleteTargetProxies(); tpErr != nil { // Aggregate errors and return all at the end. err = multierror.Append(err, tpErr) } + if scErr := l.scs.DeleteSSLCert(); scErr != nil { + // Aggregate errors and return all at the end. + err = multierror.Append(err, scErr) + } if umErr := l.ums.DeleteURLMap(); umErr != nil { // Aggregate errors and return all at the end. err = multierror.Append(err, umErr)