Skip to content

Incomplete deletion if resources upon delete postgresql #218

@avaczi

Description

@avaczi

Under circumstances (for example, missing pod disruption budget) a kubectl delete postgresql {name} will return successfully, but leaving behind resources. The case of PDB leaves behind the service and the endpoint, for example.

The reason is the early return upon errors in https://github.com/zalando-incubator/postgres-operator/blob/bf4406d2a49deb73830eeb72cb1b35cdccd846e0/pkg/cluster/cluster.go#L568-L583

The logic has to be revised so that we don't leave behind stuff, at least not when the error stems from the nonexistence of the resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions