VOL-1797 - fix helm lint issues
Change-Id: I74ccff1f7f431e05fc3963d0707382f478a010f0
diff --git a/voltha-adapter-openolt/Chart.yaml b/voltha-adapter-openolt/Chart.yaml
index a76a027..7c243a4 100644
--- a/voltha-adapter-openolt/Chart.yaml
+++ b/voltha-adapter-openolt/Chart.yaml
@@ -17,5 +17,5 @@
description: A Helm chart for Voltha OpenOLT Adapter
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.0.2
+version: 2.0.3
appVersion: 2.0.0
diff --git a/voltha-adapter-openolt/templates/adapters-openolt.yaml b/voltha-adapter-openolt/templates/adapters-openolt.yaml
index 83a352b..e4b9f1b 100644
--- a/voltha-adapter-openolt/templates/adapters-openolt.yaml
+++ b/voltha-adapter-openolt/templates/adapters-openolt.yaml
@@ -38,9 +38,17 @@
containers:
- name: adapter-open-olt
{{- if .Values.use_go }}
- image: {{ tpl .Values.images.adapter_open_olt.registry . }}{{ tpl .Values.images.adapter_open_olt.repository . }}:{{ tpl .Values.images.adapter_open_olt.tag_go . }}
+ {{- $image_tag := tpl .Values.images.adapter_open_olt.tag_go . }}
+ {{- if eq "::DEFAULT::" $image_tag }}
+ {{- $image_tag = .Values.defaults.default_go_image_tag }}
+ {{- end }}
+ image: {{ tpl .Values.images.adapter_open_olt.registry . }}{{ tpl .Values.images.adapter_open_olt.repository . }}:{{ $image_tag }}
{{- else }}
- image: {{ tpl .Values.images.adapter_open_olt.registry . }}{{ tpl .Values.images.adapter_open_olt.repository . }}:{{ tpl .Values.images.adapter_open_olt.tag . }}
+ {{- $image_tag := tpl .Values.images.adapter_open_olt.tag . }}
+ {{- if eq "::DEFAULT::" $image_tag }}
+ {{- $image_tag = .Values.defaults.default_py_image_tag }}
+ {{- end }}
+ image: {{ tpl .Values.images.adapter_open_olt.registry . }}{{ tpl .Values.images.adapter_open_olt.repository . }}:{{ $image_tag }}
{{- end }}
imagePullPolicy: {{ tpl .Values.images.adapter_open_olt.pullPolicy . }}
args:
diff --git a/voltha-adapter-openolt/values.yaml b/voltha-adapter-openolt/values.yaml
index 7610fa4..affb839 100644
--- a/voltha-adapter-openolt/values.yaml
+++ b/voltha-adapter-openolt/values.yaml
@@ -17,10 +17,12 @@
# Default overrides
defaults:
- image_registry:
- image_tag:
- image_org:
- image_pullPolicy:
+ image_registry: ""
+ image_tag: "::DEFAULT::"
+ image_org: "voltha/"
+ image_pullPolicy: "Always"
+ default_go_image_tag: "master-go"
+ default_py_image_tag: '{{ .Chart.AppVersion }}'
# Define connectivity to required services
services:
@@ -43,8 +45,8 @@
images:
adapter_open_olt:
- registry: '{{ .Values.defaults.image_registry | default "" }}'
- repository: '{{ .Values.defaults.image_org | default "voltha/" }}voltha-openolt-adapter'
- tag_go: '{{ .Values.defaults.image_tag | default "master-go" }}'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ registry: '{{ .Values.defaults.image_registry }}'
+ repository: '{{ .Values.defaults.image_org }}voltha-openolt-adapter'
+ tag_go: '{{ .Values.defaults.image_tag }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy | default "Always" }}'
diff --git a/voltha-adapter-openonu/Chart.yaml b/voltha-adapter-openonu/Chart.yaml
index 558d5a4..d372a21 100644
--- a/voltha-adapter-openonu/Chart.yaml
+++ b/voltha-adapter-openonu/Chart.yaml
@@ -17,5 +17,5 @@
description: A Helm chart for Voltha OpenONU Adapter
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.0.1
+version: 2.0.2
appVersion: 2.0.0
diff --git a/voltha-adapter-openonu/templates/adapters-openolt.yaml b/voltha-adapter-openonu/templates/adapters-openolt.yaml
index d4afdc7..9447d90 100644
--- a/voltha-adapter-openonu/templates/adapters-openolt.yaml
+++ b/voltha-adapter-openonu/templates/adapters-openolt.yaml
@@ -37,7 +37,7 @@
spec:
containers:
- name: adapter-open-onu
- image: {{ tpl .Values.images.adapter_open_onu.registry . }}{{ tpl .Values.images.adapter_open_onu.repository . }}:{{ tpl .Values.images.adapter_open_onu.tag . }}
+ image: {{ tpl .Values.images.adapter_open_onu.registry . }}{{ tpl .Values.images.adapter_open_onu.repository . }}:{{ tpl ( tpl .Values.images.adapter_open_onu.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.adapter_open_onu.pullPolicy . }}
args:
- "/voltha/adapters/brcm_openomci_onu/main.py"
diff --git a/voltha-adapter-openonu/values.yaml b/voltha-adapter-openonu/values.yaml
index 234f580..3070a8a 100644
--- a/voltha-adapter-openonu/values.yaml
+++ b/voltha-adapter-openonu/values.yaml
@@ -15,10 +15,10 @@
---
# Default overrides
defaults:
- image_registry:
- image_tag:
- image_org:
- image_pullPolicy:
+ image_registry: ""
+ image_tag: '{{ .Chart.AppVersion }}'
+ image_org: "voltha/"
+ image_pullPolicy: "Always"
# Define connectivity to required services
services:
@@ -41,7 +41,7 @@
images:
adapter_open_onu:
- registry: '{{ .Values.defaults.image_registry | default "" }}'
- repository: '{{ .Values.defaults.image_org | default "voltha/" }}voltha-openonu-adapter'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
- pullPolicy: '{{ .Values.defaults.image_pullPolicy | default "Always" }}'
+ registry: '{{ .Values.defaults.image_registry }}'
+ repository: '{{ .Values.defaults.image_org }}voltha-openonu-adapter'
+ tag: '{{ .Values.defaults.image_tag }}'
+ pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
diff --git a/voltha-adapter-simulated/Chart.yaml b/voltha-adapter-simulated/Chart.yaml
index 2c20864..760d9dd 100644
--- a/voltha-adapter-simulated/Chart.yaml
+++ b/voltha-adapter-simulated/Chart.yaml
@@ -17,5 +17,5 @@
description: A Helm chart for Voltha Simulated Adaptyer based on K8S resources in Voltha project
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.0.2
+version: 2.0.3
appVersion: 2.0.0
diff --git a/voltha-adapter-simulated/templates/adapters-simulated.yaml b/voltha-adapter-simulated/templates/adapters-simulated.yaml
index 2e61898..66a7922 100644
--- a/voltha-adapter-simulated/templates/adapters-simulated.yaml
+++ b/voltha-adapter-simulated/templates/adapters-simulated.yaml
@@ -38,7 +38,7 @@
spec:
containers:
- name: adapter-simulated-olt
- image: {{ tpl .Values.images.adapter_simulated_olt.registry . }}{{ tpl .Values.images.adapter_simulated_olt.repository . }}:{{ tpl .Values.images.adapter_simulated_olt.tag . }}
+ image: {{ tpl .Values.images.adapter_simulated_olt.registry . }}{{ tpl .Values.images.adapter_simulated_olt.repository . }}:{{ tpl ( tpl .Values.images.adapter_simulated_olt.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.adapter_simulated_olt.pullPolicy . }}
args:
- "/app/simulated_olt"
@@ -77,7 +77,7 @@
spec:
containers:
- name: adapter-simulated-onu
- image: {{ tpl .Values.images.adapter_simulated_onu.registry . }}{{ tpl .Values.images.adapter_simulated_onu.repository . }}:{{ tpl .Values.images.adapter_simulated_onu.tag . }}
+ image: {{ tpl .Values.images.adapter_simulated_onu.registry . }}{{ tpl .Values.images.adapter_simulated_onu.repository . }}:{{ tpl ( tpl .Values.images.adapter_simulated_onu.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.adapter_simulated_onu.pullPolicy . }}
args:
- "/app/simulated_onu"
diff --git a/voltha-adapter-simulated/values.yaml b/voltha-adapter-simulated/values.yaml
index cc774c7..51741c9 100644
--- a/voltha-adapter-simulated/values.yaml
+++ b/voltha-adapter-simulated/values.yaml
@@ -15,10 +15,10 @@
---
# Default overrides
defaults:
- image_registry:
- image_tag:
- image_org:
- image_pullPolicy:
+ image_registry: ""
+ image_tag: '{{ .Chart.AppVersion }}'
+ image_org: "voltha/"
+ image_pullPolicy: "Always"
# Define connectivity to required services
services:
@@ -43,13 +43,13 @@
images:
adapter_simulated_olt:
- registry: '{{ .Values.defaults.image_registry | default "" }}'
- repository: '{{ .Values.defaults.image_org | default "voltha/" }}voltha-adapter-simulated-olt'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
- pullPolicy: '{{ .Values.defaults.image_pullPolicy | default "Always" }}'
+ registry: '{{ .Values.defaults.image_registry }}'
+ repository: '{{ .Values.defaults.image_org }}voltha-adapter-simulated-olt'
+ tag: '{{ .Values.defaults.image_tag }}'
+ pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
adapter_simulated_onu:
- registry: '{{ .Values.defaults.image_registry | default "" }}'
- repository: '{{ .Values.defaults.image_org | default "voltha/" }}voltha-adapter-simulated-onu'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
- pullPolicy: '{{ .Values.defaults.image_pullPolicy | default "Always" }}'
+ registry: '{{ .Values.defaults.image_registry }}'
+ repository: '{{ .Values.defaults.image_org }}voltha-adapter-simulated-onu'
+ tag: '{{ .Values.defaults.image_tag }}'
+ pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
diff --git a/voltha/Chart.yaml b/voltha/Chart.yaml
index 1fae3e3..530d835 100644
--- a/voltha/Chart.yaml
+++ b/voltha/Chart.yaml
@@ -17,5 +17,5 @@
description: A Helm chart for Voltha based on K8S resources in Voltha project
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.0.8
+version: 2.0.9
appVersion: 2.0.0
diff --git a/voltha/templates/api-server.yaml b/voltha/templates/api-server.yaml
index 0221e60..5b690e6 100644
--- a/voltha/templates/api-server.yaml
+++ b/voltha/templates/api-server.yaml
@@ -51,7 +51,7 @@
serviceAccountName: {{ .Values.serviceaccount }}
containers:
- name: arouter
- image: {{ tpl .Values.images.afrouter.registry . }}{{ tpl .Values.images.afrouter.repository . }}:{{ tpl .Values.images.afrouter.tag . }}
+ image: {{ tpl .Values.images.afrouter.registry . }}{{ tpl .Values.images.afrouter.repository . }}:{{ tpl ( tpl .Values.images.afrouter.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.afrouter.pullPolicy . }}
volumeMounts:
- name: config-volume
@@ -71,7 +71,7 @@
value: {{ mul .Values.replicas.rw_core 2 | quote}}
- name: NUM_RO_PODS
value: {{ quote .Values.replicas.ro_core }}
- image: {{ tpl .Values.images.afrouterd.registry . }}{{ tpl .Values.images.afrouterd.repository . }}:{{ tpl .Values.images.afrouterd.tag . }}
+ image: {{ tpl .Values.images.afrouterd.registry . }}{{ tpl .Values.images.afrouterd.repository . }}:{{ tpl ( tpl .Values.images.afrouterd.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.afrouterd.pullPolicy . }}
command: ["/app/arouterd"]
restartPolicy: Always
diff --git a/voltha/templates/cli.yaml b/voltha/templates/cli.yaml
index fe5afa5..e185730 100644
--- a/voltha/templates/cli.yaml
+++ b/voltha/templates/cli.yaml
@@ -54,7 +54,7 @@
serviceAccountName: {{ .Values.serviceaccount }}
containers:
- name: vcli
- image: {{ tpl .Values.images.cli.registry . }}{{ tpl .Values.images.cli.repository . }}:{{ tpl .Values.images.cli.tag . }}
+ image: {{ tpl .Values.images.cli.registry . }}{{ tpl .Values.images.cli.repository . }}:{{ tpl ( tpl .Values.images.cli.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.cli.pullPolicy . }}
env:
- name: POD_IP
diff --git a/voltha/templates/ofagent.yaml b/voltha/templates/ofagent.yaml
index 81f83ec..6ff7c03 100644
--- a/voltha/templates/ofagent.yaml
+++ b/voltha/templates/ofagent.yaml
@@ -37,7 +37,7 @@
serviceAccountName: {{ .Values.serviceaccount }}
containers:
- name: ofagent
- image: {{ tpl .Values.images.ofagent.registry . }}{{ tpl .Values.images.ofagent.repository . }}:{{ tpl .Values.images.ofagent.tag . }}
+ image: {{ tpl .Values.images.ofagent.registry . }}{{ tpl .Values.images.ofagent.repository . }}:{{ tpl ( tpl .Values.images.ofagent.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.ofagent.pullPolicy . }}
env:
- name: CONTROLLER_SERVICE
diff --git a/voltha/templates/ro-core.yaml b/voltha/templates/ro-core.yaml
index b7cbb42..ce4a6bd 100644
--- a/voltha/templates/ro-core.yaml
+++ b/voltha/templates/ro-core.yaml
@@ -51,7 +51,7 @@
serviceAccountName: {{ .Values.serviceaccount }}
containers:
- name: voltha
- image: {{ tpl .Values.images.ro_core.registry . }}{{ tpl .Values.images.ro_core.repository . }}:{{ tpl .Values.images.ro_core.tag . }}
+ image: {{ tpl .Values.images.ro_core.registry . }}{{ tpl .Values.images.ro_core.repository . }}:{{ tpl ( tpl .Values.images.ro_core.tag . ) . }}
imagePullPolicy: {{ tpl .Values.images.ro_core.pullPolicy . }}
env:
- name: NAMESPACE
diff --git a/voltha/templates/rw-core.yaml b/voltha/templates/rw-core.yaml
index ee2ddd0..28e5f22 100644
--- a/voltha/templates/rw-core.yaml
+++ b/voltha/templates/rw-core.yaml
@@ -14,7 +14,7 @@
{{- $root := . -}}
{{- $count := mul .Values.replicas.rw_core 2 | int }}
-{{- $tag := tpl .Values.images.rw_core.tag . }}
+{{- $tag := tpl ( tpl .Values.images.rw_core.tag . ) . }}
{{- $repository := tpl .Values.images.rw_core.repository . }}
{{- $registry := tpl .Values.images.rw_core.registry . }}
{{- $pullpolicy := tpl .Values.images.rw_core.pullPolicy . }}
diff --git a/voltha/values.yaml b/voltha/values.yaml
index dc7930b..6429af9 100644
--- a/voltha/values.yaml
+++ b/voltha/values.yaml
@@ -19,8 +19,8 @@
# Default overrides
defaults:
- image_registry: ""
- image_tag:
+ image_registry: ''
+ image_tag: '{{ .Chart.AppVersion }}'
image_org: "voltha/"
image_pullPolicy: "Always"
rw_core:
@@ -84,36 +84,36 @@
cli:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-cli'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
ofagent:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-ofagent'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
ro_core:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-ro-core'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
rw_core:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-rw-core'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
afrouter:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-afrouter'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
afrouterd:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-afrouterd'
- tag: '{{ .Values.defaults.image_tag | default .Chart.AppVersion }}'
+ tag: '{{ .Values.defaults.image_tag }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'
restartPolicy: 'Always'