Skip to content

Commit

Permalink
Make sure to delete annotation when value not set
Browse files Browse the repository at this point in the history
  • Loading branch information
domgoodwin committed Feb 2, 2024
1 parent 77b65bc commit b45efaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/externalservice_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ func annotations(es *egressv1.ExternalService) map[string]string {
} else {
annotations["service.kubernetes.io/topology-mode"] = "Auto"
}
} else {
delete(annotations, "service.kubernetes.io/topology-mode")
}
return annotations
}
Expand Down

0 comments on commit b45efaf

Please sign in to comment.