Skip to content

Commit

Permalink
rely on PatchRuntimeHandlers for runtime replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Aug 8, 2024
1 parent 73aa900 commit 22ce054
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion e2e/regression/regression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func TestRegression(t *testing.T) {
yaml, err := os.ReadFile(yamlDir + file.Name())
require.NoError(err)
yaml = bytes.ReplaceAll(yaml, []byte("REPLACE_NAMESPACE"), []byte(ct.Namespace))
yaml = bytes.ReplaceAll(yaml, []byte("REPLACE_RUNTIME"), []byte(runtimeHandler))

yamlResources, err := kuberesource.UnmarshalApplyConfigurations(yaml)
require.NoError(err)
Expand Down
2 changes: 1 addition & 1 deletion e2e/regression/test-data/apache-httpd-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ spec:
ports:
- containerPort: 8443
- containerPort: 8080
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/apache-httpd-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ spec:
ports:
- containerPort: 8443
- containerPort: 8080
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ spec:
- containerPort: 9000
- containerPort: 8443
- containerPort: 8080
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ spec:
- name: configdb
emptyDir:
sizeLimit: 10Mi
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/mysql-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
image: quay.io/sclorg/mysql-80-c9s@sha256:bc6bf18a8aa5efe09418ba251b4a7e37b92697b4d03788f68efefeba002da587
ports:
- containerPort: 3306
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/mysql-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
image: quay.io/fedora/mysql-80@sha256:4d74e013519e4f9a3adbdeed8350e3fffb92364d137b14a824a509dbbc045769
ports:
- containerPort: 3306
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
image: quay.io/nginx/nginx-unprivileged@sha256:a30a0565b20529d70babf04b81cc64d2dc04cfce9ff55d535710fcb35ca4b425
ports:
- containerPort: 8080
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ spec:
- name: prometheus
emptyDir:
sizeLimit: 10Mi
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ spec:
- name: data
emptyDir:
sizeLimit: 10Mi
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc
2 changes: 1 addition & 1 deletion e2e/regression/test-data/varnish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ spec:
ports:
- containerPort: 8443
- containerPort: 8080
runtimeClassName: REPLACE_RUNTIME
runtimeClassName: contrast-cc

0 comments on commit 22ce054

Please sign in to comment.