Skip to content

Not All Postgrescluster Resources Deleted on Helm Uninstall #3928

@ranchodeluxe

Description

@ranchodeluxe

Overview

Given that we do not have an OCI for the postgrescluster helm chart (as this ticket documents), I've been copying the postgres-operator-examples helm charts to be direct dependencies of my chart. Things work fine on helm install but on helm uninstall most of the postgrescluster resources are not removed (statefulsets, some deploys, some pods, configmaps, secrets)

Environment

Please provide the following details:

  • Platform: GKE
  • Platform Version: v1.27.13-gke.1070000
  • PGO Image Tag: ubi8-16.3-3.4-0
  • Postgres Version: 16
  • Storage: standard-rwo pd.csi.storage.gke.io

Steps to Reproduce

REPRO

  1. check out the branch related to this PR: Use PGO by Default developmentseed/eoapi-k8s#84
  2. cd /helm-chart/
  3. run helm install -n eoapixyz --create-namespace eoapixyz ./eoapi -f eoapi/values.yaml
  4. run kubectl get pod,deploy,svc,statefulset -n eoapixyz
  5. run helm uninstall eoapixyz
  6. run kubectl get pod,deploy,svc,statefulset -n eoapixyz (and see there are still resources there)

EXPECTED

running kubectl get pod,deploy,svc,statefulset -n eoapixyz after running helm uninstall shouldn't show any resources in that namespace

ACTUAL

running kubectl get pod,deploy,svc,statefulset -n eoapixyz after running helm uninstall shows there are existing resources in that namespace

Logs

None

Additional Information

I have noticed interesting behaviour when just installing pgo helm chart (not as a dependency) that makes me thing other things are going on. For example, after helm install -n testing123 --create-namespace pgo ./pgo and helm uninstall pgo I cannot delete my namespace testing123 b/c the finalizer is waiting on the state of the crunchdata CRD. And I cannot delete the CRD, it just hangs. Same situation for regardless if pgo.singleNamespace is true or false

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