-
Notifications
You must be signed in to change notification settings - Fork 195
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
When deleting a VMAlert CR, the operator’s finalizer removes the deployment, services, TLSAssets secret, etc., but it does not remove the main config secret (SecretConfigResourceKind) created at /etc/vmalert/remote_secrets.
This results in the secret being orphaned, with a finalizer still attached, preventing normal teardown and requiring manual cleanup.
Steps to reproduce:
- Create a
VMAlertCR. - Observe that both
TLSAssetsandconfigsecrets are created with the operator’s finalizer. - Delete the
VMAlertCR. - The TLSAssets secret is removed, but the config secret remains.
Expected behavior:
All secrets owned by the VMAlert CR (including the main config secret) should be cleaned up by OnVMAlertDelete.
References:
vmalert.gosecret creationvmalert.gofinalizer attachmentcache.goshowing finalizer specfinalize/vmalert.gocleanup (only TLSAssets secret handled)
Versions:
victoriametrics/operator:v0.62.0
victoriametrics/vmalert:v1.125.1
f41gh7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working