Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CYBELE
helm
visualization
Commits
c7df80ba
Commit
c7df80ba
authored
Nov 27, 2020
by
Gabriele Giammatteo
Browse files
migrate to common 0.5
parent
2bbcbf8a
Pipeline
#3567
failed with stages
in 8 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Chart.yaml
View file @
c7df80ba
...
...
@@ -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
...
...
templates/backend-deployment.yaml
View file @
c7df80ba
{{
- include "cyb
ele-common
.deployment.component" (list "backend" "visualization.backend-deployment"
.Values.backend
.) -
}}
{{
- include "cyb
co
.deployment.component" (list "backend" "visualization.backend-deployment" .) -
}}
{{
- define "visualization.backend-deployment" -
}}
spec
:
template
:
spec
:
containers
:
-
{{
- include "cyb
ele-common
.container" (list . "visualization.backend-container")
}}
{{
- include "cyb
co
.container" (list . "visualization.backend-container")
}}
{{
- end -
}}
{{
- define "visualization.backend-container" -
}}
...
...
@@ -14,7 +14,7 @@ ports:
containerPort
:
4000
env
:
-
name
:
MONGO_URL
value
:
mongodb://{{ include "c
all-nested" (list . "mongodb"
"mongodb.fullname") }}:27017
value
:
mongodb://{{ include "c
ybco.call-in-virtual-context" (list
"mongodb.fullname"
. "mongodb" ""
) }}:27017
-
name
:
DB_NAME
value
:
viz-backend
-
name
:
MONGO_USER
...
...
templates/backend-ingress.yaml
View file @
c7df80ba
{{
- if eq "true" (include "c
all-sub-values" (list "backend" "cybele-common.
ingress
E
nabled" .
Values.
backend
.
)) -
}}
{{
-
include "cybele-common
.ingress.component.default" (list "backend" .
Values.backend .
) -
}}
{{
- if eq "true" (include "c
ybco.value-in-virtual-context" (list "
ingress
.e
nabled" .
"" "
backend
"
)) -
}}
{{
-
template "cybco
.ingress.component.default" (list "backend" .)
-
}}
{{
- end -
}}
\ No newline at end of file
templates/backend-service.yaml
View file @
c7df80ba
{{
- include "cyb
ele-common
.service.component.default" (list "backend"
.Values.backend
.) -
}}
{{
- include "cyb
co
.service.component.default" (list "backend" .) -
}}
templates/frontend-deployment.yaml
View file @
c7df80ba
{{
- include "cyb
ele-common
.deployment.component" (list "frontend" "visualization.frontend-deployment"
.Values
.) -
}}
{{
- include "cyb
co
.deployment.component" (list "frontend" "visualization.frontend-deployment" .) -
}}
{{
- define "visualization.frontend-deployment" -
}}
spec
:
template
:
spec
:
containers
:
-
{{
include "cyb
ele-common
.container" (list . "visualization.frontend-container")
}}
{{
include "cyb
co
.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
templates/frontend-ingress.yaml
View file @
c7df80ba
{{
- if eq "true" (include "cyb
ele-common.
ingress
E
nabled" .) -
}}
{{
-
include "cybele-common
.ingress.component.default" (list "frontend" .
Values .
) -
}}
{{
- if eq "true" (include "cyb
co.value-in-virtual-context" (list "
ingress
.e
nabled" .
"" "frontend")
) -
}}
{{
-
template "cybco
.ingress.component.default" (list "frontend" .)
-
}}
{{
- end -
}}
\ No newline at end of file
templates/frontend-service.yaml
View file @
c7df80ba
{{
- include "cyb
ele-common
.service.component.default" (list "frontend"
.Values
.) -
}}
{{
- include "cyb
co
.service.component.default" (list "frontend" .) -
}}
templates/mongodb-secret-override.yml
View file @
c7df80ba
{{
template "cyb
ele-common
.stable-secret" (list . "visualization.mongodb-secret-data")
}}
{{
template "cyb
co
.stable-secret" (list . "visualization.mongodb-secret-data")
}}
{{
- define "visualization.mongodb-secret-data" -
}}
metadata
:
name
:
{{
include "mongodb.secretName" .
}}
...
...
values.yaml
View file @
c7df80ba
# 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
:
"
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment