diff --git a/addons/vanilla-postgresql/templates/_helpers.tpl b/addons/vanilla-postgresql/templates/_helpers.tpl index c4f80e66e..7c0981124 100644 --- a/addons/vanilla-postgresql/templates/_helpers.tpl +++ b/addons/vanilla-postgresql/templates/_helpers.tpl @@ -59,7 +59,7 @@ Define vanilla-postgresql 14 component definition name with Chart.Version suffix {{- if eq (len .Values.cmpdVersionPrefix.vanillaPostgresql14) 0 -}} vanilla-postgresql-14 {{- else -}} -{{ .Values.cmpdVersionPrefix.vanillaPostgresql12 }} +{{ .Values.cmpdVersionPrefix.vanillaPostgresql14 }} {{- end -}} {{- end -}} diff --git a/addons/vanilla-postgresql/templates/cmpv.yaml b/addons/vanilla-postgresql/templates/cmpv.yaml new file mode 100644 index 000000000..5c4714e03 --- /dev/null +++ b/addons/vanilla-postgresql/templates/cmpv.yaml @@ -0,0 +1,27 @@ +apiVersion: apps.kubeblocks.io/v1 +kind: ComponentVersion +metadata: + name: {{ include "vanilla-postgresql.componentVersion" . }} + labels: + {{- include "vanilla-postgresql.labels" . | nindent 4 }} +spec: + compatibilityRules: + - compDefs: + - {{ include "vanilla-postgresql12.componentDefNamePrefix" . }} + releases: + - 12.15 + - compDefs: + - {{ include "vanilla-postgresql14.componentDefNamePrefix" . }} + releases: + - 14.7 + releases: + - name: 12.15 + changes: + serviceVersion: 12.15 # {{ .Values.componentServiceVersion.vanillaPostgresql12 }} + images: + postgresql: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tags.major12.minor15 }} + - name: 14.7 + changes: + serviceVersion: 14.7 + images: + postgresql: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tags.major14.minor07 }}