-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adding missing secretName in ingress configuration. Helm improve…
…ments proposal. (#1604) * Adding missing secretName in ingress configuration. Introducing Bitnami charts. Signed-off-by: cccs-eric <eric.ladouceur@cyber.gc.ca> * Split configmap into indivudual ones and added checksum for deployment reload on change. Also added metadata and search config class support. Signed-off-by: cccs-eric <eric.ladouceur@cyber.gc.ca>
- Loading branch information
Showing
11 changed files
with
151 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
amundsen-kube-helm/templates/helm/templates/configmap-frontend.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "amundsen.fullname" . }}-{{ .Values.frontEnd.serviceName }} | ||
labels: | ||
app: {{ template "amundsen.name" . }} | ||
component: {{ .Values.frontEnd.serviceName }} | ||
chart: {{ template "amundsen.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
data: | ||
FRONTEND_BASE: {{ .Values.frontEnd.baseUrl }} | ||
{{ if .Values.frontEnd.config.class }} | ||
FRONTEND_SVC_CONFIG_MODULE_CLASS: {{ .Values.frontEnd.config.class }} | ||
{{ end }} | ||
SEARCHSERVICE_BASE: http://{{ .Chart.Name }}-{{ .Values.search.serviceName }}:5001 | ||
METADATASERVICE_BASE: http://{{ .Chart.Name }}-{{ .Values.metadata.serviceName }}:5002 | ||
LONG_RANDOM_STRING: {{ quote .Values.LONG_RANDOM_STRING }} | ||
{{ if .Values.flaskApp.module }} | ||
APP_WRAPPER: {{ .Values.flaskApp.module }} | ||
{{ end }} | ||
{{ if .Values.flaskApp.class }} | ||
APP_WRAPPER_CLASS: {{ .Values.flaskApp.class }} | ||
{{ end }} | ||
{{ if .Values.frontEnd.ALL_UNEDITABLE_SCHEMAS }} | ||
ALL_UNEDITABLE_SCHEMAS: {{ .Values.frontEnd.ALL_UNEDITABLE_SCHEMAS }} | ||
{{ end }} | ||
{{ if .Values.oidc.enabled }} | ||
FLASK_APP_MODULE_NAME: flaskoidc | ||
FLASK_APP_CLASS_NAME: FlaskOIDC | ||
FLASK_OIDC_CLIENT_ID: {{ .Values.oidc.frontend.client_id }} | ||
FLASK_OIDC_CLIENT_SECRET: {{ .Values.oidc.frontend.client_secret }} | ||
{{ toYaml .Values.oidc.configs | indent 2 }} | ||
{{ end }} | ||
{{ if .Values.frontEnd.envVars }} | ||
{{ toYaml .Values.frontEnd.envVars | indent 2 }} | ||
{{ end }} |
40 changes: 40 additions & 0 deletions
40
amundsen-kube-helm/templates/helm/templates/configmap-metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "amundsen.fullname" . }}-{{ .Values.metadata.serviceName }} | ||
labels: | ||
app: {{ include "amundsen.name" . }} | ||
component: {{ include "amundsen.fullname" . }} | ||
chart: {{ include "amundsen.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
data: | ||
{{ if .Values.metadata.config.class }} | ||
METADATA_SVC_CONFIG_MODULE_CLASS: {{ .Values.metadata.config.class }} | ||
{{ end }} | ||
PROXY_HOST: {{ if .Values.metadata.proxy.host }}{{ .Values.metadata.proxy.host }}{{ else }}bolt://{{ .Release.Name }}-neo4j.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}{{ end }} | ||
{{ if .Values.metadata.proxy.port }} | ||
PROXY_PORT: {{ .Values.metadata.proxy.port }} | ||
{{ end }} | ||
{{ if .Values.metadata.proxy.user }} | ||
CREDENTIALS_PROXY_USER: {{ .Values.metadata.proxy.user }} | ||
{{ end }} | ||
{{ if .Values.metadata.proxy.password }} | ||
CREDENTIALS_PROXY_PASSWORD: {{ .Values.metadata.proxy.password }} | ||
{{ end }} | ||
{{ if .Values.flaskApp.module }} | ||
FLASK_APP_MODULE_NAME: {{ .Values.flaskApp.module }} | ||
{{ end }} | ||
{{ if .Values.flaskApp.class }} | ||
FLASK_APP_CLASS_NAME: {{ .Values.flaskApp.class }} | ||
{{ end }} | ||
{{ if .Values.oidc.enabled }} | ||
FLASK_APP_MODULE_NAME: flaskoidc | ||
FLASK_APP_CLASS_NAME: FlaskOIDC | ||
FLASK_OIDC_CLIENT_ID: {{ .Values.oidc.metadata.client_id }} | ||
FLASK_OIDC_CLIENT_SECRET: {{ .Values.oidc.metadata.client_secret }} | ||
{{ toYaml .Values.oidc.configs | indent 2 }} | ||
{{ end }} | ||
{{ if .Values.metadata.envVars }} | ||
{{ toYaml .Values.metadata.envVars | indent 2 }} | ||
{{ end }} |
38 changes: 38 additions & 0 deletions
38
amundsen-kube-helm/templates/helm/templates/configmap-search.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "amundsen.fullname" . }}-{{ .Values.search.serviceName }} | ||
labels: | ||
app: {{ include "amundsen.name" . }} | ||
component: {{ include "amundsen.fullname" . }} | ||
chart: {{ include "amundsen.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
data: | ||
{{ if .Values.search.config.class }} | ||
SEARCH_SVC_CONFIG_MODULE_CLASS: {{ .Values.search.config.class }} | ||
{{ end }} | ||
PROXY_ENDPOINT: {{ if .Values.search.proxy.endpoint }}{{ .Values.search.proxy.endpoint }}{{ else }}{{ .Values.elasticsearch.fullnameOverride }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}{{ end }} | ||
{{ if .Values.search.proxy.user }} | ||
CREDENTIALS_PROXY_USER: {{ .Values.search.proxy.user }} | ||
{{ end }} | ||
{{ if .Values.search.proxy.password }} | ||
CREDENTIALS_PROXY_PASSWORD: {{ .Values.search.proxy.password }} | ||
{{ end }} | ||
|
||
{{ if .Values.flaskApp.module }} | ||
FLASK_APP_MODULE_NAME: {{ .Values.flaskApp.module }} | ||
{{ end }} | ||
{{ if .Values.flaskApp.class }} | ||
FLASK_APP_CLASS_NAME: {{ .Values.flaskApp.class }} | ||
{{ end }} | ||
{{ if .Values.oidc.enabled }} | ||
FLASK_APP_MODULE_NAME: flaskoidc | ||
FLASK_APP_CLASS_NAME: FlaskOIDC | ||
FLASK_OIDC_CLIENT_ID: {{ .Values.oidc.search.client_id }} | ||
FLASK_OIDC_CLIENT_SECRET: {{ .Values.oidc.search.client_secret }} | ||
{{ toYaml .Values.oidc.configs | indent 2 }} | ||
{{ end }} | ||
{{ if .Values.search.envVars }} | ||
{{ toYaml .Values.search.envVars | indent 2 }} | ||
{{ end }} |
111 changes: 0 additions & 111 deletions
111
amundsen-kube-helm/templates/helm/templates/configmaps.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters