Skip to content

Commit

Permalink
feat: Build with go 1.23.2 and upgrade all tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Nov 7, 2024
1 parent acb0294 commit 55be739
Show file tree
Hide file tree
Showing 17 changed files with 539 additions and 474 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
config:
- {"provider": "Nutanix", "kubernetesVersion": "v1.29.6", "osImage": "nkp-rocky-9.4-release-1.29.6-20240816215147"}
- {"provider": "Nutanix", "kubernetesVersion": "v1.30.5", "osImage": "nkp-rocky-9.4-release-1.30.5-20240930171619"}
- {"provider": "Docker", "kubernetesVersion": "v1.29.8"}
- {"provider": "Docker", "kubernetesVersion": "v1.30.5"}
- {"provider": "Docker", "kubernetesVersion": "v1.31.0"}
- {"provider": "Docker", "kubernetesVersion": "v1.29.9"}
- {"provider": "Docker", "kubernetesVersion": "v1.30.6"}
- {"provider": "Docker", "kubernetesVersion": "v1.31.2"}
# Uncomment below once we have the ability to run e2e tests on other providers from GHA.
# - {"provider": "AWS", "kubernetesVersion": "v1.29.6"}
fail-fast: false
Expand All @@ -95,9 +95,9 @@ jobs:
strategy:
matrix:
config:
- {"provider": "Docker", "kubernetesVersion": "v1.29.8"}
- {"provider": "Docker", "kubernetesVersion": "v1.30.5"}
- {"provider": "Docker", "kubernetesVersion": "v1.31.0"}
- {"provider": "Docker", "kubernetesVersion": "v1.29.9"}
- {"provider": "Docker", "kubernetesVersion": "v1.30.6"}
- {"provider": "Docker", "kubernetesVersion": "v1.31.2"}
# Uncomment below once we have the ability to run e2e tests on other providers from GHA.
# - {"provider": "Nutanix", "kubernetesVersion": "v1.29.6"}
# - {"provider": "AWS", "kubernetesVersion": "v1.29.6"}
Expand Down
36 changes: 18 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,36 @@ repos:
rev: v4.6.0
hooks:
- id: trailing-whitespace
stages: [commit]
stages: [pre-commit]
- id: check-yaml
args: ["-m", "--unsafe"]
stages: [commit]
stages: [pre-commit]
exclude: ^charts/.+/(templates|addons)/.+\.ya?ml$
- id: mixed-line-ending
args: ["-f", "lf"]
exclude: \.bat$
stages: [commit]
stages: [pre-commit]
- id: no-commit-to-branch
stages: [commit]
stages: [pre-commit]
- id: check-added-large-files
stages: [commit]
stages: [pre-commit]
exclude: ^pkg/handlers/cni/calico/manifests/tigera-operator-configmap.yaml$
- id: check-case-conflict
stages: [commit]
stages: [pre-commit]
- id: check-merge-conflict
stages: [commit]
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [commit]
stages: [pre-commit]
- id: check-symlinks
stages: [commit]
stages: [pre-commit]
- id: end-of-file-fixer
stages: [commit]
stages: [pre-commit]
exclude: ^charts/cluster-api-runtime-extensions-nutanix/README.md$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint-system
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
Expand All @@ -117,28 +117,28 @@ repos:
rev: 3.0.0
hooks:
- id: shfmt
stages: [commit]
stages: [pre-commit]
args: ["-s", "-i", "2"]
- id: script-must-have-extension
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [commit]
stages: [pre-commit]
args: ["-e", "SC2211", "-x"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
stages: [commit]
stages: [pre-commit]
exclude: ^(CHANGELOG.md|charts/.+/README.md|.github/pull_request_template.md)$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
name: License headers - Go
stages: [commit]
stages: [pre-commit]
files: "(.*\\.go|go.mod)$"
exclude: ^(api/external/|internal/test)
args:
Expand All @@ -149,7 +149,7 @@ repos:
- --allow-past-years
- id: insert-license
name: License headers - YAML and Makefiles
stages: [commit]
stages: [pre-commit]
files: (^Makefile|\.(ya?ml|mk))$
exclude: ^(internal/test|pkg/handlers/.+/embedded|examples|charts/cluster-api-runtime-extensions-nutanix/(defaultclusterclasses|addons))/.+\.ya?ml|docs/static/helm/index\.yaml|charts/cluster-api-runtime-extensions-nutanix/templates/helm-config.yaml$
args:
Expand All @@ -158,7 +158,7 @@ repos:
- --allow-past-years
- id: insert-license
name: License headers - Markdown
stages: [commit]
stages: [pre-commit]
files: \.md$
exclude: ^(CHANGELOG.md$|docs/|.github/pull_request_template.md$)
args:
Expand Down
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/ap

go 1.22.0

toolchain go1.23.1
toolchain go1.23.2

replace github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common => ../common

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: awsclusterconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: awsworkernodeconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: dockerclusterconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/crds/caren.nutanix.com_dockernodeconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: dockernodeconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: genericclusterconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: nutanixclusterconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: (devel)
controller-gen.kubebuilder.io/version: v0.16.4
name: nutanixnodeconfigs.caren.nutanix.com
spec:
group: caren.nutanix.com
Expand Down
2 changes: 1 addition & 1 deletion common/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/co

go 1.22.0

toolchain go1.23.1
toolchain go1.23.2

replace github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api => ../api

Expand Down
6 changes: 3 additions & 3 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
"ko@latest",
"kubebuilder@latest",
"kubectl@latest",
"kubernetes-controller-tools@latest",
"kustomize@latest",
"pre-commit@latest",
"rsync@latest",
"setup-envtest@latest",
"shfmt@latest",
"yamale@latest",
"yamllint@latest",
"yq-go@latest",
"path:./hack/flakes#clusterctl-aws",
"path:./hack/flakes#controller-gen",
"path:./hack/flakes#goprintconst",
"path:./hack/flakes#govulncheck",
"path:./hack/flakes#helm-with-plugins",
"path:./hack/flakes#release-please",
"path:./hack/flakes#setup-envtest"
"path:./hack/flakes#release-please"
],
"shell": {
"scripts": {
Expand Down
Loading

0 comments on commit 55be739

Please sign in to comment.