Skip to content

Commit

Permalink
Merge pull request #92 from sclorg/remove_c8s
Browse files Browse the repository at this point in the history
Remove C8S imagestreams and check that they are not present
  • Loading branch information
phracek authored Sep 4, 2024
2 parents 6301067 + 8cd3ad4 commit 5b6dbec
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 258 deletions.
4 changes: 2 additions & 2 deletions charts/centos/httpd-imagestreams/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: |-
annotations:
charts.openshift.io/name: CentOS Apache HTTP Server imagestreams (experimental)
apiVersion: v2
appVersion: 0.0.2
appVersion: 0.0.3
kubeVersion: '>=1.20.0'
name: httpd-imagestreams
tags: builder,httpd
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.2
version: 0.0.3
37 changes: 7 additions & 30 deletions charts/centos/httpd-imagestreams/src/templates/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@ spec:
tags:
- annotations:
description: >-
Build and serve static content via Apache HTTP Server (httpd) on
CentOS 7. For more information about using this builder image,
including OpenShift considerations, see
Build and serve static content via Apache HTTP Server (httpd) 2.4 on
RHEL 8. For more information about using this builder image,
including OpenShift considerations, see
https://github.com/sclorg/httpd-container/blob/master/2.4/README.md.
WARNING: By selecting this tag, your application will automatically
update to use the latest version of Httpd available on OpenShift,
including major version updates.
iconClass: icon-apache
openshift.io/display-name: Apache HTTP Server (Latest)
openshift.io/display-name: Apache HTTP Server 2.4 (UBI 8)
openshift.io/provider-display-name: Red Hat, Inc.
sampleRepo: https://github.com/sclorg/httpd-ex.git
supports: httpd
tags: builder,httpd
version: "2.4"
from:
kind: ImageStreamTag
name: 2.4-ubi8
kind: DockerImage
name: registry.access.redhat.com/ubi8/httpd-24:latest
referencePolicy:
type: Local
name: latest
Expand Down Expand Up @@ -67,25 +63,6 @@ spec:
referencePolicy:
type: Local
name: 2.4-ubi8
- annotations:
description: >-
Build and serve static content via Apache HTTP Server (httpd) 2.4 on
CentOS 8. For more information about using this builder image,
including OpenShift considerations, see
https://github.com/sclorg/httpd-container/blob/master/2.4/README.md.
iconClass: icon-apache
openshift.io/display-name: Apache HTTP Server 2.4 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
sampleRepo: https://github.com/sclorg/httpd-ex.git
supports: httpd
tags: builder,httpd,hidden
version: "2.4"
from:
kind: DockerImage
name: quay.io/sclorg/httpd-24-c8s:latest
referencePolicy:
type: Local
name: 2.4-el8
- annotations:
description: >-
Build and serve static content via Apache HTTP Server (httpd) 2.4 on
Expand Down
4 changes: 2 additions & 2 deletions charts/centos/mariadb-imagestreams/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ description: |-
annotations:
charts.openshift.io/name: CentOS MariaDB database service imagestreams (experimental)
apiVersion: v2
appVersion: 0.0.2
appVersion: 0.0.3
kubeVersion: '>=1.20.0'
name: mariadb-imagestreams
tags: database,mariadb
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.2
version: 0.0.3
48 changes: 0 additions & 48 deletions charts/centos/mariadb-imagestreams/src/templates/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,6 @@ spec:
name: quay.io/sclorg/mariadb-1011-c9s:latest
referencePolicy:
type: Local
- name: 10.11-el8
annotations:
openshift.io/display-name: MariaDB 10.11 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a MariaDB 10.11 database on CentOS Stream 8. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/mariadb-container/tree/master/10.11/README.md.
iconClass: icon-mariadb
tags: database,mariadb
version: "10.11"
from:
kind: DockerImage
name: quay.io/sclorg/mariadb-1011-c8s:latest
referencePolicy:
type: Local
- name: 10.5-el9
annotations:
openshift.io/display-name: MariaDB 10.5 (CentOS Stream 9)
Expand All @@ -54,35 +38,3 @@ spec:
name: quay.io/sclorg/mariadb-105-c9s:latest
referencePolicy:
type: Local
- name: 10.5-el8
annotations:
openshift.io/display-name: MariaDB 10.5 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a MariaDB 10.5 database on CentOS Stream 8. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/mariadb-container/tree/master/10.5/README.md.
iconClass: icon-mariadb
tags: database,mariadb
version: "10.5"
from:
kind: DockerImage
name: quay.io/sclorg/mariadb-105-c8s:latest
referencePolicy:
type: Local
- name: 10.3-el8
annotations:
openshift.io/display-name: MariaDB 10.3 (CentOS 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a MariaDB 10.3 database on CentOS 8. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/mariadb-container/tree/master/10.3/README.md.
iconClass: icon-mariadb
tags: database,mariadb
version: "10.3"
from:
kind: DockerImage
name: quay.io/sclorg/mariadb-103-c8s:latest
referencePolicy:
type: Local
4 changes: 2 additions & 2 deletions charts/centos/mysql-imagestreams/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ description: |-
annotations:
charts.openshift.io/name: CentOS MySQL database service imagestreams (experimental)
apiVersion: v2
appVersion: 0.0.2
appVersion: 0.0.3
kubeVersion: '>=1.20.0'
name: mysql-imagestreams
tags: database,mysql
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.2
version: 0.0.3
10 changes: 5 additions & 5 deletions charts/centos/mysql-imagestreams/src/templates/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ spec:
tags: mysql
from:
kind: ImageStreamTag
name: 8.0-el8
name: 8.0-c9s
referencePolicy:
type: Local
- name: 8.0-el8
- name: 8.0-c9s
annotations:
openshift.io/display-name: MySQL 8.0 (CentOS Stream 8)
openshift.io/display-name: MySQL 8.0 (CentOS Stream 9)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a MySQL 8.0 database on CentOS Stream 8. For more information about
Provides a MySQL 8.0 database on CentOS Stream 9. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/mysql-container/blob/master/README.md.
iconClass: icon-mysql-database
tags: mysql
version: "8.0"
from:
kind: DockerImage
name: quay.io/sclorg/mysql-80-c8s:latest
name: quay.io/sclorg/mysql-80-c9s:latest
referencePolicy:
type: Local
4 changes: 2 additions & 2 deletions charts/centos/postgresql-imagestreams/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: |-
annotations:
charts.openshift.io/name: CentOS PostgreSQL database service imagestreams
apiVersion: v2
appVersion: 0.0.2
appVersion: 0.0.3
kubeVersion: '>=1.20.0'
name: postgresql-imagestreams
tags: database,postgresql
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.2
version: 0.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,6 @@ spec:
name: quay.io/sclorg/postgresql-16-c9s:latest
referencePolicy:
type: Local
- name: 16-el8
annotations:
openshift.io/display-name: PostgreSQL 16 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a PostgreSQL 16 database on CentOS Stream 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: quay.io/sclorg/postgresql-16-c8s:latest
referencePolicy:
type: Local
- name: 15-el9
annotations:
openshift.io/display-name: PostgreSQL 15 (CentOS Stream 9)
Expand All @@ -73,22 +57,6 @@ spec:
name: quay.io/sclorg/postgresql-15-c9s:latest
referencePolicy:
type: Local
- name: 15-el8
annotations:
openshift.io/display-name: PostgreSQL 15 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a PostgreSQL 15 database on CentOS Stream 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: quay.io/sclorg/postgresql-15-c8s:latest
referencePolicy:
type: Local
- name: 13-el9
annotations:
openshift.io/display-name: PostgreSQL 13 (CentOS Stream 9)
Expand All @@ -105,51 +73,3 @@ spec:
name: quay.io/sclorg/postgresql-13-c9s:latest
referencePolicy:
type: Local
- name: 13-el8
annotations:
openshift.io/display-name: PostgreSQL 13 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a PostgreSQL 13 database on CentOS Stream 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: quay.io/sclorg/postgresql-13-c8s:latest
referencePolicy:
type: Local
- name: 12-el8
annotations:
openshift.io/display-name: PostgreSQL 12 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a PostgreSQL 12 database on CentOS Stream 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: quay.io/sclorg/postgresql-12-c8s:latest
referencePolicy:
type: Local
- name: 10-el8
annotations:
openshift.io/display-name: PostgreSQL 10 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: >-
Provides a PostgreSQL 10 database on CentOS Stream 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: "10"
from:
kind: DockerImage
name: quay.io/sclorg/postgresql-10-c8s:latest
referencePolicy:
type: Local
4 changes: 2 additions & 2 deletions charts/centos/redis-imagestreams/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ description: |-
annotations:
charts.openshift.io/name: Provides a Redis database on CentOS imagestreams (experimental)
apiVersion: v2
appVersion: 0.0.1
appVersion: 0.0.2
kubeVersion: '>=1.20.0'
name: redis-imagestreams
tags: builder,redis
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.1
version: 0.0.2
16 changes: 0 additions & 16 deletions charts/centos/redis-imagestreams/src/templates/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@ spec:
referencePolicy:
type: Local
name: latest
- annotations:
description: >-
Provides a Redis 6 database on CentOS Stream 8. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/redis-container/tree/master/6/README.md.
iconClass: icon-redis
openshift.io/display-name: Redis 6 (CentOS Stream 8)
openshift.io/provider-display-name: Red Hat, Inc.
tags: redis
version: "6"
from:
kind: DockerImage
name: quay.io/sclorg/redis-6-c8s:latest
referencePolicy:
type: Local
name: 6-el8
- annotations:
description: >-
Provides a Redis 6 database on CentOS Stream 9. For more information about
Expand Down
28 changes: 14 additions & 14 deletions tests/test_httpd_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ def teardown_method(self):
self.hc_api.delete_project()

@pytest.mark.parametrize(
"version,registry",
"version,registry,expected",
[
("2.4-ubi9", "registry.redhat.io/ubi9/httpd-24:latest"),
("2.4-ubi8", "registry.redhat.io/ubi8/httpd-24:latest"),
("2.4-el8", "registry.redhat.io/rhel8/httpd-24"),
("2.4-el9", "registry.redhat.io/rhel9/httpd-24"),
("2.4-ubi9", "registry.redhat.io/ubi9/httpd-24:latest", True),
("2.4-ubi8", "registry.redhat.io/ubi8/httpd-24:latest", True),
("2.4-el8", "registry.redhat.io/rhel8/httpd-24", True),
("2.4-el9", "registry.redhat.io/rhel9/httpd-24", True),
],
)
def test_package_imagestream(self, version, registry):
def test_package_imagestream(self, version, registry, expected):
self.hc_api.set_version("0.0.1")
assert self.hc_api.helm_package()
assert self.hc_api.helm_installation()
assert self.hc_api.check_imagestreams(version=version, registry=registry)
assert self.hc_api.check_imagestreams(version=version, registry=registry) == expected


class TestHelmCentOSHttpdImagestreams:
Expand All @@ -44,15 +44,15 @@ def teardown_method(self):
self.hc_api.delete_project()

@pytest.mark.parametrize(
"version,registry",
"version,registry,expected",
[
("2.4-ubi9", "registry.access.redhat.com/ubi9/httpd-24:latest"),
("2.4-ubi8", "registry.access.redhat.com/ubi8/httpd-24:latest"),
("2.4-el8", "quay.io/sclorg/httpd-24-c8s:latest"),
("2.4-el9", "quay.io/sclorg/httpd-24-c9s:latest"),
("2.4-ubi9", "registry.access.redhat.com/ubi9/httpd-24:latest", True),
("2.4-ubi8", "registry.access.redhat.com/ubi8/httpd-24:latest", True),
("2.4-el8", "quay.io/sclorg/httpd-24-c8s:latest", False),
("2.4-el9", "quay.io/sclorg/httpd-24-c9s:latest", True),
]
)
def test_package_imagestream(self, version, registry):
def test_package_imagestream(self, version, registry, expected):
assert self.hc_api.helm_package()
assert self.hc_api.helm_installation()
assert self.hc_api.check_imagestreams(version=version, registry=registry)
assert self.hc_api.check_imagestreams(version=version, registry=registry) == expected
Loading

0 comments on commit 5b6dbec

Please sign in to comment.