Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit de0e4f1

Browse files
togashidmuniemimu
authored andcommitted
Fix for Policy strategy updated
This fix is related to TAS being unable to update the loaded policy while running in the cluster.
1 parent 0a4e42a commit de0e4f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

telemetry-aware-scheduling/pkg/controller/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func (controller *TelemetryPolicyController) onUpdate(old, new interface{}) {
129129
klog.V(2).InfoS(err.Error(), "component", "controller")
130130
return
131131
}
132+
oldStrat.SetPolicyName(polCopy.ObjectMeta.Name)
132133
controller.Enforcer.RemoveStrategy(oldStrat, oldStrat.StrategyType())
133134
for _, rule := range oldPol.Spec.Strategies[oldStrat.StrategyType()].Rules {
134135
err := controller.DeleteMetric(rule.Metricname)

0 commit comments

Comments
 (0)