https://rancher.com/ logo
#general
Title
# general
c

crooked-cat-21365

09/21/2022, 1:22 PM
Rancher shows me a terminating namespace "cert-manager-test" in Not in a Project, that actually does not terminate. kubectl doesn't show me the namespace at all. If I try to edit the yaml file via the burger menu in Rancher's Cluster Explorer, then it just says "Loading...". If I select "Config" and then the Edit as YAML button at the bottom, then it shows me a yaml file to edit:
Copy code
apiVersion: v1
kind: Namespace
metadata:
  name: cert-manager-test
  annotations:
    <http://cattle.io/status|cattle.io/status>: >-
      {"Conditions":[{"Type":"ResourceQuotaInit","Status":"True","Message":"","LastUpdateTime":"2022-09-20T11:12:04Z"},{"Type":"InitialRolesPopulated","Status":"True","Message":"","LastUpdateTime":"2022-09-20T11:12:04Z"}]}
    <http://kubectl.kubernetes.io/last-applied-configuration|kubectl.kubernetes.io/last-applied-configuration>: >
      {"apiVersion":"v1","kind":"Namespace","metadata":{"annotations":{},"name":"cert-manager-test"}}
    <http://lifecycle.cattle.io/create.namespace-auth|lifecycle.cattle.io/create.namespace-auth>: 'true'
    <http://field.cattle.io/containerDefaultResourceLimit|field.cattle.io/containerDefaultResourceLimit>: '{}'
#    key: string
  creationTimestamp: '2022-09-20T11:12:03Z'
  deletionTimestamp: '2022-09-20T11:13:07Z'
  labels:
    <http://kubernetes.io/metadata.name|kubernetes.io/metadata.name>: cert-manager-test
#    key: string
  resourceVersion: '116945107'
  uid: 9918aab8-1f1c-48fe-b8b0-9d64a98a5084
  fields:
    - cert-manager-test
    - Terminating
    - 25h
spec:
  finalizers:
    - kubernetes
#    - string
__clone: true
If I try to remove the finalizer and save, then I get an error popup in red
Copy code
Operation cannot be fulfilled on namespaces "cert-manager-test": StorageError: invalid object, Code: 4, Key: /registry/namespaces/cert-manager-test, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 9918aab8-1f1c-48fe-b8b0-9d64a98a5084, UID in object meta:
Every helpful hint is highly appreciated
106 Views