Skip to content

Commit

Permalink
Update dependency versions (#68)
Browse files Browse the repository at this point in the history
- Update required Golang version, dependencies, and tools.
- Account for breaking changes in OpenAPI library.
- Account for changes to linter.
- Update low version used for testing to 2.5.0.
  • Loading branch information
adriansuarez authored Oct 3, 2024
1 parent 64f7577 commit 4a6fd60
Show file tree
Hide file tree
Showing 15 changed files with 595 additions and 916 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ executors:
go:
# Check https://circleci.com/developer/images/image/cimg/go for more details
docker:
- image: cimg/go:1.22.0
- image: cimg/go:1.23.1
resource_class: small

ubuntu_vm:
machine:
image: ubuntu-2204:2023.10.1
image: ubuntu-2404:2024.05.1
resource_class: medium

commands:
Expand Down Expand Up @@ -146,13 +146,13 @@ workflows:
name: Functional tests (Minikube)
test-driver: minikube
- functional_tests:
name: Functional tests (KWOK, 2.4.1)
name: Functional tests (KWOK, 2.5.0)
test-driver: kwok
nuodb-cp-version: 2.4.1
nuodb-cp-version: 2.5.0
- functional_tests:
name: Functional tests (Minikube, 2.4.1)
name: Functional tests (Minikube, 2.5.0)
test-driver: minikube
nuodb-cp-version: 2.4.1
nuodb-cp-version: 2.5.0
- functional_tests:
name: Functional tests (External DBaaS)
test-driver: external
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# Specify 1.20 even though go.mod uses 1.19, because some tools require 1.20.
go-version: '1.20'
go-version: '1.23'
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ issues:
linters:
disable-all: true
enable:
- copyloopvar
- durationcheck
- errcheck
- exportloopref
- forcetypeassert
- godot
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- makezero
- misspell
Expand All @@ -28,7 +29,6 @@ linters:
- unconvert
- unparam
- unused
- vet

linters-settings:
goimports:
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export OUTPUT_DIR ?= $(TMP_DIR)/test-artifacts
OS := $(shell go env GOOS)
ARCH := $(shell go env GOARCH)

TERRAFORM_VERSION ?= 1.7.3
TOFU_VERSION ?= 1.7.1
KUBECTL_VERSION ?= 1.28.3
KWOKCTL_VERSION ?= 0.5.1
HELM_VERSION ?= 3.14.3
MINIKUBE_VERSION ?= 1.32.0
TERRAFORM_VERSION ?= 1.9.6
TOFU_VERSION ?= 1.8.2
KUBECTL_VERSION ?= 1.31.1
KWOKCTL_VERSION ?= 0.6.0
HELM_VERSION ?= 3.16.1
MINIKUBE_VERSION ?= 1.34.0
NUODB_CP_VERSION ?= 2.7.0

GOTESTSUM := bin/gotestsum
Expand Down Expand Up @@ -69,7 +69,7 @@ $(TOFU):

$(KUBECTL):
mkdir -p bin
curl -L -s https://storage.googleapis.com/kubernetes-release/release/v$(KUBECTL_VERSION)/bin/$(OS)/$(ARCH)/kubectl -o $(KUBECTL)
curl -L -s https://dl.k8s.io/release/v$(KUBECTL_VERSION)/bin/$(OS)/$(ARCH)/kubectl -o $(KUBECTL)
chmod +x $(KUBECTL)

$(KWOKCTL):
Expand Down
6 changes: 3 additions & 3 deletions deploy/k8s/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -e
cd "$(dirname "$0")"
./check.sh

: ${NUODB_CP_VERSION:="2.5.0"}
: ${NUODB_CP_VERSION:="2.7.0"}
: ${NUODB_CP_REPO:="https://nuodb.github.io/nuodb-cp-releases/charts"}

: ${CERT_MANAGER_VERSION:="1.13.3"}
: ${CERT_MANAGER_VERSION:="1.15.3"}
: ${CERT_MANAGER_REPO:="https://charts.jetstack.io"}

: ${NGINX_INGRESS_VERSION:="4.7.1"}
: ${NGINX_INGRESS_VERSION:="4.11.2"}
: ${NGINX_INGRESS_REPO:="https://kubernetes.github.io/ingress-nginx"}

helm upgrade --install cert-manager cert-manager \
Expand Down
2 changes: 1 addition & 1 deletion deploy/kwok/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export KUBECONFIG
: ${PROVISIONER_IMAGE:="ghcr.io/adriansuarez/noop-provisioner:latest"}

: ${NUODB_CP_REPO:="https://nuodb.github.io/nuodb-cp-releases/charts"}
: ${NUODB_CP_VERSION:="2.5.0"}
: ${NUODB_CP_VERSION:="2.7.0"}
: ${NUODB_CP_IMAGE:="ghcr.io/nuodb/nuodb-cp-images:$NUODB_CP_VERSION"}
: ${NUODB_CP_USER:="system/admin"}
: ${NUODB_CP_PASSWORD:="changeIt"}
Expand Down
2 changes: 1 addition & 1 deletion deploy/minikube/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
cd "$(dirname "$0")"

: ${KUBERNETES_VERSION:="1.28.3"}
: ${KUBERNETES_VERSION:="1.31.1"}
: ${TMP_DIR:="/tmp"}
: ${KUBECONFIG:="$TMP_DIR/kubeconfig.yaml"}
export KUBECONFIG
Expand Down
Loading

0 comments on commit 4a6fd60

Please sign in to comment.