Skip to content

Commit

Permalink
Fixed issue with load balancer never being set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowplum committed May 28, 2024
1 parent aeb74e1 commit 91631f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kubernetes/manifests/avs-gke-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ aerospikeVectorSearchConfig:
service:
enabled: true
annotations:
networking.gke.io/load-balancer-type: "Internal"
networking.gke.io/load-balancer-type: "External"
ports:
- name: "svc-port"
port: 5000
Expand Down
6 changes: 2 additions & 4 deletions quote-semantic-search/quote-search/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

def get_bool_env(name, default):
env = os.environ.get(name)

if env is None:
return default
env = env.lower()

env = env.lower()

if os.environ.get(name) in ["true", "1"]:
if env in ["true", "1"]:
return True
else:
return False
Expand Down

0 comments on commit 91631f3

Please sign in to comment.