Skip to content

Commit ee2cb4a

Browse files
authored
[main] Add OCP 4.19 and 4.20 (#3735)
* update docs-default `max` OCP version to 4.19 * generated files * use scos images for CI * generated files * add policy.json for "opm render" * workaround for cert-manager webhook certificate setup delay * generated files * increase cert-manager setup delay * increasing the certmanager setup delay * add ocpVersions.doc to specify target OCP docs version in quickstarts * explicit ocpVersion.doc OCP version for docs links
1 parent 6dbbc52 commit ee2cb4a

File tree

24 files changed

+196
-141
lines changed

24 files changed

+196
-141
lines changed

hack/generate/csv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ yaml_keys[spec.minKubeVersion]="$(metadata.get requirements.kube.minVersion)"
156156
yaml_keys[spec.replaces]="$(metadata.get project.name).v$(metadata.get olm.replaces)"
157157

158158
declare -A vars
159-
vars[OCP_TARGET]="$(metadata.get 'requirements.ocpVersion.list[-1]')"
159+
vars[OCP_TARGET]="$(metadata.get 'requirements.ocpVersion.doc')"
160160
vars[VERSION_MAJOR_MINOR]="$(versions.major_minor $(metadata.get 'project.version'))"
161161

162162
function add_related_image {

hack/generate/override-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
EOF
5959

6060
tmp_catalog_dir=$(mktemp -d)
61-
max_ocp_version="$(metadata.get requirements.ocpVersion.max)"
61+
max_ocp_version="$(metadata.get requirements.ocpVersion.list[-1])"
6262
max_ocp_version=${max_ocp_version/./}
6363
latest_index_image="${registry_quay}-fbc-${max_ocp_version}/serverless-index-${so_short_version}-fbc-${max_ocp_version}:latest"
6464

hack/generate/quickstart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ target="${2:?Provide a target quickstart file as arg[2]}"
99
source "$(dirname "${BASH_SOURCE[0]}")/../lib/metadata.bash"
1010

1111
declare -A vars
12-
vars[OCP_TARGET]="$(metadata.get 'requirements.ocpVersion.list[-1]')"
12+
vars[OCP_TARGET]="$(metadata.get 'requirements.ocpVersion.doc')"
1313

1414
# Start fresh
1515
cp "$template" "$target"

hack/lib/certmanager.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ function deploy_certmanager_operator {
2525
timeout 600 "[[ \$(oc get deploy -n ${deployment_namespace} cert-manager-webhook --no-headers | wc -l) != 1 ]]" || return 1
2626
oc wait deployments -n ${deployment_namespace} cert-manager-webhook --for condition=available --timeout=600s
2727
oc wait deployments -n ${deployment_namespace} cert-manager --for condition=available --timeout=600s
28+
29+
# TODO: workaround for the cert-manager being Ready before it setups webhook certs
30+
logger.info "Sleeping for 60s to let cert-manager setup its webhook certs"
31+
sleep 60
2832
}
2933

3034
function deploy_certificates {

knative-operator/deploy/resources/quickstart/serverless-application-quickstart.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
review:
4949
failedTaskHelp: >-
5050
This task isn’t verified yet. Try the task again, or [read
51-
more](https://docs.openshift.com/container-platform/4.18/applications/odc-viewing-application-composition-using-topology-view.html)
51+
more](https://docs.openshift.com/container-platform/4.19/applications/odc-viewing-application-composition-using-topology-view.html)
5252
about this topic.
5353
instructions: >-
5454
#### To verify the application was successfully created:
@@ -85,7 +85,7 @@ spec:
8585
review:
8686
failedTaskHelp: >-
8787
This task isn’t verified yet. Try the task again, or [read
88-
more](https://docs.openshift.com/container-platform/4.18/applications/odc-viewing-application-composition-using-topology-view.html#odc-scaling-application-pods-and-checking-builds-and-routes_viewing-application-composition-using-topology-view)
88+
more](https://docs.openshift.com/container-platform/4.19/applications/odc-viewing-application-composition-using-topology-view.html#odc-scaling-application-pods-and-checking-builds-and-routes_viewing-application-composition-using-topology-view)
8989
about this topic.
9090
instructions: >-
9191
#### To verify the application scaled down:
@@ -126,7 +126,7 @@ spec:
126126
review:
127127
failedTaskHelp: >-
128128
This task isn’t verified yet. Try the task again, or [read
129-
more](https://docs.openshift.com/container-platform/4.18/serverless/eventing/event-sources/serverless-pingsource.html#serverless-pingsource-odc_serverless-pingsource)
129+
more](https://docs.openshift.com/container-platform/4.19/serverless/eventing/event-sources/serverless-pingsource.html#serverless-pingsource-odc_serverless-pingsource)
130130
about this topic.
131131
instructions: >-
132132
#### To verify that the event connected to your Knative service:
@@ -178,7 +178,7 @@ spec:
178178
review:
179179
failedTaskHelp: >-
180180
This task isn’t verified yet. Try the task again, or [read
181-
more](https://docs.openshift.com/container-platform/4.18/serverless/knative-serving/traffic-splitting/traffic-splitting-revisions.html#odc-splitting-traffic-between-revisions-using-developer-perspective_traffic-splitting-revisions)
181+
more](https://docs.openshift.com/container-platform/4.19/serverless/knative-serving/traffic-splitting/traffic-splitting-revisions.html#odc-splitting-traffic-between-revisions-using-developer-perspective_traffic-splitting-revisions)
182182
about this topic.
183183
instructions: >-
184184
#### To verify that you forced a new revision and set traffic
@@ -206,7 +206,7 @@ spec:
206206
review:
207207
failedTaskHelp: >-
208208
This task is not verified yet. Try the task again, or [read
209-
more](https://docs.openshift.com/container-platform/4.18/applications/odc-deleting-applications.html)
209+
more](https://docs.openshift.com/container-platform/4.19/applications/odc-deleting-applications.html)
210210
about this topic.
211211
instructions: |-
212212
#### To verify you deleted your application: :

olm-catalog/serverless-operator-index/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/origin/4.18:operator-registry AS opm
1+
FROM registry.ci.openshift.org/origin/scos-4.20:operator-registry AS opm
22

33
FROM registry.access.redhat.com/ubi9/ubi-minimal as builder
44

@@ -7,6 +7,9 @@ COPY --from=opm /bin/opm /bin/opm
77
# Copy declarative config root into image at /configs
88
COPY olm-catalog/serverless-operator-index/configs /configs
99

10+
# Copy policy.json for opm
11+
COPY olm-catalog/serverless-operator-index/policy.json /etc/containers/policy.json
12+
1013
RUN /bin/opm init serverless-operator --default-channel=stable --output yaml >> /configs/index.yaml
1114
RUN /bin/opm render --skip-tls-verify -o yaml \
1215
quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-135/serverless-bundle:1.35.0 \
@@ -15,7 +18,7 @@ quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serv
1518

1619
# The base image is expected to contain
1720
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe
18-
FROM registry.ci.openshift.org/origin/4.18:operator-registry
21+
FROM registry.ci.openshift.org/origin/scos-4.20:operator-registry
1922

2023
# Copy declarative config root into image at /configs
2124
COPY --from=builder /configs /configs
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"default": [
3+
{
4+
"type": "insecureAcceptAnything"
5+
}
6+
],
7+
"transports":
8+
{
9+
"docker-daemon":
10+
{
11+
"": [{"type":"insecureAcceptAnything"}]
12+
}
13+
}
14+
}

olm-catalog/serverless-operator-index/v4.14/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG OPM_IMAGE=registry.ci.openshift.org/origin/4.14:operator-registry
1+
ARG OPM_IMAGE=registry.ci.openshift.org/origin/scos-4.14:operator-registry
22

33
FROM $OPM_IMAGE
44

olm-catalog/serverless-operator-index/v4.15/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG OPM_IMAGE=registry.ci.openshift.org/origin/4.15:operator-registry
1+
ARG OPM_IMAGE=registry.ci.openshift.org/origin/scos-4.15:operator-registry
22

33
FROM $OPM_IMAGE
44

olm-catalog/serverless-operator-index/v4.16/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG OPM_IMAGE=registry.ci.openshift.org/origin/4.16:operator-registry
1+
ARG OPM_IMAGE=registry.ci.openshift.org/origin/scos-4.16:operator-registry
22

33
FROM $OPM_IMAGE
44

0 commit comments

Comments
 (0)