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 sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from unicodedata import name
|
|
||||||
from kubernetes import client, config, watch
|
from kubernetes import client, config, watch
|
||||||
from kubernetes.client.rest import ApiException
|
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
|
Create a certificate request for certmanager based on the IngressRoute
|
||||||
"""
|
"""
|
||||||
try:
|
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.")
|
logging.info(f"{secretname} : certificate request already exists.")
|
||||||
return
|
return
|
||||||
except ApiException as e:
|
except ApiException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for route in routes:
|
for route in routes:
|
||||||
|
|
Reference in a new issue