Merge pull request #12844 from lbailleul/fix_discover

Fix discover daemonset default value for discovery interval
This commit is contained in:
Travis Nielsen authored and GitHub committed 2023-09-07 08:10:00 -06:00
commit 7fbb4cc349
4 files changed
+6 -5

No files matched your search

@@ -136,6 +136,7 @@ The following table lists the configurable parameters of the rook-operator chart
| `discover.tolerationKey` | The specific key of the taint to tolerate | `nil` |
| `discover.tolerations` | Array of tolerations in YAML format which will be added to discover deployment | `nil` |
| `discoverDaemonUdev` | Blacklist certain disks according to the regex provided. | `nil` |
| `discoveryDaemonInterval` | Set the discovery daemon device discovery interval (default to 60m) | `"60m"` |
| `enableDiscoveryDaemon` | Enable discovery daemon | `false` |
| `enableOBCWatchOperatorNamespace` | Whether the OBC provisioner should watch on the operator namespace or not, if not the namespace of the cluster will be used | `true` |
| `hostpathRequiresPrivileged` | Runs Ceph Pods as privileged to be able to write to `hostPaths` in OpenShift with SELinux restrictions. | `false` |
@@ -85,7 +85,8 @@ spec:
{{- end }}
- name: ROOK_DISABLE_DEVICE_HOTPLUG
value: "{{ .Values.disableDeviceHotplug }}"
- name: ROOK_DISCOVER_DEVICES_INTERVAL
value: "{{ .Values.discoveryDaemonInterval }}"
- name: NODE_NAME
valueFrom:
fieldRef:
+2
View File
@@ -579,6 +579,8 @@ csi:
# -- Enable discovery daemon
enableDiscoveryDaemon: false
# -- Set the discovery daemon device discovery interval (default to 60m)
discoveryDaemonInterval: 60m
# -- The timeout for ceph commands in seconds
cephCommandsTimeoutSeconds: "15"
+1 -4
View File
@@ -81,10 +81,7 @@ func (d *Discover) Start(ctx context.Context, namespace, discoverImage, security
}
func (d *Discover) createDiscoverDaemonSet(ctx context.Context, namespace, discoverImage, securityAccount string, data map[string]string, useCephVolume bool) error {
discoveryInterval := k8sutil.GetValue(data, discoverIntervalEnv, "")
if discoverImage == "" {
discoveryInterval = defaultDiscoverInterval
}
discoveryInterval := k8sutil.GetValue(data, discoverIntervalEnv, defaultDiscoverInterval)
discoveryParameters := []string{"discover",
"--discover-interval", discoveryInterval}