From e23d41939ffaf97f658d889dd869d13e9828c6da Mon Sep 17 00:00:00 2001 From: Petr Hracek Date: Wed, 30 Oct 2024 09:02:02 +0100 Subject: [PATCH] Update psql is (#1661) --- .../0.0.4/src/Chart.yaml | 13 ++ .../0.0.4/src/README.md | 50 ++++++ .../0.0.4/src/templates/imagestreams.yaml | 147 ++++++++++++++++++ 3 files changed, 210 insertions(+) create mode 100644 charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/Chart.yaml create mode 100644 charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/README.md create mode 100644 charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/templates/imagestreams.yaml diff --git a/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/Chart.yaml b/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/Chart.yaml new file mode 100644 index 0000000000..bbfbd67dc0 --- /dev/null +++ b/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/Chart.yaml @@ -0,0 +1,13 @@ +description: |- + This content is experimental, do not use it in production. Red Hat PostgreSQL database service imagestreams. + For more information about PostgreSQL container see https://github.com/sclorg/postgresql-container/. +annotations: + charts.openshift.io/name: Red Hat PostgreSQL database service imagestreams (experimental) +apiVersion: v2 +appVersion: 0.0.4 +kubeVersion: '>=1.20.0' +name: redhat-postgresql-imagestreams +tags: database,postgresql +sources: + - https://github.com/sclorg/helm-charts +version: 0.0.4 diff --git a/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/README.md b/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/README.md new file mode 100644 index 0000000000..32e3ed9931 --- /dev/null +++ b/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/README.md @@ -0,0 +1,50 @@ +# PostgreSQL Helm Chart imagestreams + +The file contains all supported PostgreSQL imagestreams. + +For more information about helm charts see the offical [Helm Charts Documentation](https://helm.sh/). + +You need to have access to a cluster for each operation with OpenShift 4, like deploying and testing. + +## How to start with helm charts + +The first download and install Helm. Follow instructions mentioned [here](https://helm.sh/docs/intro/install/). + +## How to work with PostgreSQL helm chart + +Before deploying helm chart to OpenShift, you have to create a package. +This can be done by command: + +```commandline +$ helm package ./ +``` + +that will create a helm package named, `postgresql-imagestreams-v0.0.1.tgz` in this directory. + +The next step is to upload Helm Chart to OpenShift. This is done by command: + +```commandline +$ helm install postgresql-imagestreams postgresql-imagestreams-v0.0.1.tgz +``` + +In order to check if everything is imported properly, run command: +```commandline +$ oc get is -o json +``` +that will print all support PostgreSQL imagestreams. + + +## Troubleshooting +For case you need a computer readable output you can add to command mentioned above option `-o json`. + +In case of installation failed for reason like: +```commandline +// Error: INSTALLATION FAILED: cannot re-use a name that is still in use +``` +you have to uninstall previous PostgreSQL Helm Chart by command: + +```commandline +$ helm uninstall postgresql-imagestreams +``` + + diff --git a/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/templates/imagestreams.yaml b/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/templates/imagestreams.yaml new file mode 100644 index 0000000000..1304d74d72 --- /dev/null +++ b/charts/redhat/redhat/redhat-postgresql-imagestreams/0.0.4/src/templates/imagestreams.yaml @@ -0,0 +1,147 @@ +kind: ImageStream +apiVersion: image.openshift.io/v1 +metadata: + name: postgresql + annotations: + openshift.io/display-name: PostgreSQL +spec: + tags: + - name: latest + annotations: + openshift.io/display-name: PostgreSQL (Latest) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL database on RHEL. For more information about + using this database image, including OpenShift considerations, see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + + + WARNING: By selecting this tag, your application will automatically + update to use the latest version of PostgreSQL available on OpenShift, + including major version updates. + iconClass: icon-postgresql + tags: 'database,postgresql' + from: + kind: ImageStreamTag + name: 16-el8 + referencePolicy: + type: Local + - name: 16-el9 + annotations: + openshift.io/display-name: PostgreSQL 16 (RHEL 9) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 16 database on RHEL 9. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '16' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel9/postgresql-16:latest' + referencePolicy: + type: Local + - name: 16-el8 + annotations: + openshift.io/display-name: PostgreSQL 16 (RHEL 8) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 16 database on RHEL 8. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '16' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel8/postgresql-16:latest' + referencePolicy: + type: Local + - name: 15-el9 + annotations: + openshift.io/display-name: PostgreSQL 15 (RHEL 9) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 15 database on RHEL 9. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '15' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel9/postgresql-15:latest' + referencePolicy: + type: Local + - name: 15-el8 + annotations: + openshift.io/display-name: PostgreSQL 15 (RHEL 8) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 15 database on RHEL 8. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '15' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel8/postgresql-15:latest' + referencePolicy: + type: Local + - name: 13-el9 + annotations: + openshift.io/display-name: PostgreSQL 13 (RHEL 9) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 13 database on RHEL 9. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '13' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel9/postgresql-13:latest' + referencePolicy: + type: Local + - name: 13-el8 + annotations: + openshift.io/display-name: PostgreSQL 13 (RHEL 8) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 13 database on RHEL 8. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '13' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel8/postgresql-13:latest' + referencePolicy: + type: Local + - name: 12-el8 + annotations: + openshift.io/display-name: PostgreSQL 12 (RHEL 8) + openshift.io/provider-display-name: 'Red Hat, Inc.' + description: >- + Provides a PostgreSQL 12 database on RHEL 8. For more information + about using this database image, including OpenShift considerations, + see + https://github.com/sclorg/postgresql-container/blob/master/README.md. + iconClass: icon-postgresql + tags: 'database,postgresql' + version: '12' + from: + kind: DockerImage + name: 'registry.redhat.io/rhel8/postgresql-12:latest' + referencePolicy: + type: Local