Skip to content

Commit 5f92164

Browse files
[release-1.14] Avoid fatal errors for unknown features flags that can be added in a future release (#8052)
Avoid fatal errors for unknown features flags that can be added in a future release Signed-off-by: Pierangelo Di Pilato <[email protected]> Co-authored-by: Pierangelo Di Pilato <[email protected]>
1 parent b20997f commit 5f92164

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/apis/feature/features.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package feature
1818

1919
import (
2020
"fmt"
21+
"log"
2122
"strings"
2223

2324
corev1 "k8s.io/api/core/v1"
@@ -148,7 +149,8 @@ func NewFlagsConfigFromMap(data map[string]string) (Flags, error) {
148149
} else if strings.Contains(k, NodeSelectorLabel) {
149150
flags[sanitizedKey] = Flag(v)
150151
} else {
151-
return flags, fmt.Errorf("cannot parse the feature flag '%s' = '%s'", k, v)
152+
flags[k] = Flag(v)
153+
log.Printf("Warning: unknown feature flag value %q=%q\n", k, v)
152154
}
153155
}
154156

0 commit comments

Comments
 (0)