Commit c7df80ba authored by Gabriele Giammatteo's avatar Gabriele Giammatteo
Browse files

migrate to common 0.5

parent 2bbcbf8a
Pipeline #3567 failed with stages
in 8 seconds
......@@ -2,7 +2,7 @@ apiVersion: v2
name: visualization
description: The CYBELE Visualization
type: application
version: 0.1.2
version: 0.2.0
appVersion: 0.1.0
home: https://gitlab.res.eng.it/cybele/visualization
......@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
version: ~0.3.5
version: ~0.5.0
repository: https://harbor.res.eng.it/chartrepo/cybele
- name: mongodb
version: 8.1.5
......
{{- include "cybele-common.deployment.component" (list "backend" "visualization.backend-deployment" .Values.backend .) -}}
{{- include "cybco.deployment.component" (list "backend" "visualization.backend-deployment" .) -}}
{{- define "visualization.backend-deployment" -}}
spec:
template:
spec:
containers:
-
{{- include "cybele-common.container" (list . "visualization.backend-container") }}
{{- include "cybco.container" (list . "visualization.backend-container") }}
{{- end -}}
{{- define "visualization.backend-container" -}}
......@@ -14,7 +14,7 @@ ports:
containerPort: 4000
env:
- name: MONGO_URL
value: mongodb://{{ include "call-nested" (list . "mongodb" "mongodb.fullname") }}:27017
value: mongodb://{{ include "cybco.call-in-virtual-context" (list "mongodb.fullname" . "mongodb" "") }}:27017
- name: DB_NAME
value: viz-backend
- name: MONGO_USER
......
{{- if eq "true" (include "call-sub-values" (list "backend" "cybele-common.ingressEnabled" .Values.backend .)) -}}
{{- include "cybele-common.ingress.component.default" (list "backend" .Values.backend .) -}}
{{- if eq "true" (include "cybco.value-in-virtual-context" (list "ingress.enabled" . "" "backend")) -}}
{{- template "cybco.ingress.component.default" (list "backend" .) -}}
{{- end -}}
\ No newline at end of file
{{- include "cybele-common.service.component.default" (list "backend" .Values.backend .) -}}
{{- include "cybco.service.component.default" (list "backend" .) -}}
{{- include "cybele-common.deployment.component" (list "frontend" "visualization.frontend-deployment" .Values .) -}}
{{- include "cybco.deployment.component" (list "frontend" "visualization.frontend-deployment" .) -}}
{{- define "visualization.frontend-deployment" -}}
spec:
template:
spec:
containers:
-
{{ include "cybele-common.container" (list . "visualization.frontend-container") }}
{{ include "cybco.container" (list . "visualization.frontend-container") }}
{{- end -}}
{{- define "visualization.frontend-container" -}}
env:
- name: REACT_APP_BACKEND_URL
value: http://{{ include "visualization-backend.hostname" . }}/
value: {{ include "cybco.call-in-virtual-context" (list "cybco.external.url" . "" "backend") }}
{{- end -}}
\ No newline at end of file
{{- if eq "true" (include "cybele-common.ingressEnabled" .) -}}
{{- include "cybele-common.ingress.component.default" (list "frontend" .Values .) -}}
{{- if eq "true" (include "cybco.value-in-virtual-context" (list "ingress.enabled" . "" "frontend")) -}}
{{- template "cybco.ingress.component.default" (list "frontend" .) -}}
{{- end -}}
\ No newline at end of file
{{- include "cybele-common.service.component.default" (list "frontend" .Values .) -}}
{{- include "cybco.service.component.default" (list "frontend" .) -}}
{{ template "cybele-common.stable-secret" (list . "visualization.mongodb-secret-data")}}
{{ template "cybco.stable-secret" (list . "visualization.mongodb-secret-data")}}
{{- define "visualization.mongodb-secret-data" -}}
metadata:
name: {{ include "mongodb.secretName" . }}
......
# Default values for dashboard.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
global:
visualization: {}
mongodb:
auth:
......@@ -22,12 +16,7 @@ backend:
repository: harbor.res.eng.it/cybele/visualization/visualization-backend
pullPolicy: IfNotPresent
tag: 0.1.0
service:
port: 9000
ingress:
host:
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
fullnamePrefix: ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment