diff options
Diffstat (limited to 'arthur/exts/kubernetes/certificates.py')
| -rw-r--r-- | arthur/exts/kubernetes/certificates.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arthur/exts/kubernetes/certificates.py b/arthur/exts/kubernetes/certificates.py index 69c1c32..a2383da 100644 --- a/arthur/exts/kubernetes/certificates.py +++ b/arthur/exts/kubernetes/certificates.py @@ -25,15 +25,15 @@ class Certificates(commands.Cog): """List TLS certificates in the selected namespace (defaults to default).""" certs = await certificates.list_certificates(namespace) - table_data = [] - - for certificate in certs["items"]: - table_data.append([ + table_data = [ + [ certificate["metadata"]["name"], ", ".join(certificate["spec"]["dnsNames"]), certificate["spec"]["issuerRef"]["name"], certificate["status"]["conditions"][0]["message"], - ]) + ] + for certificate in certs["items"] + ] table = tabulate( table_data, headers=["Name", "DNS Names", "Issuer", "Status"], tablefmt="psql" |