From bbaf24cf353b23d237a0823ff3513c2588ce9944 Mon Sep 17 00:00:00 2001 From: "Md. Mobarak Hossain" Date: Tue, 20 Aug 2024 16:36:32 +0600 Subject: [PATCH] Add Pgpool version 4.5.3, 4.4.8 (#1239) Signed-off-by: MobarakHsn --- catalog/kubedb/active_versions.json | 2 ++ catalog/kubedb/raw/pgpool/pgpool-4.4.8.yaml | 13 +++++++++++ catalog/kubedb/raw/pgpool/pgpool-4.5.3.yaml | 13 +++++++++++ .../templates/pgpool/pgpool-4.4.8.yaml | 23 +++++++++++++++++++ .../templates/pgpool/pgpool-4.5.3.yaml | 23 +++++++++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 catalog/kubedb/raw/pgpool/pgpool-4.4.8.yaml create mode 100644 catalog/kubedb/raw/pgpool/pgpool-4.5.3.yaml create mode 100644 charts/kubedb-catalog/templates/pgpool/pgpool-4.4.8.yaml create mode 100644 charts/kubedb-catalog/templates/pgpool/pgpool-4.5.3.yaml diff --git a/catalog/kubedb/active_versions.json b/catalog/kubedb/active_versions.json index 932dca247..c3f67eaf5 100644 --- a/catalog/kubedb/active_versions.json +++ b/catalog/kubedb/active_versions.json @@ -105,7 +105,9 @@ "1.17.0" ], "Pgpool": [ + "4.5.3", "4.5.0", + "4.4.8", "4.4.5" ], "Postgres": [ diff --git a/catalog/kubedb/raw/pgpool/pgpool-4.4.8.yaml b/catalog/kubedb/raw/pgpool/pgpool-4.4.8.yaml new file mode 100644 index 000000000..fdfb74fd0 --- /dev/null +++ b/catalog/kubedb/raw/pgpool/pgpool-4.4.8.yaml @@ -0,0 +1,13 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PgpoolVersion +metadata: + name: 4.4.8 +spec: + exporter: + image: ghcr.io/appscode-images/pgpool2_exporter:v1.2.2 + pgpool: + image: ghcr.io/appscode-images/pgpool2:4.4.8 + securityContext: + runAsAnyNonRoot: true + runAsUser: 70 + version: 4.4.8 diff --git a/catalog/kubedb/raw/pgpool/pgpool-4.5.3.yaml b/catalog/kubedb/raw/pgpool/pgpool-4.5.3.yaml new file mode 100644 index 000000000..e5b016eb0 --- /dev/null +++ b/catalog/kubedb/raw/pgpool/pgpool-4.5.3.yaml @@ -0,0 +1,13 @@ +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PgpoolVersion +metadata: + name: 4.5.3 +spec: + exporter: + image: ghcr.io/appscode-images/pgpool2_exporter:v1.2.2 + pgpool: + image: ghcr.io/appscode-images/pgpool2:4.5.3 + securityContext: + runAsAnyNonRoot: true + runAsUser: 70 + version: 4.5.3 diff --git a/charts/kubedb-catalog/templates/pgpool/pgpool-4.4.8.yaml b/charts/kubedb-catalog/templates/pgpool/pgpool-4.4.8.yaml new file mode 100644 index 000000000..f1da310f9 --- /dev/null +++ b/charts/kubedb-catalog/templates/pgpool/pgpool-4.4.8.yaml @@ -0,0 +1,23 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.Pgpool }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PgpoolVersion +metadata: + name: '4.4.8' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +spec: + exporter: + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/pgpool2_exporter") $) }}:v1.2.2' + pgpool: + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/pgpool2") $) }}:4.4.8' + securityContext: + runAsAnyNonRoot: true + runAsUser: 70 + version: 4.4.8 +{{ end }} diff --git a/charts/kubedb-catalog/templates/pgpool/pgpool-4.5.3.yaml b/charts/kubedb-catalog/templates/pgpool/pgpool-4.5.3.yaml new file mode 100644 index 000000000..154fa0635 --- /dev/null +++ b/charts/kubedb-catalog/templates/pgpool/pgpool-4.5.3.yaml @@ -0,0 +1,23 @@ +{{ $featureGates := .Values.featureGates }} +{{- if .Values.global }} + {{ $featureGates = mergeOverwrite dict .Values.featureGates .Values.global.featureGates }} +{{- end }} + +{{ if $featureGates.Pgpool }} + +apiVersion: catalog.kubedb.com/v1alpha1 +kind: PgpoolVersion +metadata: + name: '4.5.3' + labels: + {{- include "kubedb-catalog.labels" . | nindent 4 }} +spec: + exporter: + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/pgpool2_exporter") $) }}:v1.2.2' + pgpool: + image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/pgpool2") $) }}:4.5.3' + securityContext: + runAsAnyNonRoot: true + runAsUser: 70 + version: 4.5.3 +{{ end }}