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
leaderElectionRenewDeadline=flag.Duration("leader-election-renew-deadline", 10*time.Second, "Duration, in seconds, that the acting leader will retry refreshing leadership before giving up. Defaults to 10 seconds.")
62
64
leaderElectionRetryPeriod=flag.Duration("leader-election-retry-period", 5*time.Second, "Duration, in seconds, the LeaderElector clients should wait between tries of actions. Defaults to 5 seconds.")
63
65
enableAuthChecks=flag.Bool("enable-auth", true, "Enable Authorization checks and TLS communication (enabled by default)")
66
+
67
+
// volume condition reporting
68
+
enableVolumeCondition=flag.Bool("enable-volume-condition", false, "Enable reporting of the volume condition")
69
+
volumeConditionInterval=flag.Duration("volume-condition-interval", 1*time.Minute, "Interval between volume condition checks")
70
+
volumeConditionRecorders=flag.String("volume-condition-recorders", "log,pvcEvent", "location(s) to report volume condition to")
64
71
)
65
72
klog.InitFlags(nil)
66
73
@@ -130,6 +137,40 @@ func main() {
130
137
}
131
138
}()
132
139
140
+
// start the volume condition reporter
141
+
if*enableVolumeCondition {
142
+
gofunc() {
143
+
driver, err:=csiClient.GetDriverName()
144
+
iferr!=nil {
145
+
klog.Fatalf("failed to get the drivername from the CSI-plugin: %v", err)
0 commit comments