Skip to content

Commit 57a2b85

Browse files
authored
Merge pull request #1279 from zimnx/mz/fix-ds-pruning-1.9
[v1.9] Fix NodeConfig DaemonSet prunning
2 parents 203d34d + daa8d3b commit 57a2b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/nodeconfig/sync_daemonsets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
scyllav1alpha1 "github.com/scylladb/scylla-operator/pkg/api/scylla/v1alpha1"
1010
"github.com/scylladb/scylla-operator/pkg/controllerhelpers"
11+
"github.com/scylladb/scylla-operator/pkg/naming"
1112
"github.com/scylladb/scylla-operator/pkg/resourceapply"
1213
appsv1 "k8s.io/api/apps/v1"
1314
)
@@ -30,7 +31,7 @@ func (ncc *Controller) syncDaemonSet(
3031
requiredDaemonSets,
3132
daemonSets,
3233
&controllerhelpers.PruneControlFuncs{
33-
DeleteFunc: ncc.scyllaClient.NodeConfigs().Delete,
34+
DeleteFunc: ncc.kubeClient.AppsV1().DaemonSets(naming.ScyllaOperatorNodeTuningNamespace).Delete,
3435
},
3536
ncc.eventRecorder)
3637
if err != nil {

0 commit comments

Comments
 (0)