Skip to content

Commit

Permalink
fix(cf-idw): fix witness port for non-demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmorano committed Jul 15, 2024
1 parent 53de1cc commit 8f8157b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/cf-idw/templates/witness-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
service:
name: "witness"
port:
number: {{ $witness.port | default 5642 }}
number: {{ $witness.port | default 5631 }}
{{- end }}
{{- end }}
tls:
Expand Down
8 changes: 3 additions & 5 deletions charts/cf-idw/templates/witness-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ metadata:
name: witness
spec:
ports:
{{- range $port := $witness.ports }}
- name: {{ $port | quote }}
port: {{ $port }}
targetPort: {{ $port }}
{{- end }}
- name: {{ .port | quote }}
port: {{ .port }}
targetPort: {{ .port }}
selector:
app: witness
{{ end }}
Expand Down
6 changes: 2 additions & 4 deletions charts/cf-idw/templates/witness-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ spec:
- name: KERI_SCRIPT_DIR
value: /usr/local/var/keri
ports:
{{- range $port := .ports }}
- containerPort: {{ $port }}
hostPort: {{ $port }}
- containerPort: {{ .port | 5631 }}
hostPort: {{ .port | 5631 }}
protocol: TCP
{{- end }}
volumeMounts:
- mountPath: /usr/local/var/keri
name: keri-data
Expand Down
3 changes: 1 addition & 2 deletions charts/cf-idw/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ witness:
image:
repository: "pro.registry.gitlab.metadata.dev.cf-deployments.org/base-infrastructure/docker-registry/cf-idw-witness"
tag: "0.1.1-develop-612b15f-9895437336"
ports:
- 5642
port: 5631
ingress:
enabled: true
hosts:
Expand Down

0 comments on commit 8f8157b

Please sign in to comment.