Skip to content

Commit

Permalink
fix(Bridge): Fix connection on bridge to gate on deploy helm
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed Jun 1, 2023
1 parent 6202ae1 commit 07d9b5d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
12 changes: 6 additions & 6 deletions charts/bpdm/charts/bpdm-bridge-dummy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if and $pool (not (empty (index $pool "base-url"))) -}}
{{- index $pool "base-url" -}}
{{- else -}}
{{- printf "%s-bpdm-pool" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-pool" .Release.Name) ":8080" -}}
{{- end -}}
{{- else -}}
{{- printf "%s-bpdm-pool" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-pool" .Release.Name) ":8080" -}}
{{- end -}}
{{- else -}}
{{- printf "%s-bpdm-pool" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-pool" .Release.Name) ":8080" -}}
{{- end -}}
{{- end }}

Expand All @@ -89,13 +89,13 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if and $gate (not (empty (index $gate "base-url"))) -}}
{{- index $gate "base-url" -}}
{{- else -}}
{{- printf "%s-bpdm-gate" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-gate" .Release.Name) ":8080" -}}
{{- end -}}
{{- else -}}
{{- printf "%s-bpdm-gate" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-gate" .Release.Name) ":8080" -}}
{{- end -}}
{{- else -}}
{{- printf "%s-bpdm-gate" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-gate" .Release.Name) ":8080" -}}
{{- end -}}
{{- end }}

Expand Down
6 changes: 3 additions & 3 deletions charts/bpdm/charts/bpdm-gate/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if and $pool (not (empty (index $pool "base-url"))) -}}
{{- index $pool "base-url" -}}
{{- else -}}
{{- printf "%s-bpdm-pool" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-pool" .Release.Name) ":8080" -}}
{{- end -}}
{{- else -}}
{{- printf "%s-bpdm-pool" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-pool" .Release.Name) ":8080" -}}
{{- end -}}
{{- else -}}
{{- printf "%s-bpdm-pool" .Release.Name -}}
{{- print "http://" (printf "%s-bpdm-pool" .Release.Name) ":8080" -}}
{{- end -}}
{{- end }}

Expand Down
25 changes: 12 additions & 13 deletions charts/bpdm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ bpdm-gate:
tag: ""
# ... more configuration for bpdm-gate if need...
applicationConfig:
bpdm:
pool:
base-url: ""
# Use this configuration to specify custom base-urls for the bpdm pool and gate.
# Only needed if the automatic default deploy is not used.
# bpdm:
# pool:
# base-url: ""
postgres:
enabled: false

Expand Down Expand Up @@ -38,11 +40,13 @@ bpdm-bridge-dummy:
pullPolicy: Always
tag: ""
applicationConfig:
bpdm:
pool:
base-url: ""
gate:
base-url: ""
# Use this configuration to specify custom base-urls for the bpdm pool and gate.
# Only needed if the automatic default deploy is not used.
# bpdm:
# pool:
# base-url: ""
# gate:
# base-url: ""
postgres:
enabled: false

Expand All @@ -65,16 +69,11 @@ opensearch:
memory: 2Gi
config:
opensearch.yml: |
# Bind to all interfaces because we don't know what
# IP address Docker will assign to us.
network.host: 0.0.0.0
# Disable security
plugins.security.disabled: true
securityConfig:
enabled: false
extraInitContainers:
# Image that performs the sysctl operation to modify Kernel settings
# needed sometimes to avoid boot errors
- name: sysctl
image: docker.io/bitnami/bitnami-shell:10-debian-10-r199
imagePullPolicy: "IfNotPresent"
Expand Down

0 comments on commit 07d9b5d

Please sign in to comment.