Skip to content

Commit 4b42538

Browse files
authoredMar 20, 2025··
Fix CVE-2025-22868 & CVE-2025-22869 (#1468)
* Fix CVE-2025-22868 & CVE-2025-22869 Signed-off-by: clyang82 <chuyang@redhat.com> * use 0.16.0 Signed-off-by: clyang82 <chuyang@redhat.com> * use ubi9 as base image Signed-off-by: clyang82 <chuyang@redhat.com> --------- Signed-off-by: clyang82 <chuyang@redhat.com>
1 parent 35188fc commit 4b42538

11 files changed

+272
-564
lines changed
 

‎.github/workflows/go.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v4
2424
with:
25-
go-version: '1.21'
25+
go-version: '1.23'
2626

2727
- name: Setup gci
2828
run: go install github.com/daixiang0/gci@latest
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Go
4343
uses: actions/setup-go@v4
4444
with:
45-
go-version: '1.21'
45+
go-version: '1.23'
4646

4747
- name: bundle
4848
run: cd operator && make bundle

‎agent/Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright Contributors to the Open Cluster Management project
22

33
# Stage 1: build the target binaries
4-
FROM registry.ci.openshift.org/stolostron/builder:go1.21-linux AS builder
4+
FROM registry.ci.openshift.org/stolostron/builder:go1.23-linux AS builder
55

66
WORKDIR /workspace
77

@@ -12,7 +12,7 @@ COPY ./pkg/ ./pkg/
1212
RUN go build -o bin/agent ./agent/cmd/agent/main.go
1313

1414
# Stage 2: Copy the binaries from the image builder to the base image
15-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
15+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
1616
ENV USER_UID=1001
1717
ENV USER_NAME=agent
1818

@@ -22,8 +22,7 @@ COPY --from=builder /workspace/bin/agent /usr/local/bin/agent
2222
COPY ./agent/scripts/user_setup /usr/local/scripts/user_setup
2323
RUN /usr/local/scripts/user_setup
2424

25-
RUN microdnf update && \
26-
microdnf clean all
25+
RUN microdnf update -y && microdnf clean all
2726

2827
USER ${USER_UID}
2928
ENTRYPOINT ["/usr/local/bin/agent"]

‎go.mod

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/stolostron/multicluster-global-hub
22

3-
go 1.21
3+
go 1.23.6
44

55
require (
66
github.com/RedHatInsights/strimzi-client-go v0.34.2
@@ -187,18 +187,17 @@ require (
187187
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
188188
go.uber.org/multierr v1.11.0 // indirect
189189
golang.org/x/arch v0.3.0 // indirect
190-
golang.org/x/crypto v0.31.0 // indirect
191-
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
192-
golang.org/x/net v0.33.0 // indirect
193-
golang.org/x/oauth2 v0.12.0 // indirect
194-
golang.org/x/sync v0.10.0 // indirect
195-
golang.org/x/sys v0.28.0 // indirect
196-
golang.org/x/term v0.27.0 // indirect
197-
golang.org/x/text v0.21.0 // indirect
198-
golang.org/x/time v0.3.0 // indirect
199-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
190+
golang.org/x/crypto v0.35.0 // indirect
191+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
192+
golang.org/x/net v0.36.0 // indirect
193+
golang.org/x/oauth2 v0.27.0 // indirect
194+
golang.org/x/sync v0.11.0 // indirect
195+
golang.org/x/sys v0.30.0 // indirect
196+
golang.org/x/term v0.29.0 // indirect
197+
golang.org/x/text v0.22.0 // indirect
198+
golang.org/x/time v0.6.0 // indirect
199+
golang.org/x/tools v0.25.0 // indirect
200200
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
201-
google.golang.org/appengine v1.6.7 // indirect
202201
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
203202
google.golang.org/grpc v1.58.3 // indirect
204203
google.golang.org/protobuf v1.33.0 // indirect

‎go.sum

+22-24
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,8 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y
11991199
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
12001200
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
12011201
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
1202-
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
1203-
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
1202+
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
1203+
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
12041204
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
12051205
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
12061206
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
@@ -1213,8 +1213,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0
12131213
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
12141214
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
12151215
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
1216-
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
1217-
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
1216+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
1217+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
12181218
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
12191219
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
12201220
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
@@ -1237,8 +1237,8 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
12371237
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
12381238
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
12391239
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
1240-
golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=
1241-
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
1240+
golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=
1241+
golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
12421242
golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
12431243
golang.org/x/net v0.0.0-20180112015858-5ccada7d0a7b/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
12441244
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -1287,17 +1287,17 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx
12871287
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
12881288
golang.org/x/net v0.0.0-20220725212005-46097bf591d3/go.mod h1:AaygXjzTFtRAg2ttMY5RMuhpJ3cNnI0XpyFJD1iQRSM=
12891289
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
1290-
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
1291-
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
1290+
golang.org/x/net v0.36.0 h1:vWF2fRbw4qslQsQzgFqZff+BItCvGFQqKzKIzx1rmoA=
1291+
golang.org/x/net v0.36.0/go.mod h1:bFmbeoIPfrw4sMHNhb4J9f6+tPziuGjq7Jk/38fxi1I=
12921292
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
12931293
golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
12941294
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
12951295
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
12961296
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
12971297
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
12981298
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
1299-
golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4=
1300-
golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4=
1299+
golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
1300+
golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
13011301
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
13021302
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
13031303
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -1307,8 +1307,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ
13071307
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
13081308
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
13091309
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
1310-
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
1311-
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
1310+
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
1311+
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
13121312
golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
13131313
golang.org/x/sys v0.0.0-20180117170059-2c42eef0765b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
13141314
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -1382,15 +1382,15 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
13821382
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
13831383
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
13841384
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1385-
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
1386-
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
1385+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
1386+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
13871387
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
13881388
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
13891389
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
13901390
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
13911391
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
1392-
golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=
1393-
golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM=
1392+
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
1393+
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
13941394
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
13951395
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
13961396
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -1402,15 +1402,15 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
14021402
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
14031403
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
14041404
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
1405-
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
1406-
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
1405+
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
1406+
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
14071407
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
14081408
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
14091409
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
14101410
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
14111411
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
1412-
golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
1413-
golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
1412+
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
1413+
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
14141414
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
14151415
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
14161416
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@@ -1468,8 +1468,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
14681468
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
14691469
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
14701470
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
1471-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
1472-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
1471+
golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=
1472+
golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg=
14731473
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
14741474
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
14751475
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -1502,8 +1502,6 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7
15021502
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
15031503
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
15041504
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
1505-
google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=
1506-
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
15071505
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
15081506
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
15091507
google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=

‎manager/Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright Contributors to the Open Cluster Management project
22

33
# Stage 1: build the target binaries
4-
FROM registry.ci.openshift.org/stolostron/builder:go1.21-linux AS builder
4+
FROM registry.ci.openshift.org/stolostron/builder:go1.23-linux AS builder
55

66
WORKDIR /workspace
77

@@ -12,7 +12,7 @@ COPY ./pkg/ ./pkg/
1212
RUN go build -o bin/manager ./manager/cmd/manager/main.go
1313

1414
# Stage 2: Copy the binaries from the image builder to the base image
15-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
15+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
1616
ENV USER_UID=1001
1717
ENV USER_NAME=manager
1818

@@ -22,8 +22,7 @@ COPY --from=builder /workspace/bin/manager /usr/local/bin/manager
2222
COPY ./manager/scripts/user_setup /usr/local/scripts/user_setup
2323
RUN /usr/local/scripts/user_setup
2424

25-
RUN microdnf update && \
26-
microdnf clean all
25+
RUN microdnf update -y && microdnf clean all
2726

2827
USER ${USER_UID}
2928
ENTRYPOINT ["/usr/local/bin/manager"]

‎operator/Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright Contributors to the Open Cluster Management project
33

44
# Stage 1: build the target binaries
5-
FROM registry.ci.openshift.org/stolostron/builder:go1.21-linux AS builder
5+
FROM registry.ci.openshift.org/stolostron/builder:go1.23-linux AS builder
66

77
WORKDIR /workspace
88
COPY go.sum go.mod ./
@@ -12,7 +12,7 @@ COPY ./pkg ./pkg
1212
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bin/multicluster-global-hub-operator operator/main.go
1313

1414
# Stage 2: Copy the binaries from the image builder to the base image
15-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
15+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
1616

1717
ENV OPERATOR=/usr/local/bin/multicluster-global-hub-operator \
1818
USER_UID=1001 \
@@ -21,8 +21,7 @@ ENV OPERATOR=/usr/local/bin/multicluster-global-hub-operator \
2121
# install operator binary
2222
COPY --from=builder /workspace/bin/multicluster-global-hub-operator ${OPERATOR}
2323

24-
RUN microdnf update && \
25-
microdnf clean all
24+
RUN microdnf update -y && microdnf clean all
2625

2726
USER ${USER_UID}
2827
ENTRYPOINT ["/usr/local/bin/multicluster-global-hub-operator"]

‎operator/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
183183

184184
## Tool Versions
185185
KUSTOMIZE_VERSION ?= v5.2.1
186-
CONTROLLER_TOOLS_VERSION ?= v0.13.0
186+
CONTROLLER_TOOLS_VERSION ?= v0.16.0
187187

188188
.PHONY: kustomize
189189
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

‎operator/bundle/manifests/multicluster-global-hub-operator.clusterserviceversion.yaml

+6-141
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ metadata:
2323
categories: Integration & Delivery,OpenShift Optional
2424
certified: "false"
2525
containerImage: quay.io/stolostron/multicluster-global-hub-operator:latest
26-
createdAt: "2024-07-03T06:52:02Z"
26+
createdAt: "2025-03-17T08:06:36Z"
2727
description: Manages the installation and upgrade of the Multicluster Global Hub.
2828
operatorframework.io/initialization-resource: '{"apiVersion":"operator.open-cluster-management.io/v1alpha4",
2929
"kind":"MulticlusterGlobalHub","metadata":{"name":"multiclusterglobalhub","namespace":"multicluster-global-hub"},
@@ -257,18 +257,6 @@ spec:
257257
- ""
258258
resources:
259259
- configmaps
260-
verbs:
261-
- create
262-
- delete
263-
- deletecollection
264-
- get
265-
- list
266-
- patch
267-
- update
268-
- watch
269-
- apiGroups:
270-
- ""
271-
resources:
272260
- events
273261
verbs:
274262
- create
@@ -283,40 +271,9 @@ spec:
283271
- ""
284272
resources:
285273
- namespaces
286-
verbs:
287-
- create
288-
- delete
289-
- get
290-
- list
291-
- update
292-
- watch
293-
- apiGroups:
294-
- ""
295-
resources:
296-
- persistentvolumeclaims
297-
verbs:
298-
- create
299-
- delete
300-
- get
301-
- list
302-
- patch
303-
- update
304-
- watch
305-
- apiGroups:
306-
- ""
307-
resources:
308274
- secrets
309-
verbs:
310-
- create
311-
- delete
312-
- get
313-
- list
314-
- update
315-
- watch
316-
- apiGroups:
317-
- ""
318-
resources:
319275
- serviceaccounts
276+
- services
320277
verbs:
321278
- create
322279
- delete
@@ -327,12 +284,13 @@ spec:
327284
- apiGroups:
328285
- ""
329286
resources:
330-
- services
287+
- persistentvolumeclaims
331288
verbs:
332289
- create
333290
- delete
334291
- get
335292
- list
293+
- patch
336294
- update
337295
- watch
338296
- apiGroups:
@@ -358,6 +316,7 @@ spec:
358316
- addon.open-cluster-management.io
359317
resources:
360318
- clustermanagementaddons/finalizers
319+
- managedclusteraddons/finalizers
361320
verbs:
362321
- update
363322
- apiGroups:
@@ -373,12 +332,6 @@ spec:
373332
- patch
374333
- update
375334
- watch
376-
- apiGroups:
377-
- addon.open-cluster-management.io
378-
resources:
379-
- managedclusteraddons/finalizers
380-
verbs:
381-
- update
382335
- apiGroups:
383336
- addon.open-cluster-management.io
384337
resources:
@@ -419,16 +372,6 @@ spec:
419372
- apps
420373
resources:
421374
- deployments
422-
verbs:
423-
- create
424-
- delete
425-
- get
426-
- list
427-
- update
428-
- watch
429-
- apiGroups:
430-
- apps
431-
resources:
432375
- statefulsets
433376
verbs:
434377
- create
@@ -441,23 +384,7 @@ spec:
441384
- apps.open-cluster-management.io
442385
resources:
443386
- channels
444-
verbs:
445-
- get
446-
- list
447-
- patch
448-
- update
449-
- apiGroups:
450-
- apps.open-cluster-management.io
451-
resources:
452387
- placementrules
453-
verbs:
454-
- get
455-
- list
456-
- patch
457-
- update
458-
- apiGroups:
459-
- apps.open-cluster-management.io
460-
resources:
461388
- subscriptions
462389
verbs:
463390
- get
@@ -475,16 +402,6 @@ spec:
475402
- certificates.k8s.io
476403
resources:
477404
- certificatesigningrequests
478-
verbs:
479-
- create
480-
- get
481-
- list
482-
- patch
483-
- update
484-
- watch
485-
- apiGroups:
486-
- certificates.k8s.io
487-
resources:
488405
- certificatesigningrequests/approval
489406
verbs:
490407
- create
@@ -512,6 +429,7 @@ spec:
512429
- cluster.open-cluster-management.io
513430
resources:
514431
- managedclustersets
432+
- placements
515433
verbs:
516434
- get
517435
- list
@@ -521,25 +439,10 @@ spec:
521439
- cluster.open-cluster-management.io
522440
resources:
523441
- managedclustersets/bind
524-
verbs:
525-
- create
526-
- delete
527-
- apiGroups:
528-
- cluster.open-cluster-management.io
529-
resources:
530442
- managedclustersets/join
531443
verbs:
532444
- create
533445
- delete
534-
- apiGroups:
535-
- cluster.open-cluster-management.io
536-
resources:
537-
- placements
538-
verbs:
539-
- get
540-
- list
541-
- patch
542-
- update
543446
- apiGroups:
544447
- config.openshift.io
545448
resources:
@@ -660,14 +563,6 @@ spec:
660563
- policy.open-cluster-management.io
661564
resources:
662565
- placementbindings
663-
verbs:
664-
- get
665-
- list
666-
- patch
667-
- update
668-
- apiGroups:
669-
- policy.open-cluster-management.io
670-
resources:
671566
- policies
672567
verbs:
673568
- get
@@ -687,38 +582,8 @@ spec:
687582
- rbac.authorization.k8s.io
688583
resources:
689584
- clusterrolebindings
690-
verbs:
691-
- create
692-
- delete
693-
- get
694-
- list
695-
- update
696-
- watch
697-
- apiGroups:
698-
- rbac.authorization.k8s.io
699-
resources:
700585
- clusterroles
701-
verbs:
702-
- create
703-
- delete
704-
- get
705-
- list
706-
- update
707-
- watch
708-
- apiGroups:
709-
- rbac.authorization.k8s.io
710-
resources:
711586
- rolebindings
712-
verbs:
713-
- create
714-
- delete
715-
- get
716-
- list
717-
- update
718-
- watch
719-
- apiGroups:
720-
- rbac.authorization.k8s.io
721-
resources:
722587
- roles
723588
verbs:
724589
- create

‎operator/bundle/manifests/operator.open-cluster-management.io_multiclusterglobalhubs.yaml

+108-116
Large diffs are not rendered by default.

‎operator/config/crd/bases/operator.open-cluster-management.io_multiclusterglobalhubs.yaml

+108-116
Large diffs are not rendered by default.

‎operator/config/rbac/role.yaml

+5-140
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@ rules:
88
- ""
99
resources:
1010
- configmaps
11-
verbs:
12-
- create
13-
- delete
14-
- deletecollection
15-
- get
16-
- list
17-
- patch
18-
- update
19-
- watch
20-
- apiGroups:
21-
- ""
22-
resources:
2311
- events
2412
verbs:
2513
- create
@@ -34,40 +22,9 @@ rules:
3422
- ""
3523
resources:
3624
- namespaces
37-
verbs:
38-
- create
39-
- delete
40-
- get
41-
- list
42-
- update
43-
- watch
44-
- apiGroups:
45-
- ""
46-
resources:
47-
- persistentvolumeclaims
48-
verbs:
49-
- create
50-
- delete
51-
- get
52-
- list
53-
- patch
54-
- update
55-
- watch
56-
- apiGroups:
57-
- ""
58-
resources:
5925
- secrets
60-
verbs:
61-
- create
62-
- delete
63-
- get
64-
- list
65-
- update
66-
- watch
67-
- apiGroups:
68-
- ""
69-
resources:
7026
- serviceaccounts
27+
- services
7128
verbs:
7229
- create
7330
- delete
@@ -78,12 +35,13 @@ rules:
7835
- apiGroups:
7936
- ""
8037
resources:
81-
- services
38+
- persistentvolumeclaims
8239
verbs:
8340
- create
8441
- delete
8542
- get
8643
- list
44+
- patch
8745
- update
8846
- watch
8947
- apiGroups:
@@ -109,6 +67,7 @@ rules:
10967
- addon.open-cluster-management.io
11068
resources:
11169
- clustermanagementaddons/finalizers
70+
- managedclusteraddons/finalizers
11271
verbs:
11372
- update
11473
- apiGroups:
@@ -124,12 +83,6 @@ rules:
12483
- patch
12584
- update
12685
- watch
127-
- apiGroups:
128-
- addon.open-cluster-management.io
129-
resources:
130-
- managedclusteraddons/finalizers
131-
verbs:
132-
- update
13386
- apiGroups:
13487
- addon.open-cluster-management.io
13588
resources:
@@ -170,16 +123,6 @@ rules:
170123
- apps
171124
resources:
172125
- deployments
173-
verbs:
174-
- create
175-
- delete
176-
- get
177-
- list
178-
- update
179-
- watch
180-
- apiGroups:
181-
- apps
182-
resources:
183126
- statefulsets
184127
verbs:
185128
- create
@@ -192,23 +135,7 @@ rules:
192135
- apps.open-cluster-management.io
193136
resources:
194137
- channels
195-
verbs:
196-
- get
197-
- list
198-
- patch
199-
- update
200-
- apiGroups:
201-
- apps.open-cluster-management.io
202-
resources:
203138
- placementrules
204-
verbs:
205-
- get
206-
- list
207-
- patch
208-
- update
209-
- apiGroups:
210-
- apps.open-cluster-management.io
211-
resources:
212139
- subscriptions
213140
verbs:
214141
- get
@@ -226,16 +153,6 @@ rules:
226153
- certificates.k8s.io
227154
resources:
228155
- certificatesigningrequests
229-
verbs:
230-
- create
231-
- get
232-
- list
233-
- patch
234-
- update
235-
- watch
236-
- apiGroups:
237-
- certificates.k8s.io
238-
resources:
239156
- certificatesigningrequests/approval
240157
verbs:
241158
- create
@@ -263,6 +180,7 @@ rules:
263180
- cluster.open-cluster-management.io
264181
resources:
265182
- managedclustersets
183+
- placements
266184
verbs:
267185
- get
268186
- list
@@ -272,25 +190,10 @@ rules:
272190
- cluster.open-cluster-management.io
273191
resources:
274192
- managedclustersets/bind
275-
verbs:
276-
- create
277-
- delete
278-
- apiGroups:
279-
- cluster.open-cluster-management.io
280-
resources:
281193
- managedclustersets/join
282194
verbs:
283195
- create
284196
- delete
285-
- apiGroups:
286-
- cluster.open-cluster-management.io
287-
resources:
288-
- placements
289-
verbs:
290-
- get
291-
- list
292-
- patch
293-
- update
294197
- apiGroups:
295198
- config.openshift.io
296199
resources:
@@ -411,14 +314,6 @@ rules:
411314
- policy.open-cluster-management.io
412315
resources:
413316
- placementbindings
414-
verbs:
415-
- get
416-
- list
417-
- patch
418-
- update
419-
- apiGroups:
420-
- policy.open-cluster-management.io
421-
resources:
422317
- policies
423318
verbs:
424319
- get
@@ -438,38 +333,8 @@ rules:
438333
- rbac.authorization.k8s.io
439334
resources:
440335
- clusterrolebindings
441-
verbs:
442-
- create
443-
- delete
444-
- get
445-
- list
446-
- update
447-
- watch
448-
- apiGroups:
449-
- rbac.authorization.k8s.io
450-
resources:
451336
- clusterroles
452-
verbs:
453-
- create
454-
- delete
455-
- get
456-
- list
457-
- update
458-
- watch
459-
- apiGroups:
460-
- rbac.authorization.k8s.io
461-
resources:
462337
- rolebindings
463-
verbs:
464-
- create
465-
- delete
466-
- get
467-
- list
468-
- update
469-
- watch
470-
- apiGroups:
471-
- rbac.authorization.k8s.io
472-
resources:
473338
- roles
474339
verbs:
475340
- create

0 commit comments

Comments
 (0)
Please sign in to comment.