Skip to content

Commit fd90173

Browse files
fix(vendor/scoped): bump k8s version to 1.24, go version to 1.18 and fix scoped client (#2794)
* fix(vendor): bump k8s version to 1.24 and go version to 1.18 Signed-off-by: Vu Dinh <[email protected]> * Update clock package from apimachinery to utils The apimachinery/pkg/util/clock is deprecated and all clock utils is on k8s.io/utils/clock repo instead. Signed-off-by: Vu Dinh <[email protected]> * fix(go.mod): pin opentelemetry packages into specific versions Signed-off-by: Vu Dinh <[email protected]> Co-authored-by: timflannagan <[email protected]> * fix(scoped): update scoped client library to handle token secret In k8s 1.24, token secret is no longer referenced in ServiceAccount. By listing all secrets in the namespace and then filter them with SA name via kubernetes.io/service-account.name annotation, the token secret can be retrieved successfully. Signed-off-by: Vu Dinh <[email protected]> * fix(e2e): Fix several RBAC-related e2e test cases Create token secret for ServiceAccount to ensure those SA is valid for scoped client use. Signed-off-by: Vu Dinh <[email protected]> Co-authored-by: timflannagan <[email protected]>
1 parent dba08eb commit fd90173

File tree

2,046 files changed

+119314
-46252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,046 files changed

+119314
-46252
lines changed

.github/workflows/e2e-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v1
1919
- uses: actions/setup-go@v2
2020
with:
21-
go-version: '~1.17'
21+
go-version: '~1.18'
2222
- run: mkdir -p artifacts
2323
- run: make e2e-local E2E_TEST_CHUNK=${{ matrix.parallel-id }} E2E_TEST_NUM_CHUNKS=${{ strategy.job-total }} E2E_NODES=2 ARTIFACT_DIR=./artifacts/ SKIP='\[FLAKE\]'
2424
- name: Archive Test Artifacts # test results, failed or not, are always uploaded.

.github/workflows/flaky-e2e.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: '~1.17'
17+
go-version: '~1.18'
1818
- run: mkdir -p artifacts
1919
- run: make e2e-local E2E_NODES=1 TEST='\[FLAKE\]' ARTIFACT_DIR=./artifacts/
2020
- name: Archive Test Artifacts # test results, failed or not, are always uploaded.
2121
if: ${{ always() }}
2222
uses: actions/upload-artifact@v2
2323
with:
2424
name: e2e-test-output-${{(github.event.pull_request.head.sha||github.sha)}}-${{ github.run_id }}
25-
path: ${{ github.workspace }}/bin/artifacts/*
25+
path: ${{ github.workspace }}/bin/artifacts/*

.github/workflows/goreleaser.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: '~1.17'
19+
go-version: '~1.18'
2020

2121
- name: Get the image tag
2222
if: startsWith(github.ref, 'refs/tags')

.github/workflows/run-kind-local.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- uses: actions/setup-go@v2
1313
with:
14-
go-version: '~1.17'
14+
go-version: '~1.18'
1515
- name: Install kind
1616
run: |
1717
curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')"

.github/workflows/run-minikube-local.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- uses: actions/setup-go@v2
1313
with:
14-
go-version: '~1.17'
14+
go-version: '~1.18'
1515
- name: Install minikube
1616
run: |
1717
sudo apt-get install conntrack

.github/workflows/sanity.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: '~1.17'
15+
go-version: '~1.18'
1616
- name: Run sanity checks
1717
run: make vendor && make diff
1818
lint:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Run linting checks
2323
uses: "golangci/golangci-lint-action@v2"
2424
with:
25-
version: "v1.45.2"
25+
version: "v1.46.0"

.github/workflows/unit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: '~1.17'
17+
go-version: '~1.18'
1818
- name: Envtest setup
1919
run: |
2020
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

.github/workflows/verify.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: '~1.17'
15+
go-version: '~1.18'
1616

1717
# Note(tflannag): We need to explicitly setup the GOPATH as the generate-internal-groups.sh
1818
# codegen script still relies on $GOPATH being set and will return an error otherwise.

cmd/catalog/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
configv1client "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
1111
"github.com/sirupsen/logrus"
12-
utilclock "k8s.io/apimachinery/pkg/util/clock"
1312
k8sscheme "k8s.io/client-go/kubernetes/scheme"
1413
"k8s.io/client-go/tools/clientcmd"
14+
utilclock "k8s.io/utils/clock"
1515

1616
"github.com/operator-framework/operator-lifecycle-manager/pkg/api/client"
1717
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog"

deploy/chart/crds/0000_50_olm_00-clusterserviceversions.crd.yaml

+214-210
Large diffs are not rendered by default.

deploy/chart/crds/0000_50_olm_00-subscriptions.crd.yaml

+177-177
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)