Skip to content

Commit

Permalink
Discovery api host config (#461)
Browse files Browse the repository at this point in the history
* Changed discoveryapi chart config to use configured host instead of hardcoded host
  • Loading branch information
RyanRConaway authored Apr 3, 2023
1 parent 4f798b5 commit 184b0d1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/discovery-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v1
appVersion: "1.0.0-static"
description: A middleware layer to connect data consumers with the data sources
name: discovery-api
version: 1.4.10
version: 1.4.11
sources:
- https://github.com/UrbanOS-Public/smartcitiesdata/tree/master/apps/discovery_api
3 changes: 2 additions & 1 deletion charts/discovery-api/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# discovery-api

![Version: 1.4.10](https://img.shields.io/badge/Version-1.4.10-informational?style=flat-square) ![AppVersion: 1.0.0-static](https://img.shields.io/badge/AppVersion-1.0.0--static-informational?style=flat-square)
![Version: 1.4.11](https://img.shields.io/badge/Version-1.4.11-informational?style=flat-square) ![AppVersion: 1.0.0-static](https://img.shields.io/badge/AppVersion-1.0.0--static-informational?style=flat-square)

A middleware layer to connect data consumers with the data sources

Expand Down Expand Up @@ -40,6 +40,7 @@ A middleware layer to connect data consumers with the data sources
| global.redis.port | int | `6379` | |
| global.redis.sslEnabled | bool | `false` | |
| global.require_api_key | bool | `false` | |
| global.subdomains.discoveryApi | string | `""` | |
| global.vault.endpoint | string | `"vault.vault:8200"` | |
| image.majorPin | string | `""` | |
| image.minorPin | string | `""` | |
Expand Down
6 changes: 1 addition & 5 deletions charts/discovery-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ spec:
- name: PRESTO_SCHEMA
value: {{ .Values.presto.schema }}
- name: HOST
{{- if .Release.Namespace }}
value: data.{{ .Release.Namespace }}.{{ .Values.global.ingress.rootDnsZone }}
{{- else }}
value: data.{{ .Values.global.ingress.rootDnsZone }}
{{- end }}
value: {{ .Values.global.subdomains.discoveryApi }}.{{ .Values.global.ingress.rootDnsZone }}
- name: ALLOWED_ORIGINS
value: {{ .Values.global.ingress.rootDnsZone }},{{ .Values.global.ingress.dnsZone }}
- name: PRESIGN_KEY
Expand Down
2 changes: 2 additions & 0 deletions charts/discovery-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ global:
objectStore:
accessSecret: ""
accessKey: ""
subdomains:
discoveryApi: ""

resources:
limits:
Expand Down
6 changes: 3 additions & 3 deletions charts/urban-os/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
version: 2.3.14
- name: discovery-api
repository: file://../discovery-api
version: 1.4.10
version: 1.4.11
- name: discovery-streams
repository: file://../discovery-streams
version: 1.1.7
Expand Down Expand Up @@ -56,5 +56,5 @@ dependencies:
- name: performancetesting
repository: file://../performancetesting
version: 0.1.8
digest: sha256:1c960a71fe0e81dd1606a80921c189f8682141479b5c52e396f31e3bb839c6d5
generated: "2023-03-27T12:18:02.109054-05:00"
digest: sha256:a1d04769bdfde51ddf31c8281a2ca5ce8becb8c789cc89d567b93400e09b00b6
generated: "2023-04-03T12:56:54.535757-04:00"
2 changes: 1 addition & 1 deletion charts/urban-os/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "1.0"
description: Master chart that deploys the UrbanOS platform. See the individual dependency readmes for configuration options.
name: urban-os
version: 1.13.44
version: 1.13.45

dependencies:
- name: alchemist
Expand Down
2 changes: 1 addition & 1 deletion charts/urban-os/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# urban-os

![Version: 1.13.44](https://img.shields.io/badge/Version-1.13.44-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)
![Version: 1.13.45](https://img.shields.io/badge/Version-1.13.45-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)

Master chart that deploys the UrbanOS platform. See the individual dependency readmes for configuration options.

Expand Down

0 comments on commit 184b0d1

Please sign in to comment.