Open AdrienKuhn opened 4 years ago
Just to add a note if someone faced this issue.
You'll need to edit the existing policy id in the manifest with any policy ID that exist in your newrelic. Once done that it will be deleted.
If still not deleted, patch to remove the finalizers
Description
When creating an
AlertPolicy
containing anAlertsApmCondition
, removing the policy will not remove theAlertsApmCondition
from Kubernetes resources and the operator will be in an infinite error loop.Current behavior
The
AlertsApmCondition
is not removed from Kubernetes cluster after removing anAlertPolicy
, even if the condition doesn't exist on NewRelic anymore.Expected behavior
The
AlertsApmCondition
should be removed from Kubernetes cluster after removing anAlertPolicy
.Steps To Reproduce
Steps to reproduce the behavior:
Deploy a policy
kubectl get AlertsApmCondition NAME CREATED my-alert-policy-condition-2pw8d
In the manager logs
AlertsApmCondition
is still there and there is no way to delete it