diff --git a/pkg/controller/vault/vault_controller.go b/pkg/controller/vault/vault_controller.go index b2c1418d..138993b2 100644 --- a/pkg/controller/vault/vault_controller.go +++ b/pkg/controller/vault/vault_controller.go @@ -2100,6 +2100,10 @@ func (r *ReconcileVault) distributeCACertificate(ctx context.Context, v *vaultv1 } for _, namespace := range namespaceList.Items { + // Skip the namespace if it's being deleted + if namespace.DeletionTimestamp != nil { + continue + } namespaces = append(namespaces, namespace.Name) } } else {