Deleting CRDS like EtcdCluster is not working
christianhuening opened this issue · 4 comments
christianhuening commented
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?
hjacobs commented
Maybe you have a typo? The list of resource types should use the plural form, i.e. "etcdclusters".
christianhuening commented
oh, thanks, will test!
christianhuening commented
didnt seem to fix it. maybe the full name including the api?
christianhuening commented
whoops sorry, only etcd in whitelisted namespaces are left. so, fixed, all good! Thanks!