Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-1446

Resource cleanup is not proper with operator uninstall

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Pipelines 1.5
    • Pipelines 1.4
    • None
    • None
    • 3
    • False
    • False
    • Undefined
    • Pipelines Sprint 199, Pipelines Sprint 200, Pipelines Sprint 201, Pipelines Sprint 202

      I can see rbac, secrets, configmaps even after operator uninstall, verified against latest nightly release (`iib: 62406`)

      I might be missing some more resources! which were installed as part of operator installation, didn't clean up properly.

      I suspect this should exist in previous releases too if I am not wrong!

      problem:
      1. cleanup
      2. And may be upgrades too.

      $ oc get crds|grep tekton
      <None>
      
      oc get rolebindings                                                                                                                 
      NAME                               ROLE                                           AGE
      edit                               ClusterRole/edit                               5d2h
      machine-config-controller-events   ClusterRole/machine-config-controller-events   5d6h
      machine-config-daemon-events       ClusterRole/machine-config-daemon-events       5d6h
      pipeline-anyuid                    ClusterRole/pipeline-anyuid                    33h
      prometheus-k8s                     Role/prometheus-k8s                            5d6h
      system:deployers                   ClusterRole/system:deployer                    5d6h
      system:image-builders              ClusterRole/system:image-builder               5d6h
      system:image-pullers               ClusterRole/system:image-puller                5d6h
      ╭─   ~/work                                                                                                                                                                     20:07:53   
      ╰ oc get sa          
      NAME       SECRETS   AGE
      builder    2         5d6h
      default    2         5d6h
      deployer   2         5d6h
      pipeline   2         5d2h
      oc get secrets -n foo
      NAME                        TYPE                                  DATA   AGE
      builder-dockercfg-qmpjb     kubernetes.io/dockercfg               1      8h
      builder-token-c74hh         kubernetes.io/service-account-token   4      8h
      builder-token-nfcx4         kubernetes.io/service-account-token   4      8h
      default-dockercfg-f255g     kubernetes.io/dockercfg               1      8h
      default-token-brz5f         kubernetes.io/service-account-token   4      8h
      default-token-s7h97         kubernetes.io/service-account-token   4      8h
      deployer-dockercfg-8x4fs    kubernetes.io/dockercfg               1      8h
      deployer-token-jztdx        kubernetes.io/service-account-token   4      8h
      deployer-token-qvmm2        kubernetes.io/service-account-token   4      8h
      foo-el-sa-dockercfg-lxvxd   kubernetes.io/dockercfg               1      7h38m
      foo-el-sa-token-24nc4       kubernetes.io/service-account-token   4      7h38m
      foo-el-sa-token-8bc9v       kubernetes.io/service-account-token   4      7h38m
      pipeline-dockercfg-l8wrc    kubernetes.io/dockercfg               1      8h
      pipeline-token-skv72        kubernetes.io/service-account-token   4      8h
      pipeline-token-xcnnj        kubernetes.io/service-account-token   4      8h
      ╭─   ~/work                                                                                                                                                                     20:10:00   
      ╰ oc get cm -n foo     
      NAME                      DATA   AGE
      config-logging-triggers   2      8h
      config-service-cabundle   1      8h
      config-trusted-cabundle   1      8h
      kube-root-ca.crt          1      8h
      

              smukhade Shivam Mukhade (Inactive)
              pthangad Praveen Kumar Reddy Thangadancha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: