diff --git a/graphql_service/server.py b/graphql_service/server.py index 32daff2f..cacbf8d0 100644 --- a/graphql_service/server.py +++ b/graphql_service/server.py @@ -37,7 +37,9 @@ load_dotenv("connections.conf") -DEBUG_MODE = os.getenv("DEBUG_MODE", False) == "True" +DEBUG_MODE = os.getenv("DEBUG_MODE", "false").lower() == "true" +ENABLE_INTROSPECTION = os.getenv("ENABLE_INTROSPECTION", "true").lower() == "true" + EXTENSIONS: Optional[ExtensionList] = ( None # mypy will throw an incompatible type error without this type cast ) @@ -172,5 +174,6 @@ def __init__( extensions=EXTENSIONS, ), explorer=CustomExplorerGraphiQL(), + introspection=ENABLE_INTROSPECTION, ), ) diff --git a/k8s/web-prod/base/configmap.yaml b/k8s/web-prod/base/configmap.yaml index 806c971a..b62eabe4 100644 --- a/k8s/web-prod/base/configmap.yaml +++ b/k8s/web-prod/base/configmap.yaml @@ -1,6 +1,7 @@ apiVersion: v1 data: DEBUG_MODE: "False" + ENABLE_INTROSPECTION: "True" HTTP_PROXY: HTTPS_PROXY: http_proxy: diff --git a/k8s/web-prod/base/kustomization.yaml b/k8s/web-prod/base/kustomization.yaml index 4dc6e889..42835f53 100644 --- a/k8s/web-prod/base/kustomization.yaml +++ b/k8s/web-prod/base/kustomization.yaml @@ -1,4 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- deployment.yaml \ No newline at end of file +- deployment.yaml diff --git a/k8s/web-prod/overlays/internal/kustomization.yaml b/k8s/web-prod/overlays/internal/kustomization.yaml index 30eeaed3..45e6f4ca 100644 --- a/k8s/web-prod/overlays/internal/kustomization.yaml +++ b/k8s/web-prod/overlays/internal/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../../base + # Uncomment when migrating to new-k8s # patchesStrategicMerge: -# - patch.yaml \ No newline at end of file +# - patch.yaml