Skip to content

Commit

Permalink
Merge pull request #1279 from zimnx/mz/fix-ds-pruning-1.9
Browse files Browse the repository at this point in the history
[v1.9] Fix NodeConfig DaemonSet prunning
  • Loading branch information
zimnx authored Jun 14, 2023
2 parents 203d34d + daa8d3b commit 57a2b85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/nodeconfig/sync_daemonsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

scyllav1alpha1 "github.com/scylladb/scylla-operator/pkg/api/scylla/v1alpha1"
"github.com/scylladb/scylla-operator/pkg/controllerhelpers"
"github.com/scylladb/scylla-operator/pkg/naming"
"github.com/scylladb/scylla-operator/pkg/resourceapply"
appsv1 "k8s.io/api/apps/v1"
)
Expand All @@ -30,7 +31,7 @@ func (ncc *Controller) syncDaemonSet(
requiredDaemonSets,
daemonSets,
&controllerhelpers.PruneControlFuncs{
DeleteFunc: ncc.scyllaClient.NodeConfigs().Delete,
DeleteFunc: ncc.kubeClient.AppsV1().DaemonSets(naming.ScyllaOperatorNodeTuningNamespace).Delete,
},
ncc.eventRecorder)
if err != nil {
Expand Down

0 comments on commit 57a2b85

Please sign in to comment.