Skip to content

Commit c7ff486

Browse files
Upgrade devfile registry testing modules & CI to Go 1.21 (#420)
* go 1.21 Signed-off-by: Michael Valdron <[email protected]> * bump k8s to 0.29.2 Signed-off-by: Michael Valdron <[email protected]> --------- Signed-off-by: Michael Valdron <[email protected]>
1 parent 9e980c3 commit c7ff486

17 files changed

+254
-784
lines changed

.ci/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
FROM registry.access.redhat.com/ubi8/go-toolset:1.19 AS builder
15+
FROM registry.access.redhat.com/ubi8/go-toolset:1.21 AS builder
1616

1717
# Set user as root
1818
USER root

.ci/Dockerfile.offline

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
FROM registry.access.redhat.com/ubi8/go-toolset:1.19 AS builder
15+
FROM registry.access.redhat.com/ubi8/go-toolset:1.21 AS builder
1616

1717
# Set user as root
1818
USER root

.ci/openshift_integration.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ set -x
2727
# Disable telemtry for odo
2828
export ODO_DISABLE_TELEMETRY=true
2929

30+
# Set yq version
31+
YQ_VERSION=${YQ_VERSION:-v4.44.1}
32+
3033
# Split the registry image and image tag from the REGISTRY_IMAGE env variable
3134
IMG="$(echo $REGISTRY_IMAGE | cut -d':' -f1)"
3235
TAG="$(echo $REGISTRY_IMAGE | cut -d':' -f2)"
@@ -35,7 +38,7 @@ TAG="$(echo $REGISTRY_IMAGE | cut -d':' -f2)"
3538
oc new-project devfile-registry-test
3639

3740
# Install yq
38-
curl -sL https://github.com/mikefarah/yq/releases/download/v4.9.5/yq_linux_amd64 -o yq && chmod +x yq
41+
curl -sL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -o yq && chmod +x yq
3942
YQ_PATH=$(realpath yq)
4043

4144
# Download odo

.devfile.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ components:
4343
# Alternatively could be removed once https://github.com/redhat-developer/odo/issues/7162 is resolved
4444
- name: index-generator
4545
container:
46-
image: registry.access.redhat.com/ubi8/go-toolset:1.19
46+
image: registry.access.redhat.com/ubi8/go-toolset:1.21
4747
# Devfile Registry Deployment resource
4848
- name: devfile-registry-deployment
4949
kubernetes:

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Go environment
3737
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
3838
with:
39-
go-version: 1.19
39+
go-version: 1.21
4040
- name: Set up QEMU # Enables arm64 image building
4141
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
4242

.github/workflows/devfile-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: manusa/actions-setup-minikube@92af4db914ab207f837251cd53eb7060e6477614 # v2.11.0
4646
with:
4747
minikube version: 'v1.31.2'
48-
kubernetes version: 'v1.26.3'
48+
kubernetes version: 'v1.29.2'
4949
driver: 'docker'
5050
github token: ${{ secrets.GITHUB_TOKEN }}
5151
start args: '--addons ingress --memory 4096 --cpus 2'

.github/workflows/pushimge-next.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Go environment
4242
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
4343
with:
44-
go-version: 1.13
44+
go-version: 1.21
4545
- name: Set up QEMU # Enables arm64 image building
4646
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
4747
- name: Login to Quay

.github/workflows/validate-samples.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install Go
4545
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
4646
with:
47-
go-version: "1.19"
47+
go-version: "1.21"
4848

4949
- name: Install Ginkgo
5050
run: go install -mod=mod github.com/onsi/ginkgo/v2/[email protected]

.github/workflows/validate-stacks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Install Go
4747
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
4848
with:
49-
go-version: "1.19"
49+
go-version: "1.21"
5050

5151
- name: Install Ginkgo
5252
run: go install -mod=mod github.com/onsi/ginkgo/v2/[email protected]
@@ -161,7 +161,7 @@ jobs:
161161
- name: Install Go
162162
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
163163
with:
164-
go-version: "1.19"
164+
go-version: "1.21"
165165

166166
- name: Install odo latest version
167167
run: |

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The public registry is updated weekly, by 12pm EST Wednesdays, with any updated
66

77
## Registry Status
88

9-
![Go](https://img.shields.io/badge/Go-1.19-blue)
9+
![Go](https://img.shields.io/badge/Go-1.21-blue)
1010
[![Validate Devfile stacks](https://github.com/devfile/registry/actions/workflows/validate-stacks.yaml/badge.svg?event=schedule)](https://github.com/devfile/registry/actions/workflows/validate-stacks.yaml)
1111
[![Renovate][1]][2]
1212

tests/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ STACKS_DIR=.cache/samples bash tests/validate_devfile_schemas.sh --samples
5353
- `minikube start --memory 8gb` is a good starting point.
5454
- The `none` driver **cannot** be used. Any other driver (`docker`, `hyperkit`, etc) should suffice.
5555
- odo v3.0.0-rc2 or later.
56-
- Go 1.19 or later installed
56+
- Go 1.21 or later installed
5757
- `$GOPATH/bin` should be in your `$PATH` or you will have to modify `check_with_odov3.sh` to find `ginkgo` binary.
5858
- Ginkgo CLI installed (`go install github.com/onsi/ginkgo/v2/ginkgo@latest`)
5959

tests/odov3/go.mod

+26-25
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/devfile/registry/tests/odov3
22

3-
go 1.19
3+
go 1.21
44

55
require (
6-
github.com/devfile/api/v2 v2.2.2
7-
github.com/devfile/library/v2 v2.2.2
6+
github.com/devfile/api/v2 v2.3.0
7+
github.com/devfile/library/v2 v2.2.3-0.20240612082351-45a4cc4d3504
88
github.com/onsi/ginkgo/v2 v2.13.0
99
github.com/onsi/gomega v1.29.0
1010
)
@@ -22,8 +22,8 @@ require (
2222
github.com/containerd/log v0.1.0 // indirect
2323
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
2424
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
25-
github.com/devfile/registry-support/index/generator v0.0.0-20240311135803-6215550f93d4 // indirect
26-
github.com/devfile/registry-support/registry-library v0.0.0-20240328155806-7c89891a72ce // indirect
25+
github.com/devfile/registry-support/index/generator v0.0.0-20240419194226-cca4c9a81f8d // indirect
26+
github.com/devfile/registry-support/registry-library v0.0.0-20240521161747-89fc566cb024 // indirect
2727
github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2 // indirect
2828
github.com/distribution/reference v0.5.0 // indirect
2929
github.com/docker/cli v25.0.1+incompatible // indirect
@@ -32,7 +32,7 @@ require (
3232
github.com/docker/docker-credential-helpers v0.7.0 // indirect
3333
github.com/docker/go-connections v0.5.0 // indirect
3434
github.com/docker/go-metrics v0.0.1 // indirect
35-
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
35+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
3636
github.com/emirpasic/gods v1.18.1 // indirect
3737
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
3838
github.com/fatih/color v1.14.1 // indirect
@@ -43,20 +43,21 @@ require (
4343
github.com/go-git/go-git/v5 v5.11.0 // indirect
4444
github.com/go-logr/logr v1.4.1 // indirect
4545
github.com/go-logr/stdr v1.2.2 // indirect
46-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
47-
github.com/go-openapi/jsonreference v0.20.0 // indirect
48-
github.com/go-openapi/swag v0.19.14 // indirect
46+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
47+
github.com/go-openapi/jsonreference v0.20.2 // indirect
48+
github.com/go-openapi/swag v0.22.3 // indirect
4949
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
5050
github.com/gobwas/glob v0.2.3 // indirect
5151
github.com/gogo/protobuf v1.3.2 // indirect
5252
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
5353
github.com/golang/mock v1.6.0 // indirect
5454
github.com/golang/protobuf v1.5.4 // indirect
5555
github.com/google/btree v1.0.1 // indirect
56-
github.com/google/gnostic v0.5.7-v3refs // indirect
56+
github.com/google/gnostic-models v0.6.8 // indirect
5757
github.com/google/go-cmp v0.6.0 // indirect
5858
github.com/google/gofuzz v1.2.0 // indirect
59-
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
59+
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
60+
github.com/google/uuid v1.6.0 // indirect
6061
github.com/gorilla/mux v1.8.0 // indirect
6162
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
6263
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -69,7 +70,7 @@ require (
6970
github.com/kevinburke/ssh_config v1.2.0 // indirect
7071
github.com/klauspost/compress v1.17.7 // indirect
7172
github.com/kylelemons/godebug v1.1.0 // indirect
72-
github.com/mailru/easyjson v0.7.6 // indirect
73+
github.com/mailru/easyjson v0.7.7 // indirect
7374
github.com/mattn/go-colorable v0.1.13 // indirect
7475
github.com/mattn/go-isatty v0.0.17 // indirect
7576
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
@@ -84,10 +85,10 @@ require (
8485
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
8586
github.com/pjbgf/sha1cd v0.3.0 // indirect
8687
github.com/pkg/errors v0.9.1 // indirect
87-
github.com/prometheus/client_golang v1.14.0 // indirect
88-
github.com/prometheus/client_model v0.3.0 // indirect
89-
github.com/prometheus/common v0.37.0 // indirect
90-
github.com/prometheus/procfs v0.8.0 // indirect
88+
github.com/prometheus/client_golang v1.16.0 // indirect
89+
github.com/prometheus/client_model v0.4.0 // indirect
90+
github.com/prometheus/common v0.44.0 // indirect
91+
github.com/prometheus/procfs v0.10.1 // indirect
9192
github.com/sergi/go-diff v1.1.0 // indirect
9293
github.com/sirupsen/logrus v1.9.3 // indirect
9394
github.com/skeema/knownhosts v1.2.1 // indirect
@@ -119,17 +120,17 @@ require (
119120
gopkg.in/warnings.v0 v0.1.2 // indirect
120121
gopkg.in/yaml.v2 v2.4.0 // indirect
121122
gopkg.in/yaml.v3 v3.0.1 // indirect
122-
k8s.io/api v0.26.10 // indirect
123-
k8s.io/apiextensions-apiserver v0.26.10 // indirect
124-
k8s.io/apimachinery v0.26.10 // indirect
125-
k8s.io/client-go v0.26.10 // indirect
123+
k8s.io/api v0.29.2 // indirect
124+
k8s.io/apiextensions-apiserver v0.29.2 // indirect
125+
k8s.io/apimachinery v0.29.2 // indirect
126+
k8s.io/client-go v0.29.2 // indirect
126127
k8s.io/klog v1.0.0 // indirect
127-
k8s.io/klog/v2 v2.90.1 // indirect
128-
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
129-
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
128+
k8s.io/klog/v2 v2.110.1 // indirect
129+
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
130+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
130131
oras.land/oras-go v1.2.5 // indirect
131132
sigs.k8s.io/controller-runtime v0.14.7 // indirect
132-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
133-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
133+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
134+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
134135
sigs.k8s.io/yaml v1.3.0 // indirect
135136
)

0 commit comments

Comments
 (0)