Skip to content

Commit

Permalink
ci: replace prism-agent to cloud-agent in the helm charts
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
  • Loading branch information
yshyn-iohk committed May 7, 2024
1 parent 82bef01 commit 68518a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions infrastructure/charts/agent/templates/apisixroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
{{- end }}
paths:
- /prism-agent/*
- /cloud-agent/*
backends:
- serviceName: agent-server-tapir-service
servicePort: 8085
Expand All @@ -26,7 +27,7 @@ spec:
- name: proxy-rewrite
enable: true
config:
regex_uri: ["^/prism-agent/(.*)","/$1"]
regex_uri: ["^/(prism-agent|cloud-agent)/(.*)","/$2"]
- name: uri-blocker
enable: true
config:
Expand Down Expand Up @@ -56,14 +57,15 @@ spec:
{{- end }}
paths:
- /prism-agent/didcomm*
- /cloud-agent/didcomm*
backends:
- serviceName: agent-server-didcomm-service
servicePort: 8090
plugins:
- name: proxy-rewrite
enable: true
config:
regex_uri: ["^/prism-agent/didcomm(.*)", "/$1"]
regex_uri: ["^/(prism-agent|cloud-agent)/didcomm(.*)", "/$2"]
{{ template "cors" . }}
{{ template "headers.requestId" . }}
{{ template "headers.security" . }}
Expand All @@ -87,6 +89,7 @@ spec:
{{- end }}
paths:
- /prism-agent/schema-registry/schemas/*
- /cloud-agent/schema-registry/schemas/*
methods:
- GET
backends:
Expand All @@ -96,7 +99,7 @@ spec:
- name: proxy-rewrite
enable: true
config:
regex_uri: ["^/prism-agent/schema-registry/schemas/(.*)", "/schema-registry/schemas/$1"]
regex_uri: ["^/(prism-agent|cloud-agent)/schema-registry/schemas/(.*)", "/schema-registry/schemas/$2"]
{{ template "cors" . }}
{{ template "headers.requestId" . }}
{{ template "headers.security" . }}
Expand All @@ -120,6 +123,7 @@ spec:
{{- end }}
paths:
- /prism-agent/credential-definition-registry/definitions/*
- /cloud-agent/credential-definition-registry/definitions/*
methods:
- GET
backends:
Expand All @@ -129,7 +133,7 @@ spec:
- name: proxy-rewrite
enable: true
config:
regex_uri: ["^/prism-agent/credential-definition-registry/definitions/(.*)", "/credential-definition-registry/definitions/$1"]
regex_uri: ["^/(prism-agent|cloud-agent)/credential-definition-registry/definitions/(.*)", "/credential-definition-registry/definitions/$2"]
{{ template "cors" . }}
{{ template "headers.requestId" . }}
{{ template "headers.security" . }}
Expand All @@ -153,14 +157,15 @@ spec:
{{- end }}
paths:
- /prism-agent/docs/*
- /cloud-agent/docs/*
backends:
- serviceName: agent-server-tapir-service
servicePort: 8085
plugins:
- name: proxy-rewrite
enable: true
config:
regex_uri: ["^/prism-agent/docs/(.*)","/docs/$1"]
regex_uri: ["^/(prism-agent|cloud-agent)/docs/(.*)","/docs/$2"]
{{ template "cors" . }}
{{ template "headers.requestId" . }}
{{ template "headers.security" . }}
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ spec:
key: password
optional: false
- name: DIDCOMM_SERVICE_URL
value: "https://{{ index .Values.ingress.applicationUrls 0 }}/prism-agent/didcomm"
value: "https://{{ index .Values.ingress.applicationUrls 0 }}/cloud-agent/didcomm"
- name: REST_SERVICE_URL
value: "https://{{ index .Values.ingress.applicationUrls 0 }}/prism-agent"
value: "https://{{ index .Values.ingress.applicationUrls 0 }}/cloud-agent"
- name: PRISM_NODE_HOST
value: {{ .Values.vdrManager.host | quote }}
- name: PRISM_NODE_PORT
Expand Down

0 comments on commit 68518a3

Please sign in to comment.