Skip to content

Commit add2db9

Browse files
Merge pull request #1865 from wangke19/art-consistency-openshift-4.20-ose-cluster-kube-apiserver-operator
OCPBUGS-57811: Updating ose-cluster-kube-apiserver-operator-container image to be consistent with ART for 4.20
2 parents aab4c50 + f9a4389 commit add2db9

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
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.rhel7

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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-apiserver-operator
33
COPY . .
44
ENV GO_PACKAGE github.com/openshift/cluster-kube-apiserver-operator
55
RUN make build --warn-undefined-variables
66

7-
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
7+
FROM registry.ci.openshift.org/ocp/4.20:base-rhel9
88
COPY --from=builder /go/src/github.com/openshift/cluster-kube-apiserver-operator/bindata/bootkube/bootstrap-manifests /usr/share/bootkube/manifests/bootstrap-manifests/
99
COPY --from=builder /go/src/github.com/openshift/cluster-kube-apiserver-operator/bindata/bootkube/config /usr/share/bootkube/manifests/config/
1010
COPY --from=builder /go/src/github.com/openshift/cluster-kube-apiserver-operator/bindata/bootkube/manifests /usr/share/bootkube/manifests/manifests/

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/openshift/cluster-kube-apiserver-operator
22

3-
go 1.23.0
4-
5-
toolchain go1.23.4
3+
go 1.24.0
64

75
require (
86
github.com/apparentlymart/go-cidr v1.0.1

pkg/operator/kubeletversionskewcontroller/kubelet_version_skew_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func Test_kubeletVersionSkewController_Sync(t *testing.T) {
173173
t.Log(diff.StringDiff(tc.expectedMsgLines, condition.Message))
174174
}
175175
if t.Failed() {
176-
t.Logf(condition.Message)
176+
t.Logf("Condition message: %s", condition.Message)
177177
}
178178
})
179179
}

test/e2e/serviceaccountissuer_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import (
44
"bytes"
55
"context"
66
"encoding/json"
7+
"reflect"
8+
"testing"
9+
710
configv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
811
testlibrary "github.com/openshift/library-go/test/library"
912
"github.com/stretchr/testify/require"
1013
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1114
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
1215
"k8s.io/apimachinery/pkg/util/wait"
1316
clientcorev1 "k8s.io/client-go/kubernetes/typed/core/v1"
14-
"reflect"
15-
"testing"
1617

1718
"github.com/openshift/cluster-kube-apiserver-operator/pkg/operator/operatorclient"
1819
)
@@ -30,21 +31,21 @@ func TestServiceAccountIssuer(t *testing.T) {
3031
t.Run("serviceaccountissuer set in authentication config results in apiserver config", func(t *testing.T) {
3132
setServiceAccountIssuer(t, authConfigClient, "https://first.foo.bar")
3233
if err := pollForOperandIssuer(t, kubeClient, []string{"https://first.foo.bar", "https://kubernetes.default.svc"}); err != nil {
33-
t.Errorf(err.Error())
34+
t.Errorf("pollForOperandIssuer failed: %v", err)
3435
}
3536
})
3637

3738
t.Run("second serviceaccountissuer set in authentication config results in apiserver config with two issuers", func(t *testing.T) {
3839
setServiceAccountIssuer(t, authConfigClient, "https://second.foo.bar")
3940
if err := pollForOperandIssuer(t, kubeClient, []string{"https://second.foo.bar", "https://first.foo.bar", "https://kubernetes.default.svc"}); err != nil {
40-
t.Errorf(err.Error())
41+
t.Errorf("pollForOperandIssuer failed: %v", err)
4142
}
4243
})
4344

4445
t.Run("no serviceaccountissuer set in authentication config results in apiserver config with default issuer set", func(t *testing.T) {
4546
setServiceAccountIssuer(t, authConfigClient, "")
4647
if err := pollForOperandIssuer(t, kubeClient, []string{"https://kubernetes.default.svc"}); err != nil {
47-
t.Errorf(err.Error())
48+
t.Errorf("pollForOperandIssuer failed: %v", err)
4849
}
4950
})
5051

0 commit comments

Comments
 (0)