Skip to content

Commit 5d0aa1f

Browse files
committed
updating go toolset to 1.25.5
1 parent 0ca04fc commit 5d0aa1f

File tree

8 files changed

+40
-28
lines changed

8 files changed

+40
-28
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
image-v8.2.0
1+
image-v8.3.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
27b681eaa783ae7183c53546a7194162a3041fa0
1+
03d10f359a4a9d3b38c4f5e1494f771ef603fc3f

boilerplate/_lib/container-make

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ if [[ "$1" == "-h"* ]] || [[ "$1" == "--h"* ]]; then
44
echo "Usage: $0 {arguments to the real 'make'}"
55
echo "Runs 'make' in the boilerplate backing container."
66
echo "If the command fails, starts a shell in the container so you can debug."
7+
echo "Set NONINTERACTIVE=true (or TRUE) to skip the debug shell and exit with the make return code."
78
exit -1
89
fi
910

@@ -40,12 +41,20 @@ banner "Running: make $@"
4041
$CONTAINER_ENGINE $args make "$@"
4142
rc=$?
4243

43-
# If it failed, drop into the container in a shell
44+
# If it failed, check if we should drop into a shell or exit
4445
if [[ $rc -ne 0 ]]; then
45-
banner "The 'make' command failed! Starting a shell in the container for debugging. Just 'exit' when done."
46-
$CONTAINER_ENGINE $args /bin/bash
46+
# Case-insensitive check for NONINTERACTIVE (true, TRUE, True all work)
47+
if [[ "${NONINTERACTIVE,,}" == "true" ]]; then
48+
banner "The 'make' command failed with exit code $rc. Skipping debug shell (NONINTERACTIVE=${NONINTERACTIVE})."
49+
else
50+
banner "The 'make' command failed! Starting a shell in the container for debugging. Just 'exit' when done."
51+
$CONTAINER_ENGINE $args /bin/bash
52+
fi
4753
fi
4854

4955
# Finally, remove the container
5056
banner "Cleaning up the container"
5157
$CONTAINER_ENGINE rm -f $container_id >/dev/null
58+
59+
# Exit with the return code from make
60+
exit $rc

boilerplate/openshift/golang-osd-e2e/e2e-template.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ objects:
5656
- --skip-must-gather
5757
- --configs
5858
- ${OSDE2E_CONFIGS}
59+
resources:
60+
requests:
61+
cpu: "300m"
62+
memory: "600Mi"
63+
limits:
64+
cpu: "1"
65+
memory: "1200Mi"
5966
securityContext:
6067
runAsNonRoot: true
6168
allowPrivilegeEscalation: false
@@ -85,4 +92,4 @@ objects:
8592
- name: USE_EXISTING_CLUSTER
8693
value: ${USE_EXISTING_CLUSTER}
8794
- name: CAD_PAGERDUTY_ROUTING_KEY
88-
value: ${CAD_PAGERDUTY_ROUTING_KEY}
95+
value: ${CAD_PAGERDUTY_ROUTING_KEY}

boilerplate/openshift/golang-osd-e2e/update

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ OPERATOR_NAME_CAMEL_CASE=${OPERATOR_PROPER_NAME// /}
2121

2222
mkdir -p "${E2E_SUITE_DIRECTORY}"
2323

24-
E2E_SUITE_BUILDER_IMAGE=registry.access.redhat.com/ubi9/go-toolset:1.24
24+
E2E_SUITE_BUILDER_IMAGE=registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.21
2525
if [[ -n ${KONFLUX_BUILDS} ]]; then
26-
E2E_SUITE_BUILDER_IMAGE="brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24"
26+
E2E_SUITE_BUILDER_IMAGE="brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25"
2727
fi
2828

2929
echo "syncing ${E2E_SUITE_DIRECTORY}/Dockerfile"
3030
tee "${E2E_SUITE_DIRECTORY}/Dockerfile" <<EOF
3131
# THIS FILE IS GENERATED BY BOILERPLATE. DO NOT EDIT.
3232
FROM ${E2E_SUITE_BUILDER_IMAGE} as builder
33-
WORKDIR /opt/app-root/src
33+
WORKDIR /go/src/github.com/openshift/$OPERATOR_NAME/
3434
COPY . .
35-
RUN CGO_ENABLED=0 GOFLAGS="-mod=mod" go test ./test/e2e -v -c --tags=osde2e -o e2e.test
35+
RUN CGO_ENABLED=0 GOFLAGS="-mod=mod" go test ./test/e2e -v -c --tags=osde2e -o /e2e.test
3636
3737
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
38-
COPY --from=builder /opt/app-root/src/e2e.test e2e.test
38+
COPY --from=builder ./e2e.test e2e.test
3939
ENTRYPOINT [ "/e2e.test" ]
4040
EOF
4141

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE=registry.access.redhat.com/ubi9/go-toolset:1.25
1+
ARG BASE_IMAGE=registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.21
22
FROM ${BASE_IMAGE} AS builder
33

44
WORKDIR /opt/app-root/src

test/e2e/Dockerfile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
# THIS FILE IS GENERATED BY BOILERPLATE. DO NOT EDIT.
2-
FROM registry.access.redhat.com/ubi9/go-toolset:1.25 as builder
3-
WORKDIR /opt/app-root/src
2+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 as builder
3+
WORKDIR /go/src/github.com/openshift/validation-webhook/
44
COPY . .
5-
RUN CGO_ENABLED=0 GOFLAGS="-mod=mod" go test ./test/e2e -v -c --tags=osde2e -o e2e.test
5+
RUN CGO_ENABLED=0 GOFLAGS="-mod=mod" go test ./test/e2e -v -c --tags=osde2e -o /e2e.test
66

77
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
8-
COPY --from=builder /opt/app-root/src/e2e.test e2e.test
9-
10-
LABEL com.redhat.component="managed-cluster-validating-webhooks-e2e-container" \
11-
name="managed-cluster-validating-webhooks-e2e" \
12-
version="1.0" \
13-
release="1" \
14-
summary="E2E tests for Managed Cluster Validating Webhooks" \
15-
description="End-to-end tests for validating admission webhooks for OpenShift" \
16-
io.k8s.description="End-to-end tests for validating admission webhooks for OpenShift" \
17-
io.k8s.display-name="Managed Cluster Validating Webhooks E2E" \
18-
io.openshift.tags="openshift,webhooks,validation,e2e,tests"
19-
8+
COPY --from=builder ./e2e.test e2e.test
209
ENTRYPOINT [ "/e2e.test" ]

test/e2e/e2e-template.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ objects:
5656
- --skip-must-gather
5757
- --configs
5858
- ${OSDE2E_CONFIGS}
59+
resources:
60+
requests:
61+
cpu: "300m"
62+
memory: "600Mi"
63+
limits:
64+
cpu: "1"
65+
memory: "1200Mi"
5966
securityContext:
6067
runAsNonRoot: true
6168
allowPrivilegeEscalation: false
@@ -85,4 +92,4 @@ objects:
8592
- name: USE_EXISTING_CLUSTER
8693
value: ${USE_EXISTING_CLUSTER}
8794
- name: CAD_PAGERDUTY_ROUTING_KEY
88-
value: ${CAD_PAGERDUTY_ROUTING_KEY}
95+
value: ${CAD_PAGERDUTY_ROUTING_KEY}

0 commit comments

Comments
 (0)