@@ -44,8 +44,8 @@ const (
44
44
// zapcore.Level is defined as int8, so this logs everything
45
45
zLevelDebugMax zapcore.Level = - 127
46
46
47
- // OpConfigReconcileIntervalSeconds default reconciliation interval in seconds
48
- OpConfigReconcileIntervalSeconds = "reconcileIntervalSeconds "
47
+ // OpConfigReconcileIntervalMinimum default reconciliation interval in seconds
48
+ OpConfigReconcileIntervalMinimum = "reconcileIntervalMinimum "
49
49
50
50
// OpConfigReconcileIntervalPercentage default reconciliation interval increase, represented as a percentage (100 equaling to 100%)
51
51
// When the reconciliation interval needs to increase, it will increase by the given percentage
@@ -106,7 +106,7 @@ func CheckValidValue(oc *sync.Map, key string, OperatorName string) error {
106
106
if err != nil {
107
107
SetConfigMapDefaultValue (oc , key )
108
108
return errors .New (key + " in ConfigMap: " + OperatorName + " has an invalid syntax, error: " + err .Error ())
109
- } else if key == OpConfigReconcileIntervalSeconds && intValue <= 0 {
109
+ } else if key == OpConfigReconcileIntervalMinimum && intValue <= 0 {
110
110
SetConfigMapDefaultValue (oc , key )
111
111
return errors .New (key + " in ConfigMap: " + OperatorName + " is set to " + value + ". It must be greater than 0." )
112
112
} else if key == OpConfigReconcileIntervalPercentage && intValue < 0 {
@@ -158,7 +158,7 @@ func DefaultOpConfig() *sync.Map {
158
158
cfg .Store (OpConfigCMCADuration , "8766h" )
159
159
cfg .Store (OpConfigCMCertDuration , "2160h" )
160
160
cfg .Store (OpConfigLogLevel , logLevelInfo )
161
- cfg .Store (OpConfigReconcileIntervalSeconds , "5" )
161
+ cfg .Store (OpConfigReconcileIntervalMinimum , "5" )
162
162
cfg .Store (OpConfigReconcileIntervalPercentage , "100" )
163
163
return cfg
164
164
}
0 commit comments