Skip to content

Commit

Permalink
remove tls annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
backguynn committed Jul 5, 2024
1 parent d5d647d commit a3b90e5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,19 +370,11 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
prefLocal := false
epSelect := api.LbSelRr
matchNodeLabel := ""
enableTls := int32(0)

if strings.Compare(*lbClassName, m.networkConfig.LoxilbLoadBalancerClass) != 0 && !needPodEP {
return nil
}

// Check for loxilb specific annotations - enableTlsAnnotation
if tls := svc.Annotations[enableTlsAnnotation]; tls != "" {
if tls == "true" {
enableTls = 1
}
}

// Check for loxilb specific annotations - MatchNodeLabel
if mnl := svc.Annotations[matchNodeLabelAnnotation]; mnl != "" {
matchNodeLabel = mnl
Expand Down Expand Up @@ -590,7 +582,6 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
ProbeRetries: probeRetries,
EpSelect: epSelect,
Addr: addrType,
Security: enableTls,
SecIPs: []string{},
LbServicePairs: make(map[string]*LbServicePairEntry),
}
Expand Down

0 comments on commit a3b90e5

Please sign in to comment.