Add REQUIRE_CRLS env variable to allow skipping loading CRLs
This commit is contained in:
parent
403d6cd790
commit
73d8df8fe6
@ -28,6 +28,7 @@ from atst.queue import queue
|
|||||||
|
|
||||||
|
|
||||||
ENV = os.getenv("FLASK_ENV", "dev")
|
ENV = os.getenv("FLASK_ENV", "dev")
|
||||||
|
REQUIRE_CRLS = os.getenv("REQUIRE_CRLS", "True")
|
||||||
|
|
||||||
|
|
||||||
def make_app(config):
|
def make_app(config):
|
||||||
@ -46,6 +47,7 @@ def make_app(config):
|
|||||||
app.config.update({"SESSION_REDIS": app.redis})
|
app.config.update({"SESSION_REDIS": app.redis})
|
||||||
|
|
||||||
make_flask_callbacks(app)
|
make_flask_callbacks(app)
|
||||||
|
if REQUIRE_CRLS == "True":
|
||||||
make_crl_validator(app)
|
make_crl_validator(app)
|
||||||
register_filters(app)
|
register_filters(app)
|
||||||
make_eda_client(app)
|
make_eda_client(app)
|
||||||
|
8
deploy/kubernetes/atst-worker-envvars-configmap.yml
Normal file
8
deploy/kubernetes/atst-worker-envvars-configmap.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: atst-worker-envvars
|
||||||
|
namespace: atat
|
||||||
|
data:
|
||||||
|
REQUIRE_CRLS: "False"
|
@ -153,6 +153,8 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: atst-envvars
|
name: atst-envvars
|
||||||
|
- configMapRef:
|
||||||
|
name: atst-worker-envvars
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: atst-config
|
- name: atst-config
|
||||||
mountPath: "/opt/atat/atst/atst-overrides.ini"
|
mountPath: "/opt/atat/atst/atst-overrides.ini"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user