diff --git a/helm-chart/eoapi/Chart.yaml b/helm-chart/eoapi/Chart.yaml index f7b48ff6..6d1872f1 100644 --- a/helm-chart/eoapi/Chart.yaml +++ b/helm-chart/eoapi/Chart.yaml @@ -17,7 +17,7 @@ kubeVersion: ">=1.23.0-0" # 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.7" +version: "0.1.8" # 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 diff --git a/helm-chart/eoapi/templates/services/ingress-nginx.yaml b/helm-chart/eoapi/templates/services/ingress-nginx.yaml index 3debccc7..def0fbee 100644 --- a/helm-chart/eoapi/templates/services/ingress-nginx.yaml +++ b/helm-chart/eoapi/templates/services/ingress-nginx.yaml @@ -41,7 +41,7 @@ spec: {{- end }}{{/* END: if index $v "enabled" */}} {{- end }}{{/* END: if (or (eq $serviceName "raster") (eq $serviceName "stac") (eq $serviceName "vector")) */}} {{- end }}{{/* END: range $serviceName, $v := .Values*/}} - {{- if not $.Values.testing }} + {{- if (and (not $.Values.testing) (.Values.docServer.enabled)) }} - pathType: Prefix path: /(/|$) backend: diff --git a/helm-chart/eoapi/templates/services/nginx-doc-server.yaml b/helm-chart/eoapi/templates/services/nginx-doc-server.yaml index 706fd96a..30723e66 100644 --- a/helm-chart/eoapi/templates/services/nginx-doc-server.yaml +++ b/helm-chart/eoapi/templates/services/nginx-doc-server.yaml @@ -1,4 +1,4 @@ -{{- if (and (.Values.ingress.className) (eq .Values.ingress.className "nginx") (not .Values.testing)) }} +{{- if (and (.Values.ingress.className) (eq .Values.ingress.className "nginx") (not .Values.testing) (.Values.docServer.enabled))}} apiVersion: v1 kind: ConfigMap metadata: diff --git a/helm-chart/eoapi/values.yaml b/helm-chart/eoapi/values.yaml index 8f0484f2..2aa23f59 100644 --- a/helm-chart/eoapi/values.yaml +++ b/helm-chart/eoapi/values.yaml @@ -190,7 +190,8 @@ vector: PORT: "8080" # https://www.uvicorn.org/settings/#production WEB_CONCURRENCY: "10" - +docServer: + enabled: true