Skip to content

Commit

Permalink
chore: backup by controller.cert-manager label
Browse files Browse the repository at this point in the history
  • Loading branch information
balajisa09 committed Feb 20, 2024
1 parent cca2086 commit 53a1f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_tls_secrets():
all_tls_secrets = []

for namespace in all_namespaces:
secrets = v1.list_namespaced_secret(namespace.metadata.name, field_selector='type=kubernetes.io/tls').items
secrets = v1.list_namespaced_secret(namespace.metadata.name, label_selector='controller.cert-manager.io/fao=true').items
all_tls_secrets.extend(secrets)
return all_tls_secrets
except Exception as e:
Expand Down

0 comments on commit 53a1f86

Please sign in to comment.