Skip to content

Commit

Permalink
Remove rescan-interval CLI option and env var
Browse files Browse the repository at this point in the history
Commit 7d5395f removed scanner
polling, but the CLI option, environment variable and chart value
remained.

Signed-off-by: Tim Serong <[email protected]>
  • Loading branch information
tserong authored and Vicente-Cheng committed Jun 20, 2024
1 parent 1cc84e8 commit 2e60f09
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ spec:
- name: NDM_AUTO_PROVISION_FILTER
value: {{ . | join "," | quote }}
{{- end }}
{{- with .Values.rescanInterval }}
- name: NDM_RESCAN_INTERVAL
value: {{ . | quote }}
{{- end }}
{{- with .Values.maxConcurrentOps }}
- name: NDM_MAX_CONCURRENT_OPS
value: {{ . | quote }}
Expand Down
3 changes: 0 additions & 3 deletions deploy/charts/harvester-node-disk-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ autoProvisionFilter: []
# - /dev/sda?
# - /dev/nvme0n1p1

# Specify the interval of device rescanning of the node (in seconds)
rescanInterval:

# Sepcify how many concurrent ops we could execute at the same time
maxConcurrentOps:

Expand Down
10 changes: 2 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ func main() {
Usage: "A string of comma-separated glob patterns that you want to exclude for block device filesystem label filter",
Destination: &opt.LabelFilter,
},
&cli.Int64Flag{
Name: "rescan-interval",
EnvVars: []string{"NDM_RESCAN_INTERVAL"},
Usage: "Specify the interval of device rescanning of the node (in seconds)",
Destination: &opt.RescanInterval,
},
&cli.StringFlag{
Name: "auto-provision-filter",
EnvVars: []string{"NDM_AUTO_PROVISION_FILTER"},
Expand Down Expand Up @@ -178,8 +172,8 @@ func initLogs(opt *option.Option) {
logrus.SetOutput(os.Stdout)
logrus.Infof("Node Disk Manager %s is starting", version.FriendlyVersion())
logrus.Infof("Notable parameters are following:")
logrus.Infof("Namespace: %s, ConcurrentOps: %d, RescanInterval: %d, InjectUdevMonitorError: %v",
opt.Namespace, opt.MaxConcurrentOps, opt.RescanInterval, opt.InjectUdevMonitorError)
logrus.Infof("Namespace: %s, ConcurrentOps: %d, InjectUdevMonitorError: %v",
opt.Namespace, opt.MaxConcurrentOps, opt.InjectUdevMonitorError)
if opt.Debug {
logrus.SetLevel(logrus.DebugLevel)
logrus.Debugf("Loglevel set to [%v]", logrus.DebugLevel)
Expand Down
1 change: 0 additions & 1 deletion pkg/option/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ type Option struct {
PathFilter string
LabelFilter string
AutoProvisionFilter string
RescanInterval int64
MaxConcurrentOps uint
InjectUdevMonitorError bool
}

0 comments on commit 2e60f09

Please sign in to comment.