Skip to content

Commit

Permalink
chore: Added hub url to orchestrator
Browse files Browse the repository at this point in the history
  • Loading branch information
nsainaney committed Jul 18, 2023
1 parent a1fbf21 commit 949bb7a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/codezero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions charts/codezero/templates/orchestrator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ spec:
value: /etc/ssl/certs/space/tls.pem
- name: CZ_CLUSTER_CERT_KEY
value: /etc/ssl/certs/space/tls.key
{{- if .Values.codezero.hub.url }}
- name: CZ_HUB_URL
value: {{ .Values.codezero.hub.url }}/
{{- end }}
- name: CZ_PORT
value: '8900'
- name: NODE_ENV
Expand Down
4 changes: 4 additions & 0 deletions charts/codezero/templates/system/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
value: /etc/ssl/certs/space/tls.pem
- name: CZ_CLUSTER_CERT_KEY
value: /etc/ssl/certs/space/tls.key
{{- if .Values.codezero.hub.url }}
- name: CZ_HUB_URL
value: {{ .Values.codezero.hub.url }}
{{- end }}
- name: CZ_SPACE_ID
valueFrom:
configMapKeyRef:
Expand Down
3 changes: 0 additions & 3 deletions charts/codezero/templates/system/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ kind: Secret
metadata:
name: {{ include "system.fullname" . }}
data:
{{- if .Values.codezero.hub.url }}
CZ_HUB_URL: {{ .Values.codezero.hub.url | b64enc }}
{{- end }}
CZ_HUB_SPACE_TOKEN: {{ .Values.codezero.space.token | b64enc }}

0 comments on commit 949bb7a

Please sign in to comment.