Skip to content

Cleanup of resources requires deletecollection permission #589

@amalagaura

Description

@amalagaura

What did you do to encounter the bug?
Steps to reproduce the behavior:

  1. Delete existing resource

What did you expect?
Cleanup of affected resources

What happened instead?
Resources are not cleaned up

Screenshots

Operator Information

  • Operator Version: 1.4
  • MongoDB Image used

Kubernetes Cluster Information

Additional context
We have watchedNamespaces = '*' so we are using the cluster roles

Operator logs give errors that deletecollection is not allowed for Service, ConfigMap, StatefulSet and Secrets

I believe this API call: https://github.com/mongodb/mongodb-kubernetes/blob/master/controllers/operator/mongodbopsmanager_controller.go#L787 uses deletecollection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions