hjacobs/kube-janitor

Deleting CRDS like EtcdCluster is not working

christianhuening opened this issue · 4 comments

I am trying to delete CRDs like EtcdCluster via Janitor. Specified like so:

rulesFile:
    rules:
      - id: namespace-cleanup
        resources:
        - deployments
        - services
        - etcdcluster
        jmespath: "!(spec.template.metadata.labels.janitorIgnore)"
        ttl: 12h

it does not delete the etcdcluster resource. This resource is introduced by the Etcd Operator from coreOS. Do I have to specify the CRDs somehow special?

Maybe you have a typo? The list of resource types should use the plural form, i.e. "etcdclusters".

oh, thanks, will test!

didnt seem to fix it. maybe the full name including the api?

whoops sorry, only etcd in whitelisted namespaces are left. so, fixed, all good! Thanks!