Skip to content

Commit

Permalink
fix filter for propagated annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
moadqassem committed Mar 12, 2024
1 parent 7904cf8 commit 1122894
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controllers/kubelb/loadbalancer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,9 @@ func propagateAnnotations(permitted map[string]string, loadbalancer map[string]s
if config.GetConfig().Spec.PropagatedAnnotations != nil {
globallyPermitted := config.GetConfig().Spec.PropagatedAnnotations
for k, v := range globallyPermitted {
if _, found := permitted[k]; !found {
permitted[k] = v
// Annotations specified at namespace level have a higher precedence.
if _, found := permittedMap[k]; !found {
permittedMap[k] = []string{v}
}
}
}
Expand Down

0 comments on commit 1122894

Please sign in to comment.