Python linting
This commit is contained in:
parent
47d581a6ac
commit
ad07deae24
1 changed files with 4 additions and 5 deletions
5
main.py
5
main.py
|
@ -6,7 +6,6 @@ import signal
|
|||
import sys
|
||||
import threading
|
||||
|
||||
from unicodedata import name
|
||||
from kubernetes import client, config, watch
|
||||
from kubernetes.client.rest import ApiException
|
||||
|
||||
|
@ -39,10 +38,10 @@ def create_certificate(crds, namespace, secretname, routes):
|
|||
Create a certificate request for certmanager based on the IngressRoute
|
||||
"""
|
||||
try:
|
||||
secret = crds.get_namespaced_custom_object(CERT_GROUP, CERT_VERSION, namespace, CERT_PLURAL, secretname)
|
||||
# secret = crds.get_namespaced_custom_object(CERT_GROUP, CERT_VERSION, namespace, CERT_PLURAL, secretname)
|
||||
logging.info(f"{secretname} : certificate request already exists.")
|
||||
return
|
||||
except ApiException as e:
|
||||
except ApiException:
|
||||
pass
|
||||
|
||||
for route in routes:
|
||||
|
|
Reference in a new issue