Skip to content

Commit 808218b

Browse files
committed
minor changes
Signed-off-by: Ashima-Ashima1 <[email protected]>
1 parent 23a382c commit 808218b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

config/samples/csi_v1alpha1_recoverstalevolume.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
name: recoverstalevolume-sample
88
namespace: ibm-object-csi-operator-system
99
spec:
10-
noOfLogLines: 200
10+
logHistory: 200
1111
data:
1212
- namespace: default
1313
deployments: []

controllers/recoverstalevolume_controller.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,7 @@ func (r *RecoverStaleVolumeReconciler) Reconcile(ctx context.Context, req ctrl.R
9292
}
9393
reqLogger.Info("Tail Log Lines to fetch", "number", logTailLines)
9494

95-
nsData := instance.Spec.Data
96-
if len(nsData) == 0 {
97-
reqLogger.Info("No Data Found")
98-
}
99-
100-
for _, data := range nsData {
95+
for _, data := range instance.Spec.Data {
10196
namespace := data.Namespace
10297
deployments := util.Remove(data.Deployments, "")
10398
// If namespace is not set, use `default` ns

0 commit comments

Comments
 (0)