Skip to content

Commit

Permalink
Merge pull request #154 from Ensembl/feat/toggle_introspection
Browse files Browse the repository at this point in the history
Add the possibility to toggle introspection on and off
  • Loading branch information
bilalebi authored Sep 26, 2024
2 parents b011cf1 + b5cdaa5 commit c5b438d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion graphql_service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -172,5 +174,6 @@ def __init__(
extensions=EXTENSIONS,
),
explorer=CustomExplorerGraphiQL(),
introspection=ENABLE_INTROSPECTION,
),
)
1 change: 1 addition & 0 deletions k8s/web-prod/base/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
data:
DEBUG_MODE: "False"
ENABLE_INTROSPECTION: "True"
HTTP_PROXY: <HTTP_PROXY>
HTTPS_PROXY: <HTTP_PROXY>
http_proxy: <HTTP_PROXY>
Expand Down
2 changes: 1 addition & 1 deletion k8s/web-prod/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- deployment.yaml
3 changes: 2 additions & 1 deletion k8s/web-prod/overlays/internal/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base

# Uncomment when migrating to new-k8s
# patchesStrategicMerge:
# - patch.yaml
# - patch.yaml

0 comments on commit c5b438d

Please sign in to comment.