Skip to content

Commit

Permalink
add cmpv
Browse files Browse the repository at this point in the history
  • Loading branch information
kizuna-lek committed Oct 9, 2024
1 parent 27e329c commit a0f581e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/vanilla-postgresql/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down
27 changes: 27 additions & 0 deletions addons/vanilla-postgresql/templates/cmpv.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit a0f581e

Please sign in to comment.