Skip to content

Commit f96c741

Browse files
committed
Running the boilerplate-update in order to refresh the OWNER_ALIAS files.
1 parent 8ce2b64 commit f96c741

File tree

13 files changed

+60
-16
lines changed

13 files changed

+60
-16
lines changed

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: boilerplate
33
namespace: openshift
4-
tag: image-v5.0.1
4+
tag: image-v6.0.1

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FIPS_ENABLED=true
2-
export LATEST_IMAGE_TAG=image-v5.0.1
32

43
include boilerplate/generated-includes.mk
54

OWNERS_ALIASES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aliases:
66
srep-functional-team-aurora:
77
- abyrne55
88
- dakotalongRH
9-
- lnguyen1401
9+
- joshbranham
1010
- luis-falcon
1111
- reedcort
1212
srep-functional-team-fedramp:
@@ -74,7 +74,6 @@ aliases:
7474
- Nikokolas3270
7575
- theautoroboto
7676
- bmeng
77-
- mjlshen
7877
- sam-nguyen7
7978
- ravitri
8079
- mmazur
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
image-v5.0.1
1+
image-v6.0.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4c568be6e586dcc46ac00e36b9c298756639c4d9
1+
3b4c1e2134aed5fa0a995cbef09665a5a415acd0

boilerplate/_lib/common.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ image_exists_in_repo() {
8989

9090
local skopeo_stderr=$(mktemp)
9191

92+
if ! command -v skopeo &>/dev/null; then
93+
echo "Failed to find the skopeo binary. If you are on Mac: brew install skopeo." >&2
94+
exit 1
95+
fi
96+
9297
output=$(skopeo inspect docker://${image_uri} 2>$skopeo_stderr)
9398
rc=$?
9499
# So we can delete the temp file right away...
@@ -178,6 +183,8 @@ if [ -z "$BOILERPLATE_GIT_REPO" ]; then
178183
export BOILERPLATE_GIT_REPO=https://github.com/openshift/boilerplate.git
179184
fi
180185

186+
# Base image repo url
187+
IMAGE_REPO=quay.io/redhat-services-prod/openshift
181188
# The namespace of the ImageStream by which prow will import the image.
182189
IMAGE_NAMESPACE=openshift
183190
IMAGE_NAME=boilerplate
@@ -194,4 +201,4 @@ if [[ -z "$LATEST_IMAGE_TAG" ]]; then
194201
fi
195202
fi
196203
# The public image location
197-
IMAGE_PULL_PATH=${IMAGE_PULL_PATH:-quay.io/app-sre/$IMAGE_NAME:$LATEST_IMAGE_TAG}
204+
IMAGE_PULL_PATH=${IMAGE_PULL_PATH:-$IMAGE_REPO/$IMAGE_NAME:$LATEST_IMAGE_TAG}

boilerplate/openshift/golang-osd-operator-osde2e/e2e-harness-generate.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ export REPLACE_FUNC=$(echo "$REPLACE_SPECNAME" | sed 's/ //g' )
2525

2626
mkdir -p $HARNESS_DIR
2727

28-
E2E_SUITE_BUILDER_IMAGE="registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17"
29-
if [[ -n ${KONFLUX_BUILDS} ]]; then
30-
E2E_SUITE_BUILDER_IMAGE="brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22"
31-
fi
3228

3329
echo "# THIS FILE IS GENERATED BY BOILERPLATE. DO NOT EDIT.
34-
FROM ${E2E_SUITE_BUILDER_IMAGE} as builder
30+
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17 as builder
3531
WORKDIR /go/src/github.com/openshift/$OPERATOR_NAME/
3632
COPY . .
3733
RUN CGO_ENABLED=0 GOFLAGS=\"-mod=mod\" go test ./osde2e -v -c --tags=osde2e -o /harness.test
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source $CONVENTION_ROOT/_lib/common.sh
6+
7+
# No PRE
8+
[[ "$1" == "PRE" ]] && exit 0
9+
10+
# Expect POST
11+
[[ "$1" == "POST" ]] || err "Got a parameter I don't understand: '$1'. Did the infrastructure change?"
12+
13+
DOCKERFILE=osde2e/Dockerfile
14+
if [[ -n ${KONFLUX_BUILDS} && -f "${DOCKERFILE}" ]]; then
15+
E2E_SUITE_BUILDER_IMAGE="brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.22"
16+
${SED?} -i "2s,.*,FROM $E2E_SUITE_BUILDER_IMAGE AS builder," "${DOCKERFILE}"
17+
fi

boilerplate/openshift/golang-osd-operator/OWNERS_ALIASES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aliases:
66
srep-functional-team-aurora:
77
- abyrne55
88
- dakotalongRH
9-
- lnguyen1401
9+
- joshbranham
1010
- luis-falcon
1111
- reedcort
1212
srep-functional-team-fedramp:
@@ -74,7 +74,6 @@ aliases:
7474
- Nikokolas3270
7575
- theautoroboto
7676
- bmeng
77-
- mjlshen
7877
- sam-nguyen7
7978
- ravitri
8079
- mmazur

boilerplate/openshift/golang-osd-operator/csv-generate/csv-generate.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ if [[ -z "$SKIP_SAAS_FILE_CHECKS" ]]; then
169169

170170
if [[ "$delete" == false ]]; then
171171
short_hash=$(echo "$version" | cut -d- -f2)
172-
172+
173+
# before comparing the short_hash to the deployment hash, remove the leading g added in https://issues.redhat.com/browse/OSD-13681
174+
# short_hash should be 7 char long without the leading g.
175+
[ ${#short_hash} -gt 7 ] && short_hash=${short_hash:1:7}
176+
173177
if [[ "$DEPLOYED_HASH" == "${short_hash}"* ]]; then
174178
delete=true
175179
fi

0 commit comments

Comments
 (0)