Skip to content
Snippets Groups Projects
Commit 9e5b709a authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

tango-util: charts folder re-organizatio to implement charts and sub-charts

relying on tango-util library.
parent 541b0f4e
Branches
Tags
1 merge request!10Tango util
Pipeline #10553 canceled
{{/*
Expand the name of the chart.
*/}}
{{- define "mid-csp.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "mid-csp.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "mid-csp.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "mid-csp.labels" -}}
helm.sh/chart: {{ include "mid-csp.chart" . }}
{{ include "mid-csp.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "mid-csp.selectorLabels" -}}
app.kubernetes.io/name: {{ include "mid-csp.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "mid-csp.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "mid-csp.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
# Default values for mid-csp.
csp-proto:
# Default values for csp-proto.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
display: ":0"
xauthority: "~/.Xauthority"
system: csp
subsystem: csp-lmc
telescope: SKA-mid
csplmc:
enabled: true
cbf-proto:
midcbfmcs:
enabled: true
tango-base:
tangodb:
enabled: true
use_pv: false
image:
registry: nexus.engageska-portugal.pt/ska-docker
image: mid-csp-lmc
tag: 0.6.9-dev
pullPolicy: IfNotPresent
deviceServers:
- name: midcapabilitymonitor
function: csp-capability-monitoring
domain: csp-monitoring
args:
- "-c"
- "/venv/bin/python /app/csp_lmc_mid/MidCspCapabilityMonitor.py monitor"
- name: midcspmaster
function: csp-central-control
domain: csp-monitoring
args:
- "-c"
- "retry --max=20 -- tango_admin --ping-device mid_csp_cbf/sub_elt/master &&\
retry --max=5 -- tango_admin --ping-device mid_csp/capability_monitor/search_beams &&\
/venv/bin/python /app/csp_lmc_mid/MidCspMaster.py master"
- name: midcspsubarray01
function: csp-subarray-observation
domain: subarray
args:
- "-c"
- "retry --max=10 -- tango_admin --ping-device mid_csp/elt/master &&\
retry --max=10 -- tango_admin --ping-device mid_csp_cbf/sub_elt/subarray_01 &&\
/venv/bin/python /app/csp_lmc_mid/MidCspSubarray.py subarray1"
- name: midcspsubarray02
function: csp-subarray-observation
domain: subarray
args:
- "-c"
- "retry --max=10 -- tango_admin --ping-device mid_csp/elt/master &&\
retry --max=10 -- tango_admin --ping-device mid_csp_cbf/sub_elt/subarray_02 &&\
/venv/bin/python /app/csp_lmc_mid/MidCspSubarray.py subarray2"
- name: midcspsubarray03
function: csp-subarray-observation
domain: subarray
args:
- "-c"
- "retry --max=10 -- tango_admin --ping-device mid_csp/elt/master &&\
retry --max=10 -- tango_admin --ping-device mid_csp_cbf/sub_elt/subarray_03 &&\
/venv/bin/python /app/csp_lmc_mid/MidCspSubarray.py subarray3"
dsconfig:
image:
registry: nexus.engageska-portugal.pt/ska-docker
image: tango-dsconfig
tag: 1.2.5.1
pullPolicy: IfNotPresent
nodeSelector: {}
affinity: {}
tolerations: []
resources:
requests:
cpu: 150m # 150m = 0.15 CPU
memory: 128Mi # 128Mi = 0.12 GB mem
ephemeral-storage: 256Mi
limits:
cpu: 250m # 250m = 0.25 CPU
memory: 256Mi # 256Mi = 0.25 GB mem
ephemeral-storage: 512Mi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment