Skip to content

Commit

Permalink
Fix panic when deeting a ns
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatur authored and traefiker committed Oct 16, 2019
1 parent 1a4bae5 commit aa9496b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providers/kubernetes/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (p *Provider) buildTCPRouter(port int, serviceName string) *dynamic.TCPRout
func (p *Provider) buildService(endpoints *corev1.Endpoints, scheme string) *dynamic.Service {
var servers []dynamic.Server

if endpoints.Subsets != nil {
if endpoints != nil && endpoints.Subsets != nil {
for _, subset := range endpoints.Subsets {
for _, endpointPort := range subset.Ports {
for _, address := range subset.Addresses {
Expand Down

0 comments on commit aa9496b

Please sign in to comment.