Skip to content

Commit 25631a8

Browse files
committed
update github test to installcrds upon upgrade
1 parent 1cd9b27 commit 25631a8

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ jobs:
156156
157157
- name: Run chart-testing
158158
run: |
159+
docker run --rm --entrypoint cat registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 /manifests/operator_v1beta1_knativeeventing_crd.yaml > knative-eventing-crd.yaml
160+
docker run --rm --entrypoint cat registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 /manifests/operator_v1beta1_knativeserving_crd.yaml > knative-serving-crd.yaml
161+
kubectl apply -f knative-eventing-crd.yaml
162+
kubectl apply -f knative-serving-crd.yaml
163+
159164
ct install \
160165
--debug \
161166
--config ct-install.yaml \

charts/orchestrator-infra/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ After installing the openshift-serverless subscription, more Knative CRDs will b
111111
The versions of the CRDs present in the chart and the ones in the subscrtiprion must match. In order to verify the correct CRD, use this following command to extract the CRD:
112112

113113
```bash
114-
podman run --rm --entrypoint bash registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 -c "cat /manifests/operator_v1beta1_knativeeventing_crd.yaml" | yq > knative-eventing-crd.yaml
114+
docker run --rm --entrypoint cat registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 /manifests/operator_v1beta1_knativeeventing_crd.yaml > knative-eventing-crd.yaml
115115

116-
podman run --rm --entrypoint bash registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 -c "cat /manifests/operator_v1beta1_knativeserving_crd.yaml" | yq > knative-serving-crd.yaml
116+
docker run --rm --entrypoint cat registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 /manifests/operator_v1beta1_knativeserving_crd.yaml > knative-serving-crd.yaml
117+
```

charts/orchestrator-infra/README.md.gotmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ After installing the openshift-serverless subscription, more Knative CRDs will b
8686
The versions of the CRDs present in the chart and the ones in the subscrtiprion must match. In order to verify the correct CRD, use this following command to extract the CRD:
8787

8888
```bash
89-
podman run --rm --entrypoint bash registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 -c "cat /manifests/operator_v1beta1_knativeeventing_crd.yaml" | yq > knative-eventing-crd.yaml
89+
docker run --rm --entrypoint cat registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 /manifests/operator_v1beta1_knativeeventing_crd.yaml > knative-eventing-crd.yaml
9090
91-
podman run --rm --entrypoint bash registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 -c "cat /manifests/operator_v1beta1_knativeserving_crd.yaml" | yq > knative-serving-crd.yaml
91+
docker run --rm --entrypoint cat registry.redhat.io/openshift-serverless-1/serverless-operator-bundle:1.35.0 /manifests/operator_v1beta1_knativeserving_crd.yaml > knative-serving-crd.yaml
92+
```

0 commit comments

Comments
 (0)