Skip to content

Commit

Permalink
Add missing condition in upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Andrzejewski committed Jan 26, 2024
1 parent bccefb1 commit 9890538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/testutil/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ func VerifyResourceAnnotationUpdate(clients kube.Clients, config util.Config, up
reloaderEnabled, _ := strconv.ParseBool(reloaderEnabledValue)
typedAutoAnnotationEnabled, _ := strconv.ParseBool(typedAutoAnnotationEnabledValue)
matches := false
if reloaderEnabled || typedAutoAnnotationEnabled || reloaderEnabledValue == "" && options.AutoReloadAll {
if reloaderEnabled || typedAutoAnnotationEnabled || reloaderEnabledValue == "" && typedAutoAnnotationEnabledValue == "" && options.AutoReloadAll {
matches = true
} else if annotationValue != "" {
values := strings.Split(annotationValue, ",")
Expand Down

0 comments on commit 9890538

Please sign in to comment.