Skip to content

Commit 0a0b562

Browse files
tmshortPer Goncalves da Silva
authored and
Per Goncalves da Silva
committed
Update containers to golang-1.22 and ocp-4.17
Signed-off-by: Todd Short <[email protected]>
1 parent 6decbf0 commit 0a0b562

8 files changed

+40
-33
lines changed

.ci-operator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: release
33
namespace: openshift
4-
tag: rhel-9-release-golang-1.21-openshift-4.16
4+
tag: rhel-9-release-golang-1.22-openshift-4.17

base.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile to bootstrap build and test in openshift-ci
22

3-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14
3+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17
44

55
ARG KUBEBUILDER_RELEASE=2.3.1
66
# Install test dependencies

codegen.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.13-alpine
1+
FROM golang:1.22-alpine
22

33
RUN apk update && \
44
apk add make git protobuf

manifests/0000_50_olm_00-clusterserviceversions.crd.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ spec:
9898
path:
9999
type: string
100100
value:
101-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
101+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
102102
type: string
103103
format: byte
104104
x-descriptors:
@@ -154,7 +154,7 @@ spec:
154154
path:
155155
type: string
156156
value:
157-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
157+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
158158
type: string
159159
format: byte
160160
x-descriptors:
@@ -176,7 +176,7 @@ spec:
176176
path:
177177
type: string
178178
value:
179-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
179+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
180180
type: string
181181
format: byte
182182
x-descriptors:
@@ -211,7 +211,7 @@ spec:
211211
path:
212212
type: string
213213
value:
214-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
214+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
215215
type: string
216216
format: byte
217217
x-descriptors:
@@ -267,7 +267,7 @@ spec:
267267
path:
268268
type: string
269269
value:
270-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
270+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
271271
type: string
272272
format: byte
273273
x-descriptors:
@@ -289,7 +289,7 @@ spec:
289289
path:
290290
type: string
291291
value:
292-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
292+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
293293
type: string
294294
format: byte
295295
x-descriptors:
@@ -335,7 +335,7 @@ spec:
335335
path:
336336
type: string
337337
value:
338-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
338+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
339339
type: string
340340
format: byte
341341
x-descriptors:
@@ -384,7 +384,7 @@ spec:
384384
path:
385385
type: string
386386
value:
387-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
387+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
388388
type: string
389389
format: byte
390390
x-descriptors:
@@ -406,7 +406,7 @@ spec:
406406
path:
407407
type: string
408408
value:
409-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
409+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
410410
type: string
411411
format: byte
412412
x-descriptors:
@@ -440,7 +440,7 @@ spec:
440440
path:
441441
type: string
442442
value:
443-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
443+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
444444
type: string
445445
format: byte
446446
x-descriptors:
@@ -489,7 +489,7 @@ spec:
489489
path:
490490
type: string
491491
value:
492-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
492+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
493493
type: string
494494
format: byte
495495
x-descriptors:
@@ -511,7 +511,7 @@ spec:
511511
path:
512512
type: string
513513
value:
514-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
514+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
515515
type: string
516516
format: byte
517517
x-descriptors:

microshift-manifests/0000_50_olm_00-clusterserviceversions.crd.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ spec:
9898
path:
9999
type: string
100100
value:
101-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
101+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
102102
type: string
103103
format: byte
104104
x-descriptors:
@@ -154,7 +154,7 @@ spec:
154154
path:
155155
type: string
156156
value:
157-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
157+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
158158
type: string
159159
format: byte
160160
x-descriptors:
@@ -176,7 +176,7 @@ spec:
176176
path:
177177
type: string
178178
value:
179-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
179+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
180180
type: string
181181
format: byte
182182
x-descriptors:
@@ -211,7 +211,7 @@ spec:
211211
path:
212212
type: string
213213
value:
214-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
214+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
215215
type: string
216216
format: byte
217217
x-descriptors:
@@ -267,7 +267,7 @@ spec:
267267
path:
268268
type: string
269269
value:
270-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
270+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
271271
type: string
272272
format: byte
273273
x-descriptors:
@@ -289,7 +289,7 @@ spec:
289289
path:
290290
type: string
291291
value:
292-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
292+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
293293
type: string
294294
format: byte
295295
x-descriptors:
@@ -335,7 +335,7 @@ spec:
335335
path:
336336
type: string
337337
value:
338-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
338+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
339339
type: string
340340
format: byte
341341
x-descriptors:
@@ -384,7 +384,7 @@ spec:
384384
path:
385385
type: string
386386
value:
387-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
387+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
388388
type: string
389389
format: byte
390390
x-descriptors:
@@ -406,7 +406,7 @@ spec:
406406
path:
407407
type: string
408408
value:
409-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
409+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
410410
type: string
411411
format: byte
412412
x-descriptors:
@@ -440,7 +440,7 @@ spec:
440440
path:
441441
type: string
442442
value:
443-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
443+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
444444
type: string
445445
format: byte
446446
x-descriptors:
@@ -489,7 +489,7 @@ spec:
489489
path:
490490
type: string
491491
value:
492-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
492+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
493493
type: string
494494
format: byte
495495
x-descriptors:
@@ -511,7 +511,7 @@ spec:
511511
path:
512512
type: string
513513
value:
514-
description: RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
514+
description: RawMessage is a raw encoded JSON value. It implements [Marshaler] and [Unmarshaler] and can be used to delay JSON decoding or precompute a JSON encoding.
515515
type: string
516516
format: byte
517517
x-descriptors:

operator-framework-tools.Dockerfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder-rhel8
1+
# Update when available: registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.22-openshift-4.17
2+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.17 AS builder-rhel8
23
ENV GOPATH /go
34
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
45
WORKDIR /src
56
COPY . .
7+
# Remove after updating to rhel-8-golang-1.22-openshift-4.17
8+
# Install golang 1.22.2
9+
RUN go install -mod=mod golang.org/dl/go1.22.2@latest
10+
RUN go1.22.2 download
11+
RUN ln -s /go/bin/go1.22.2 /go/bin/go
12+
# Now we can make registry
613
RUN make build/registry cross
714

8-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
15+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
916
ENV GOPATH /go
1017
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
1118
WORKDIR /src

operator-lifecycle-manager.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
22

33
ENV GO111MODULE auto
44
ENV GOPATH /go
@@ -18,7 +18,7 @@ RUN mkdir -p .git/objects
1818
COPY . .
1919
RUN make build/olm bin/cpb
2020

21-
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
21+
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
2222

2323
ADD manifests/ /manifests
2424
LABEL io.openshift.release.operator=true

operator-registry.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
22

33
ENV GOPATH /go
44
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
@@ -11,7 +11,7 @@ RUN make build/registry cross
1111
# copy and build vendored grpc_health_probe
1212
RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github.com/grpc-ecosystem/grpc-health-probe/...
1313

14-
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
14+
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
1515

1616
COPY --from=builder /src/bin/* /bin/registry/
1717
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe

0 commit comments

Comments
 (0)