Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/redhat/redhat-nodejs-application/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ description: This content is experimental, do not use it in production. An examp
about using this template, including OpenShift considerations, see https://github.com/sclorg/nodejs-ex/blob/master/README.md.
name: redhat-nodejs-application
tags: quickstart,nodejs
version: 0.0.5
version: 0.0.6
kubeVersion: '>=1.20.0'
annotations:
charts.openshift.io/name: Red Hat Apache Rails application with no database (experimental)
charts.openshift.io/provider: Red Hat
charts.openshift.io/providerType: redhat
apiVersion: v2
appVersion: 0.0.5
appVersion: 0.0.6
sources:
- https://github.com/sclorg/helm-charts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"nodejs_version": {
"type": "string",
"description": "Version of NodeJS image to be used (20-ubi8, 22-ubi9, or latest).",
"enum": [ "latest", "20-ubi8", "20-ubi9", "22-ubi9", "22-ubi10" ]
"enum": [ "latest", "20-ubi8", "20-ubi9", "22-ubi9", "22-ubi10", "24-ubi10", "24-ubi9" ]
},
"memory_limit": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions charts/redhat/redhat-nodejs-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: Red Hat NodeJS applications on UBI (experimental)
apiVersion: v2
appVersion: 0.0.7
appVersion: 0.0.8
kubeVersion: '>=1.20.0'
name: redhat-nodejs-imagestreams
tags: builder,nodejs
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.7
version: 0.0.8
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
openshift.io/display-name: Node.js (Latest)
openshift.io/provider-display-name: Red Hat, Inc.
description: |-
Build and run Node.js applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/22/README.md.
Build and run Node.js applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/24/README.md.

WARNING: By selecting this tag, your application will automatically update to use the latest version of Node.js available on OpenShift, including major version updates.
iconClass: icon-nodejs
Expand All @@ -21,7 +21,69 @@ spec:
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: ImageStreamTag
name: 22-ubi9
name: 24-ubi10
referencePolicy:
type: Local
- name: 24-ubi10
annotations:
openshift.io/display-name: Node.js 24 (UBI 10)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 24 applications on UBI 10. For more information
about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/24/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '24'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi10/nodejs-24:latest
referencePolicy:
type: Local
- name: 24-ubi10-minimal
annotations:
openshift.io/display-name: Node.js 24 (UBI 10 Minimal)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 24 applications on UBI 10 Minimal. For more
information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/24-minimal/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '24'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi10/nodejs-24-minimal:latest
referencePolicy:
type: Local
- name: 24-ubi9
annotations:
openshift.io/display-name: Node.js 24 (UBI 9)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 24 applications on UBI 9. For more information
about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/24/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '24'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi9/nodejs-24:latest
referencePolicy:
type: Local
- name: 24-ubi9-minimal
annotations:
openshift.io/display-name: Node.js 24 (UBI 9 Minimal)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 24 applications on UBI 9 Minimal. For more
information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/24-minimal/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '24'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi9/nodejs-24-minimal:latest
referencePolicy:
type: Local
- name: 22-ubi10
Expand Down
4 changes: 2 additions & 2 deletions charts/redhat/redhat-valkey-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 Valkey database on RHEL imagestreams (experimental)
apiVersion: v2
appVersion: 0.0.1
appVersion: 0.0.2
kubeVersion: '>=1.20.0'
name: redhat-valkey-imagestreams
tags: builder,valkey
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.1
version: 0.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
description: >-
Provides a Valkey 8 database on RHEL 10. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/valkey-container/tree/master/6/README.md.
https://github.com/sclorg/valkey-container/tree/master/8/README.md.
iconClass: icon-valkey
openshift.io/display-name: Valkey 8 (RHEL 10)
openshift.io/provider-display-name: 'Red Hat, Inc.'
Expand All @@ -42,3 +42,19 @@ spec:
referencePolicy:
type: Local
name: 8-el10
- annotations:
description: >-
Provides a Valkey 8 database on RHEL 9. For more information about
using this database image, including OpenShift considerations, see
https://github.com/sclorg/valkey-container/tree/master/8/README.md.
iconClass: icon-valkey
openshift.io/display-name: Valkey 8 (RHEL 9)
openshift.io/provider-display-name: 'Red Hat, Inc.'
tags: valkey
version: '8'
from:
kind: DockerImage
name: 'registry.redhat.io/rhel9/valkey-8:latest'
referencePolicy:
type: Local
name: 8-el9
4 changes: 2 additions & 2 deletions charts/redhat/redhat-valkey-persistent/src/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ description: |-
NOTE: You must have persistent volumes available in your cluster to use this template.
name: redhat-valkey-persistent
tags: database,valkey
version: 0.0.2
version: 0.0.3
annotations:
charts.openshift.io/name: Red Hat Valkey in-memory data structure store, with persistent storage (experimental)
apiVersion: v2
appVersion: 0.0.2
appVersion: 0.0.3
kubeVersion: '>=1.20.0'
sources:
- https://github.com/sclorg/helm-charts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"valkey_version": {
"type": "string",
"description": "Specify valkey imagestream tag",
"enum": [ "latest", "8-el10" ]
"enum": [ "latest", "8-el10", "8-el9" ]
},
"pvc": {
"type": "object",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_nodejs_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def teardown_method(self):
@pytest.mark.parametrize(
"version",
[
"24-ubi10",
"24-ubi10-minimal",
"24-ubi9",
"24-ubi9-minimal",
"22-ubi10",
"22-ubi10-minimal",
"22-ubi9",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_nodejs_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class TestHelmRHELNodeJSImageStreams:
@pytest.mark.parametrize(
"version,registry,expected",
[
("24-ubi10", "registry.redhat.io/ubi10/nodejs-24:latest", True),
("24-ubi10-minimal", "registry.redhat.io/ubi10/nodejs-24-minimal:latest", True),
("24-ubi9", "registry.redhat.io/ubi9/nodejs-24:latest", True),
("24-ubi9-minimal", "registry.redhat.io/ubi9/nodejs-24-minimal:latest", True),
("22-ubi10", "registry.redhat.io/ubi10/nodejs-22:latest", True),
("22-ubi10-minimal", "registry.redhat.io/ubi10/nodejs-22-minimal:latest", True),
("22-ubi9", "registry.redhat.io/ubi9/nodejs-22:latest", True),
Expand Down
17 changes: 10 additions & 7 deletions tests/test_python_django_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@


class TestHelmPythonDjangoAppTemplate:

def setup_method(self):
package_name = "redhat-python-django-application"
path = test_dir / "../charts/redhat"
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, shared_cluster=False)
self.hc_api = HelmChartsAPI(
path=path,
package_name=package_name,
tarball_dir=test_dir,
shared_cluster=False,
)

def teardown_method(self):
self.hc_api.delete_project()
Expand All @@ -26,9 +30,6 @@ def teardown_method(self):
("3.12-ubi8", "4.2.x"),
("3.11-ubi9", "4.2.x"),
("3.11-ubi8", "4.2.x"),
("3.9-ubi9", "master"),
("3.9-ubi8", "master"),
("3.6-ubi8", "master"),
],
)
def test_django_application_helm_test(self, version, branch):
Expand All @@ -43,8 +44,10 @@ def test_django_application_helm_test(self, version, branch):
"python_version": version,
"namespace": self.hc_api.namespace,
"source_repository_ref": branch,
"name": pod_name
"name": pod_name,
}
)
assert self.hc_api.is_s2i_pod_running(pod_name_prefix=pod_name, timeout=600)
assert self.hc_api.test_helm_chart(expected_str=["Welcome to your Django application"])
assert self.hc_api.test_helm_chart(
expected_str=["Welcome to your Django application"]
)
19 changes: 11 additions & 8 deletions tests/test_python_django_psql_persistent.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@


class TestHelmPythonDjangoPsqlTemplate:

def setup_method(self):
package_name = "redhat-django-psql-persistent"
path = test_dir / "../charts/redhat"
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, shared_cluster=False)
self.hc_api = HelmChartsAPI(
path=path,
package_name=package_name,
tarball_dir=test_dir,
shared_cluster=False,
)

def teardown_method(self):
self.hc_api.delete_project()
Expand All @@ -23,12 +27,9 @@ def teardown_method(self):
[
("3.12-minimal-ubi10", "3.12", "4.2.x"),
("3.12-ubi9", "3.12", "4.2.x"),
("3.12-ubi8", "3.12","4.2.x"),
("3.12-ubi8", "3.12", "4.2.x"),
("3.11-ubi9", "3.11", "4.2.x"),
("3.11-ubi8", "3.11", "4.2.x"),
("3.9-ubi9", "3.9", "master"),
("3.9-ubi8", "3.9", "master"),
("3.6-ubi8", "3.6", "master"),
],
)
def test_django_psql_helm_test(self, version, pod_version, branch):
Expand All @@ -47,8 +48,10 @@ def test_django_psql_helm_test(self, version, pod_version, branch):
"namespace": self.hc_api.namespace,
"source_repository_ref": branch,
"postgresql_version": "15-el9",
"name": pod_name
"name": pod_name,
}
)
assert self.hc_api.is_s2i_pod_running(pod_name_prefix=pod_name, timeout=600)
assert self.hc_api.test_helm_chart(expected_str=["Welcome to your Django application"])
assert self.hc_api.test_helm_chart(
expected_str=["Welcome to your Django application"]
)
14 changes: 10 additions & 4 deletions tests/test_valkey_imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,31 @@

test_dir = Path(os.path.abspath(os.path.dirname(__file__)))


@pytest.fixture(scope="module")
def helm_api(request):
helm_api = HelmChartsAPI(path=test_dir / "../charts/redhat", package_name="redhat-valkey-imagestreams", tarball_dir=test_dir)
helm_api = HelmChartsAPI(
path=test_dir / "../charts/redhat",
package_name="redhat-valkey-imagestreams",
tarball_dir=test_dir,
)
# app_name = os.path.basename(request.param)
yield helm_api
pass
helm_api.delete_project()


class TestHelmRHELOSValkeyImageStreams:


@pytest.mark.parametrize(
"version,registry,expected",
[
("8-el10", "registry.redhat.io/rhel10/valkey-8:latest", True),
("8-el9", "registry.redhat.io/rhel9/valkey-8:latest", True),
],
)
def test_package_imagestream(self, helm_api, version, registry, expected):
assert helm_api.helm_package()
assert helm_api.helm_installation()
assert helm_api.check_imagestreams(version=version, registry=registry) == expected
assert (
helm_api.check_imagestreams(version=version, registry=registry) == expected
)
15 changes: 8 additions & 7 deletions tests/test_valkey_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@


class TestHelmValkeyPersistent:

def setup_method(self):
package_name = "redhat-valkey-persistent"
path = test_dir / "../charts/redhat"
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, shared_cluster=True)
self.hc_api = HelmChartsAPI(
path=path,
package_name=package_name,
tarball_dir=test_dir,
shared_cluster=True,
)
self.hc_api.package_name = "redhat-valkey-imagestreams"
assert self.hc_api.helm_package()
assert self.hc_api.helm_installation()
Expand All @@ -25,17 +29,14 @@ def teardown_method(self):
"version",
[
"8-el10",
"8-el9",
],
)
def test_package_persistent(self, version):

self.hc_api.package_name = "redhat-valkey-persistent"
assert self.hc_api.helm_package()
assert self.hc_api.helm_installation(
values={
"valkey_version": version,
"namespace": self.hc_api.namespace
}
values={"valkey_version": version, "namespace": self.hc_api.namespace}
)
assert self.hc_api.is_pod_running(pod_name_prefix="valkey")
assert self.hc_api.test_helm_chart(expected_str=["PONG"])