You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handleVolumeInUseError=flag.Bool("handle-volume-inuse-error", true, "Flag to turn on/off capability to handle volume in use error in resizer controller. Defaults to true if not set.")
70
73
71
-
enableFSResizeAnnotation=flag.Bool("enable-fs-resize-annotation", true, "Flag to turn on/off capability to add an annotation to PV to denote its size prior to resize and to remove it upon completion of filesystem resize.")
74
+
featureGatesmap[string]bool
72
75
73
76
version="unknown"
74
77
)
75
78
76
79
funcmain() {
80
+
flag.Var(cflag.NewMapStringBool(&featureGates), "feature-gates", "A set of key=value paris that describe feature gates for alpha/experimental features for csi external resizer."+"Options are:\n"+strings.Join(utilfeature.DefaultFeatureGate.KnownFeatures(), "\n"))
Copy file name to clipboardExpand all lines: pkg/controller/controller.go
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ import (
21
21
"fmt"
22
22
"time"
23
23
24
+
features "sigs.k8s.io/external-resizer/pkg/features"/* TO BE REPLACED WITH features "github.com/external-resizer/pkg/features once PR merged*/
Copy file name to clipboardExpand all lines: pkg/controller/controller_test.go
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ import (
5
5
"testing"
6
6
"time"
7
7
8
+
features "sigs.k8s.io/external-resizer/pkg/features"/* TO BE REPLACED WITH features "github.com/external-resizer/pkg/features once PR merged*/
0 commit comments