Skip to content

Commit

Permalink
Update postgresql imagestreams and remove RHEL-7 (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
phracek committed Aug 5, 2024
1 parent f5f9bae commit ad9038b
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.3
kubeVersion: '>=1.20.0'
name: redhat-postgresql-imagestreams
tags: database,postgresql
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.3
Original file line number Diff line number Diff line change
@@ -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
```


Original file line number Diff line number Diff line change
@@ -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: 13-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

0 comments on commit ad9038b

Please sign in to comment.