Make adapter charts handle tags consistently with other voltha charts
Change-Id: I2d7b99a1545430e06600927eb665ab0a46cb89bd
diff --git a/voltha-adapter-openonu/values.yaml b/voltha-adapter-openonu/values.yaml
index 3070a8a..4c2459f 100644
--- a/voltha-adapter-openonu/values.yaml
+++ b/voltha-adapter-openonu/values.yaml
@@ -16,7 +16,7 @@
# Default overrides
defaults:
image_registry: ""
- image_tag: '{{ .Chart.AppVersion }}'
+ image_tag: ~
image_org: "voltha/"
image_pullPolicy: "Always"
@@ -43,5 +43,5 @@
adapter_open_onu:
registry: '{{ .Values.defaults.image_registry }}'
repository: '{{ .Values.defaults.image_org }}voltha-openonu-adapter'
- tag: '{{ .Values.defaults.image_tag }}'
+ tag: '{{- if hasKey .Values.defaults "image_tag" }}{{- if .Values.defaults.image_tag }}{{ .Values.defaults.image_tag }}{{- else }}{{ .Chart.AppVersion }}{{- end }}{{- else }}{{ .Chart.AppVersion }}{{- end }}'
pullPolicy: '{{ .Values.defaults.image_pullPolicy }}'