Skip to content
Snippets Groups Projects
Commit 462984f5 authored by Matteo Di Carlo's avatar Matteo Di Carlo
Browse files

ST-515 fixes

parent f0b1242f
Branches
Tags v0.1.3
No related merge requests found
...@@ -92,7 +92,7 @@ uninstall-chart: ## uninstall the ska-docker helm chart on the namespace ska-doc ...@@ -92,7 +92,7 @@ uninstall-chart: ## uninstall the ska-docker helm chart on the namespace ska-doc
reinstall-chart: uninstall-chart install-chart ## reinstall the ska-docker helm chart on the namespace ska-docker reinstall-chart: uninstall-chart install-chart ## reinstall the ska-docker helm chart on the namespace ska-docker
upgrade-chart: ## upgrade the ska-docker helm chart on the namespace ska-docker upgrade-chart: ## upgrade the ska-docker helm chart on the namespace ska-docker
@helm upgrade --set global.minikube=$(MINIKUBE) $(RELEASE_NAME) $(UMBRELLA_CHART_PATH) --namespace $(KUBE_NAMESPACE) @helm upgrade --set global.minikube=$(MINIKUBE) --set global.tango_host=$(TANGO_HOST) $(RELEASE_NAME) $(UMBRELLA_CHART_PATH) --namespace $(KUBE_NAMESPACE)
chart_lint: ## lint check the helm chart chart_lint: ## lint check the helm chart
@helm lint $(UMBRELLA_CHART_PATH) \ @helm lint $(UMBRELLA_CHART_PATH) \
......
...@@ -2,12 +2,12 @@ apiVersion: v2 ...@@ -2,12 +2,12 @@ apiVersion: v2
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for deploying the HDB++ archiver for the MVP on Kubernetes description: A Helm chart for deploying the HDB++ archiver for the MVP on Kubernetes
name: archiver name: archiver
version: 0.2.3 version: 0.2.4
appVersion: 1.16.0 appVersion: 1.16.0
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-util - name: tango-util
version: 0.2.1 version: 0.2.2
repository: file://../tango-util repository: file://../tango-util
# The archiver cannot have the tango-base since we allow only one level in the chart hierarchies # The archiver cannot have the tango-base since we allow only one level in the chart hierarchies
# - name: tango-base # - name: tango-base
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
{{ $default_tango_host := printf "%s-%s" "databaseds-tango-base-" .Release.Name }} {{ $default_tango_host := printf "%s-%s" "databaseds-tango-base-" .Release.Name }}
{{ $tango_host := tpl (coalesce .Values.global.tango_host .Values.tango_host $default_tango_host | toString) . }} {{ $tango_host := tpl (coalesce .Values.global.tango_host .Values.tango_host $default_tango_host | toString) . }}
{{ $dsconfig := coalesce .Values.global.dsconfig .Values.dsconfig}}
{{ $itango := coalesce .Values.global.itango .Values.itango}}
--- ---
apiVersion: v1 apiVersion: v1
...@@ -41,8 +43,8 @@ spec: ...@@ -41,8 +43,8 @@ spec:
name: "attrconfig-configuration-{{ template "archiver.name" . }}-{{ .Release.Name }}" name: "attrconfig-configuration-{{ template "archiver.name" . }}-{{ .Release.Name }}"
initContainers: initContainers:
- name: wait-for-devices - name: wait-for-devices
image: "{{ .Values.global.dsconfig.image.registry }}/{{ .Values.global.dsconfig.image.image }}:{{ .Values.global.dsconfig.image.tag }}" image: "{{ $dsconfig.image.registry }}/{{ $dsconfig.image.image }}:{{ $dsconfig.image.tag }}"
imagePullPolicy: {{ .Values.global.dsconfig.image.pullPolicy }} imagePullPolicy: {{ $dsconfig.image.pullPolicy }}
command: command:
- sh - sh
args: args:
...@@ -54,8 +56,8 @@ spec: ...@@ -54,8 +56,8 @@ spec:
value: {{ $tango_host }} value: {{ $tango_host }}
containers: containers:
- name: attrconfig - name: attrconfig
image: "{{ .Values.global.itango.image.registry }}/{{ .Values.global.itango.image.image }}:{{ .Values.global.itango.image.tag }}" image: "{{ $itango.image.registry }}/{{ $itango.image.image }}:{{ $itango.image.tag }}"
imagePullPolicy: {{ .Values.global.itango.image.pullPolicy }} imagePullPolicy: {{ $itango.image.pullPolicy }}
command: command:
- sh - sh
args: args:
......
...@@ -12,19 +12,22 @@ telescope: SKA-mid ...@@ -12,19 +12,22 @@ telescope: SKA-mid
global: global:
minikube: true minikube: true
tango_host: databaseds-tango-base-{{.Release.Name}}:10000
labels: labels:
app: ska-docker app: ska-docker
annotations: annotations:
app.gitlab.com/app: CI_PROJECT_PATH_SLUG app.gitlab.com/app: CI_PROJECT_PATH_SLUG
app.gitlab.com/env: CI_ENVIRONMENT_SLUG app.gitlab.com/env: CI_ENVIRONMENT_SLUG
tango_host: databaseds-tango-base-{{.Release.Name}}:10000
environment_variables: []
dsconfig: dsconfig:
configuration_file: data/configuration.json
image: image:
registry: nexus.engageska-portugal.pt/ska-docker registry: nexus.engageska-portugal.pt/ska-docker
image: tango-dsconfig image: tango-dsconfig
tag: 1.5.0 tag: 1.5.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
itango: itango:
image: image:
registry: nexus.engageska-portugal.pt/ska-docker registry: nexus.engageska-portugal.pt/ska-docker
...@@ -32,9 +35,6 @@ global: ...@@ -32,9 +35,6 @@ global:
tag: 9.3.1 tag: 9.3.1
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
dsconfig:
configuration_file: data/configuration.json
attributes: attributes:
configuration_file: data/attribute2archive.json configuration_file: data/attribute2archive.json
......
...@@ -5,14 +5,11 @@ name: ska-docker ...@@ -5,14 +5,11 @@ name: ska-docker
version: 0.1.5 version: 0.1.5
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-util
version: 0.2.1
repository: file://../tango-util
- name: tango-base - name: tango-base
version: 0.2.4 version: 0.2.5
repository: file://../tango-base repository: file://../tango-base
condition: tango-base.enabled,global.sub-system.tango-base.enabled condition: tango-base.enabled,global.sub-system.tango-base.enabled
- name: archiver - name: archiver
version: 0.2.3 version: 0.2.4
repository: file://../archiver repository: file://../archiver
condition: archiver.enabled,global.sub-system.archiver.enabled condition: archiver.enabled,global.sub-system.archiver.enabled
...@@ -2,9 +2,9 @@ apiVersion: v2 ...@@ -2,9 +2,9 @@ apiVersion: v2
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for deploying the TANGO base system on Kubernetes description: A Helm chart for deploying the TANGO base system on Kubernetes
name: tango-base name: tango-base
version: 0.2.4 version: 0.2.5
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-util - name: tango-util
version: 0.2.1 version: 0.2.2
repository: file://../tango-util repository: file://../tango-util
\ No newline at end of file
...@@ -2,8 +2,8 @@ apiVersion: v2 ...@@ -2,8 +2,8 @@ apiVersion: v2
description: A Helm chart library of utilities for TANGO deployents description: A Helm chart library of utilities for TANGO deployents
name: tango-util name: tango-util
type: library type: library
appVersion: 0.2.1 appVersion: 0.2.2
version: 0.2.1 version: 0.2.2
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
maintainers: maintainers:
- name: Matteo Di Carlo - name: Matteo Di Carlo
......
{{- define "tango-util.configuration.tpl" -}} {{- define "tango-util.configuration.tpl" -}}
{{ $default_tango_host := printf "%s-%s" "databaseds-tango-base-" .Release.Name }} {{ $default_tango_host := printf "%s-%s" "databaseds-tango-base-" .Release.Name }}
{{ $tango_host := tpl (coalesce .Values.global.tango_host .Values.tango_host $default_tango_host | toString) . }} {{ $tango_host := tpl (coalesce .Values.global.tango_host .Values.tango_host $default_tango_host | toString) . }}
{{ $dsconfig := coalesce .Values.global.dsconfig .Values.dsconfig}}
{{ $itango := coalesce .Values.global.itango .Values.itango}}
--- ---
# Device Server configurations # Device Server configurations
apiVersion: v1 apiVersion: v1
...@@ -56,8 +58,8 @@ spec: ...@@ -56,8 +58,8 @@ spec:
spec: spec:
initContainers: initContainers:
- name: check-databaseds-ready - name: check-databaseds-ready
image: {{ .Values.global.itango.image.registry }}/{{ .Values.global.itango.image.image }}:{{ .Values.global.itango.image.tag }} image: {{ $itango.image.registry }}/{{ $itango.image.image }}:{{ $itango.image.tag }}
imagePullPolicy: {{ .Values.global.itango.image.pullPolicy }} imagePullPolicy: {{ $itango.image.pullPolicy }}
command: command:
- retry - retry
- --max=10 - --max=10
...@@ -76,8 +78,8 @@ spec: ...@@ -76,8 +78,8 @@ spec:
{{- end }} {{- end }}
containers: containers:
- name: dsconfig - name: dsconfig
image: "{{ .Values.global.dsconfig.image.registry }}/{{ .Values.global.dsconfig.image.image }}:{{ .Values.global.dsconfig.image.tag }}" image: "{{ $dsconfig.image.registry }}/{{ $dsconfig.image.image }}:{{ $dsconfig.image.tag }}"
imagePullPolicy: {{ .Values.global.dsconfig.image.pullPolicy }} imagePullPolicy: {{ $dsconfig.image.pullPolicy }}
command: # exit code 2 is CONFIG_APPLIED - https://github.com/MaxIV-KitsControls/lib-maxiv-dsconfig/blob/master/dsconfig/utils.py#L11 !!!! this should not be an error !!!! command: # exit code 2 is CONFIG_APPLIED - https://github.com/MaxIV-KitsControls/lib-maxiv-dsconfig/blob/master/dsconfig/utils.py#L11 !!!! this should not be an error !!!!
- sh - sh
- data/bootstrap.sh - data/bootstrap.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment