Skip to content

Commit 7952b4c

Browse files
authored
Merge branch 'master' into SANDBOX-1561-debug-sandbox-resources
2 parents fc412ad + 7f4a5d0 commit 7952b4c

File tree

11 files changed

+61
-45
lines changed

11 files changed

+61
-45
lines changed

.github/workflows/ci-check-gomod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@v6
1616
- name: check
1717
uses: codeready-toolchain/toolchain-cicd/gomod-check@master

.github/workflows/ci-golang-sbom.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919

2020
- name: Install Go
2121
uses: actions/setup-go@v6
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-24.04
3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3939

4040
- name: Generate SBOM
4141
uses: CycloneDX/gh-gomod-generate-sbom@v2

.github/workflows/govulncheck.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v5
14+
uses: actions/checkout@v6
1515

1616
- name: Run govulncheck
1717
uses: codeready-toolchain/toolchain-cicd/govulncheck-action@master
1818
with:
19-
go-version-file: go.mod
20-
cache: false
21-
config: .govulncheck.yaml
19+
config: .govulncheck.yaml
20+
debug: true # optional (default = false)

.github/workflows/operator-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v5
19+
uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222

@@ -26,7 +26,7 @@ jobs:
2626
go-version-file: go.mod
2727

2828
- name: Cache dependencies
29-
uses: actions/cache@v4
29+
uses: actions/cache@v5
3030
with:
3131
path: ~/go/pkg/mod
3232
key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}

.github/workflows/publish-operators-for-e2e-tests.yml renamed to .github/workflows/publish-components-for-e2e-tests.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish-operators-for-e2e-tests
1+
name: publish-components-for-e2e-tests
22
on:
33
issue_comment:
44
types: [created]
@@ -10,36 +10,41 @@ env:
1010

1111
jobs:
1212
binary:
13-
name: Build & push operator bundles for e2e tests
13+
name: Build & push operator bundles & dashboard image for e2e tests
1414

1515
runs-on: ubuntu-24.04
16-
if: ${{ github.event.comment == '' || contains(github.event.comment.body, '/retest') || contains(github.event.comment.body, '/test all') || contains(github.event.comment.body, '/test e2e') }}
16+
if: >-
17+
${{ github.event_name == 'pull_request_target' ||
18+
(github.event_name == 'issue_comment' &&
19+
(contains(github.event.comment.body, '/retest') ||
20+
contains(github.event.comment.body, '/test all') ||
21+
contains(github.event.comment.body, '/test e2e'))) }}
1722
steps:
18-
# Checkout from PR event - in that case the comment field is empty
23+
# Checkout from PR event
1924
- name: Checkout code from PR event
20-
uses: actions/checkout@v5
21-
if: ${{ github.event.comment == '' }}
25+
uses: actions/checkout@v6
26+
if: ${{ github.event_name == 'pull_request_target' }}
2227
with:
2328
ref: ${{github.event.pull_request.head.ref}}
2429
repository: ${{github.event.pull_request.head.repo.full_name}}
2530
fetch-depth: 0
2631

2732
# If the workflow was triggered based on comment, then we need to get the information about the PR
28-
# Is executed only for comment events - in that case the pull_request field is empty
33+
# Is executed only for comment events
2934
- name: Send Github API Request to get PR data
3035
id: request
3136
uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # workaround for https://github.com/octokit/request-action/issues/315 - use SHA instead of the tag v2.4.0
32-
if: ${{ github.event.pull_request == '' }}
37+
if: ${{ github.event_name == 'issue_comment' }}
3338
with:
3439
route: ${{ github.event.issue.pull_request.url }}
3540
env:
3641
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3742

3843
# Checkout the code based on the data retrieved from the previous step
39-
# Is executed only for comment events - in that case the pull_request field is empty
44+
# Is executed only for comment events
4045
- name: Checkout code from PR
41-
uses: actions/checkout@v5
42-
if: ${{ github.event.pull_request == '' }}
46+
uses: actions/checkout@v6
47+
if: ${{ github.event_name == 'issue_comment' }}
4348
with:
4449
repository: ${{ fromJson(steps.request.outputs.data).head.repo.full_name }}
4550
ref: ${{ fromJson(steps.request.outputs.data).head.ref }}
@@ -51,25 +56,21 @@ jobs:
5156
go-version-file: go.mod
5257

5358
- name: Cache dependencies
54-
uses: actions/cache@v4
59+
uses: actions/cache@v5
5560
with:
5661
path: ~/go/pkg/mod
5762
key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}
5863
restore-keys: |
5964
${{ runner.os }}-go-
6065
61-
- uses: actions/setup-python@v6
62-
with:
63-
python-version: '3.x'
64-
6566
- name: Prepare tools
6667
uses: codeready-toolchain/toolchain-cicd/prepare-tools-action@master
6768

6869
# Execute composite action using values from PR event
69-
# Is executed only for PR events - in that case the comment field is empty
70-
- name: Publish current operator bundles for host & member based on PR event
70+
# Developer Sandbox Dashboard will be published too in this action
71+
- name: Publish current operator bundles & dashboard image based on PR event
7172
uses: codeready-toolchain/toolchain-cicd/publish-operators-for-e2e-tests@master
72-
if: ${{ github.event.comment == '' }}
73+
if: ${{ github.event_name == 'pull_request_target' }}
7374
with:
7475
quay-token: ${{ secrets.TEST_QUAY_TOKEN }}
7576
quay-namespace: codeready-toolchain-test
@@ -79,10 +80,10 @@ jobs:
7980
gh-head-ref: ${{ github.event.pull_request.head.ref }}
8081

8182
# Execute composite action using values from PR event
82-
# Is executed only for comment events - in that case the pull_request field is empty
83-
- name: Publish current operator bundles for host & member based on comment event
83+
# Developer Sandbox Dashboard will be published too in this action
84+
- name: Publish current operator bundles & dashboard image based on comment event
8485
uses: codeready-toolchain/toolchain-cicd/publish-operators-for-e2e-tests@master
85-
if: ${{ github.event.pull_request == '' }}
86+
if: ${{ github.event_name == 'issue_comment' }}
8687
with:
8788
quay-token: ${{ secrets.TEST_QUAY_TOKEN }}
8889
quay-namespace: codeready-toolchain-test

.github/workflows/test-with-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-24.04
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v5
19+
uses: actions/checkout@v6
2020
with:
2121
ref: ${{github.event.pull_request.head.ref}}
2222
repository: ${{github.event.pull_request.head.repo.full_name}}

.govulncheck.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,58 @@ ignored-vulnerabilities:
44
# Fixed in: crypto/x509@go1.24.8
55
- id: GO-2025-4013
66
info: https://pkg.go.dev/vuln/GO-2025-4013
7-
silence-until: 2025-12-03
7+
silence-until: 2026-01-09
88
# Lack of limit when parsing cookies can cause memory exhaustion in net/http
99
# Found in: net/http@go1.23.12
1010
# Fixed in: net/http@go1.24.8
1111
- id: GO-2025-4012
1212
info: https://pkg.go.dev/vuln/GO-2025-4012
13-
silence-until: 2025-12-03
13+
silence-until: 2026-01-09
1414
# Parsing DER payload can cause memory exhaustion in encoding/asn1
1515
# Found in: encoding/asn1@go1.23.12
1616
# Fixed in: encoding/asn1@go1.24.8
1717
- id: GO-2025-4011
1818
info: https://pkg.go.dev/vuln/GO-2025-4011
19-
silence-until: 2025-12-03
19+
silence-until: 2026-01-09
2020
# Insufficient validation of bracketed IPv6 hostnames in net/url
2121
# Found in: net/url@go1.23.12
2222
# Fixed in: net/url@go1.24.8
2323
- id: GO-2025-4010
2424
info: https://pkg.go.dev/vuln/GO-2025-4010
25-
silence-until: 2025-12-03
25+
silence-until: 2026-01-09
2626
# Quadratic complexity when parsing some invalid inputs in encoding/pem
2727
# Found in: encoding/pem@go1.23.12
2828
# Fixed in: encoding/pem@go1.24.8
2929
- id: GO-2025-4009
3030
info: https://pkg.go.dev/vuln/GO-2025-4009
31-
silence-until: 2025-12-03
31+
silence-until: 2026-01-09
3232
# ALPN negotiation error contains attacker controlled information in crypto/tls
3333
# Found in: crypto/tls@go1.23.12
3434
# Fixed in: crypto/tls@go1.24.8
3535
- id: GO-2025-4008
3636
info: https://pkg.go.dev/vuln/GO-2025-4008
37-
silence-until: 2025-12-03
37+
silence-until: 2026-01-09
3838
# Quadratic complexity when checking name constraints in crypto/x509
3939
# Found in: crypto/x509@go1.23.12
4040
# Fixed in: crypto/x509@go1.24.9
4141
- id: GO-2025-4007
4242
info: https://pkg.go.dev/vuln/GO-2025-4007
43-
silence-until: 2025-12-03
43+
silence-until: 2026-01-09
4444
# Excessive CPU consumption in ParseAddress in net/mail
4545
# Found in: net/mail@go1.23.12
4646
# Fixed in: net/mail@go1.24.8
4747
- id: GO-2025-4006
4848
info: https://pkg.go.dev/vuln/GO-2025-4006
49-
silence-until: 2025-12-03
49+
silence-until: 2026-01-09
50+
# Excessive resource consumption when printing error string for host certificate validation in crypto/x509
51+
# Found in: crypto/x509@go1.23.12
52+
# Fixed in: crypto/x509@go1.24.11
53+
- id: GO-2025-4155
54+
info: https://pkg.go.dev/vuln/GO-2025-4155
55+
silence-until: 2026-01-09
56+
# Improper application of excluded DNS name constraints when verifying wildcard names in crypto/x509
57+
# Found in: crypto/x509@go1.23.12
58+
# Fixed in: crypto/x509@go1.24.11
59+
- id: GO-2025-4175
60+
info: https://pkg.go.dev/vuln/GO-2025-4175
61+
silence-until: 2026-01-09

cmd/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
goruntime "runtime"
88
"time"
99

10+
"github.com/codeready-toolchain/member-operator/pkg/constants"
1011
"github.com/codeready-toolchain/member-operator/pkg/host"
1112
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
1213

@@ -224,9 +225,10 @@ func main() {
224225

225226
// Setup all Controllers
226227
if err = (&toolchainclusterresources.Reconciler{
227-
Client: mgr.GetClient(),
228-
Scheme: mgr.GetScheme(),
229-
Templates: &deploy.ToolchainClusterTemplateFS,
228+
Client: mgr.GetClient(),
229+
Scheme: mgr.GetScheme(),
230+
Templates: &deploy.ToolchainClusterTemplateFS,
231+
FieldManager: constants.MemberOperatorFieldManager,
230232
}).SetupWithManager(mgr, namespace); err != nil {
231233
setupLog.Error(err, "unable to create controller", "controller", "ToolchainClusterResources")
232234
os.Exit(1)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/codeready-toolchain/member-operator
22

33
require (
44
github.com/codeready-toolchain/api v0.0.0-20251008084914-06282b83d4cd
5-
github.com/codeready-toolchain/toolchain-common v0.0.0-20251103123811-4066619e5740
5+
github.com/codeready-toolchain/toolchain-common v0.0.0-20251125180949-6ed5aeed75e4
66
github.com/go-logr/logr v1.4.2
77
github.com/google/go-cmp v0.7.0
88
// using latest commit from 'github.com/openshift/api branch release-4.19'

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ github.com/codeready-toolchain/api v0.0.0-20251008084914-06282b83d4cd h1:A6WOUwl
2424
github.com/codeready-toolchain/api v0.0.0-20251008084914-06282b83d4cd/go.mod h1:TiQ/yNv3cGL4nxo3fgRtcHyYYuRf+nAgs6B1IAqvxOU=
2525
github.com/codeready-toolchain/toolchain-common v0.0.0-20251103123811-4066619e5740 h1:cGl01Gakj69am0LopGJjWGpzcCngRqhcaFon/e90hMA=
2626
github.com/codeready-toolchain/toolchain-common v0.0.0-20251103123811-4066619e5740/go.mod h1:5i7k9O0yVftzJwsjSjJjoXMYtUPkiirVsEswuaC8/5I=
27+
github.com/codeready-toolchain/toolchain-common v0.0.0-20251125180949-6ed5aeed75e4 h1:OZd7C6PZMc3BL5CD2NAHxWc1VKtuSjRUJtvEuFBVDEE=
28+
github.com/codeready-toolchain/toolchain-common v0.0.0-20251125180949-6ed5aeed75e4/go.mod h1:5i7k9O0yVftzJwsjSjJjoXMYtUPkiirVsEswuaC8/5I=
2729
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
2830
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
2931
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

0 commit comments

Comments
 (0)