Add missing condition in upgrade test

This commit is contained in:
Piotr Andrzejewski
2024-01-26 12:53:43 +01:00
parent bccefb1624
commit 989053888f
+1 -1
View File
@@ -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, ",")