Skip to content

Commit

Permalink
support external name service for both the api and frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei authored Jan 18, 2024
1 parent b17915f commit 10cf40f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions charts/nx-cloud/templates/nx-cloud-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if or .Values.nxCloudWorkflows.enabled .Values.nxCloudWorkflows.externalNameService }}
- name: NX_CLOUD_WORKFLOW_CONTROLLER_ADDRESS
value: http://nx-cloud-workflow-controller-service.{{ .Values.nxCloudWorkflows.namespace }}.svc.cluster.local:9000
{{- end }}
{{- if or .Values.nxCloudWorkflows.enabled .Values.nxCloudWorkflows.externalNameService }}
{{- if and .Values.nxCloudWorkflows.enabled .Values.nxCloudWorkflows.externalNameService }}
- name: NX_CLOUD_WORKFLOW_CONTROLLER_ADDRESS
value: http://nx-cloud-workflow-controller-service:9000
{{- end }}
{{- else if .Values.nxCloudWorkflows.enabled }}
- name: NX_CLOUD_WORKFLOW_CONTROLLER_ADDRESS
value: http://nx-cloud-workflow-controller-service.{{ .Values.nxCloudWorkflows.namespace }}.svc.cluster.local:9000
{{- end }}
8 changes: 6 additions & 2 deletions charts/nx-cloud/templates/nx-cloud-nx-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ spec:
- name: ACTIVEMQ_ADDRESS
value: tcp://nx-cloud-messagequeue:61616
{{- end }}
{{- if or .Values.nxCloudWorkflows.enabled .Values.nxCloudWorkflows.externalNameService }}
- name: NX_CLOUD_CI_SERVER_ADDRESS
{{- if and .Values.nxCloudWorkflows.enabled .Values.nxCloudWorkflows.externalNameService }}
- name: NX_CLOUD_WORKFLOW_CONTROLLER_ADDRESS
value: http://nx-cloud-workflow-controller-service:9000
{{- end }}
{{- else if .Values.nxCloudWorkflows.enabled }}
- name: NX_CLOUD_WORKFLOW_CONTROLLER_ADDRESS
value: http://nx-cloud-workflow-controller-service.{{ .Values.nxCloudWorkflows.namespace }}.svc.cluster.local:9000
{{- end }}
{{- with .Values.awsS3 }}
Expand Down

0 comments on commit 10cf40f

Please sign in to comment.