-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from phracek/main
Add support for CentOS Stream 10 valkey imagestreams
- Loading branch information
Showing
5 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
chart: | ||
name: valkey-imagestreams | ||
description: This is the CentOS Valkey imagestream chart | ||
publicPgpKey: null | ||
users: | ||
- githubUsername: phracek | ||
vendor: | ||
label: centos | ||
name: Cent OS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. Provides a Valkey database on CentOS Stream imagestreams. | ||
For more information about Valkey container see https://github.com/sclorg/valkey-container/. | ||
annotations: | ||
charts.openshift.io/name: Provides a Valkey database on CentOS imagestreams (experimental) | ||
apiVersion: v2 | ||
appVersion: 0.0.1 | ||
kubeVersion: '>=1.20.0' | ||
name: valkey-imagestreams | ||
tags: builder,valkey | ||
sources: | ||
- https://github.com/sclorg/helm-charts | ||
version: 0.0.1 |
43 changes: 43 additions & 0 deletions
43
charts/centos/valkey-imagestreams/src/templates/imagestreams.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: image.openshift.io/v1 | ||
kind: ImageStream | ||
metadata: | ||
annotations: | ||
openshift.io/display-name: Valkey | ||
name: valkey | ||
spec: | ||
tags: | ||
- annotations: | ||
description: >- | ||
Provides a Valkey 7 database on CentOS Stream 10. For more information | ||
about using this database image, including OpenShift considerations, see | ||
https://github.com/sclorg/valkey-container/tree/master/7/README.md. | ||
WARNING: By selecting this tag, your application will automatically | ||
update to use the latest version of Valkey available on OpenShift, | ||
including major version updates. | ||
iconClass: icon-valkey | ||
openshift.io/display-name: Valkey (Latest) | ||
openshift.io/provider-display-name: Red Hat, Inc. | ||
tags: valkey | ||
from: | ||
kind: ImageStreamTag | ||
name: 7-c10s | ||
referencePolicy: | ||
type: Local | ||
name: latest | ||
- annotations: | ||
description: >- | ||
Provides a Valkey 7 database on CentOS Stream 10. For more information about | ||
using this database image, including OpenShift considerations, see | ||
https://github.com/sclorg/valkey-container/tree/master/6/README.md. | ||
iconClass: icon-valkey | ||
openshift.io/display-name: Valkey 7 (CentOS Stream 10) | ||
openshift.io/provider-display-name: Red Hat, Inc. | ||
tags: valkey | ||
version: "7" | ||
from: | ||
kind: DockerImage | ||
name: quay.io/sclorg/valkey-7-c10s:latest | ||
referencePolicy: | ||
type: Local | ||
name: 7-el10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import os | ||
|
||
import pytest | ||
from pathlib import Path | ||
|
||
from container_ci_suite.helm import HelmChartsAPI | ||
|
||
test_dir = Path(os.path.abspath(os.path.dirname(__file__))) | ||
|
||
class TestHelmCentOSValkeyImageStreams: | ||
|
||
def setup_method(self): | ||
package_name = "valkey-imagestreams" | ||
path = test_dir / "../charts/centos" | ||
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir) | ||
|
||
def teardown_method(self): | ||
self.hc_api.delete_project() | ||
|
||
@pytest.mark.parametrize( | ||
"version,registry,expected", | ||
[ | ||
("7-el10", "quay.io/sclorg/valkey-7-c10s:latest", True), | ||
], | ||
) | ||
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) == expected |