Skip to content

Commit ceb0557

Browse files
committed
Adjust code
1 parent bc79896 commit ceb0557

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
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: release
33
namespace: openshift
4-
tag: rhel-9-release-golang-1.23-openshift-4.19
4+
tag: rhel-9-release-golang-1.24-openshift-4.20

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23 as builder
1+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24 as builder
22
WORKDIR /go/src/github.com/openshift/cluster-kube-descheduler-operator
33
COPY . .
44
RUN make build --warn-undefined-variables

Dockerfile.rhel7

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.20 AS builder
22
WORKDIR /go/src/github.com/openshift/cluster-kube-descheduler-operator
33
COPY . .
44
RUN make build --warn-undefined-variables
55

6-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-base-openshift-4.19
6+
FROM registry.ci.openshift.org/ocp/4.20:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/cluster-kube-descheduler-operator/cluster-kube-descheduler-operator /usr/bin/
88
COPY --from=builder /go/src/github.com/openshift/cluster-kube-descheduler-operator/soft-tainter /usr/bin/
99
COPY --from=builder /go/src/github.com/openshift/cluster-kube-descheduler-operator/manifests /manifests

bundle.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.23 as builder
1+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24 as builder
22
WORKDIR /go/src/github.com/openshift/cluster-kube-descheduler-operator
33
COPY . .
44

pkg/operator/target_config_reconciler_test.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,25 +1939,33 @@ type fakeRecorder struct {
19391939

19401940
func (f *fakeRecorder) Event(reason, note string) {
19411941
if f.Events != nil {
1942-
f.Events <- fmt.Sprintf(reason + " " + note)
1942+
f.Events <- fmt.Sprintf("%s %s", reason, note)
19431943
}
19441944
}
19451945

19461946
func (f *fakeRecorder) Eventf(reason, note string, args ...interface{}) {
19471947
if f.Events != nil {
1948-
f.Events <- fmt.Sprintf(reason+" "+note, args...)
1948+
msg := fmt.Sprintf("%s %s", reason, note)
1949+
if len(args) > 0 {
1950+
msg += " " + fmt.Sprint(args...)
1951+
}
1952+
f.Events <- msg
19491953
}
19501954
}
19511955

19521956
func (f *fakeRecorder) Warning(reason, note string) {
19531957
if f.Events != nil {
1954-
f.Events <- fmt.Sprintf(reason + " " + note)
1958+
f.Events <- fmt.Sprintf("%s %s", reason, note)
19551959
}
19561960
}
19571961

19581962
func (f *fakeRecorder) Warningf(reason, note string, args ...interface{}) {
19591963
if f.Events != nil {
1960-
f.Events <- fmt.Sprintf(reason+" "+note, args...)
1964+
msg := fmt.Sprintf("%s %s", reason, note)
1965+
if len(args) > 0 {
1966+
msg += " " + fmt.Sprint(args...)
1967+
}
1968+
f.Events <- msg
19611969
}
19621970
}
19631971

0 commit comments

Comments
 (0)