Skip to content

Commit b97def2

Browse files
authored
feat: Build with go 1.23.3 and upgrade all tools (#967)
**What problem does this PR solve?**: **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
1 parent 52f106a commit b97def2

17 files changed

+539
-474
lines changed

.github/workflows/checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ jobs:
6666
config:
6767
- {"provider": "Nutanix", "kubernetesVersion": "v1.29.6", "osImage": "nkp-rocky-9.4-release-1.29.6-20240816215147"}
6868
- {"provider": "Nutanix", "kubernetesVersion": "v1.30.5", "osImage": "nkp-rocky-9.4-release-1.30.5-20240930171619"}
69-
- {"provider": "Docker", "kubernetesVersion": "v1.29.8"}
70-
- {"provider": "Docker", "kubernetesVersion": "v1.30.5"}
71-
- {"provider": "Docker", "kubernetesVersion": "v1.31.0"}
69+
- {"provider": "Docker", "kubernetesVersion": "v1.29.9"}
70+
- {"provider": "Docker", "kubernetesVersion": "v1.30.6"}
71+
- {"provider": "Docker", "kubernetesVersion": "v1.31.2"}
7272
# Uncomment below once we have the ability to run e2e tests on other providers from GHA.
7373
# - {"provider": "AWS", "kubernetesVersion": "v1.29.6"}
7474
fail-fast: false
@@ -95,9 +95,9 @@ jobs:
9595
strategy:
9696
matrix:
9797
config:
98-
- {"provider": "Docker", "kubernetesVersion": "v1.29.8"}
99-
- {"provider": "Docker", "kubernetesVersion": "v1.30.5"}
100-
- {"provider": "Docker", "kubernetesVersion": "v1.31.0"}
98+
- {"provider": "Docker", "kubernetesVersion": "v1.29.9"}
99+
- {"provider": "Docker", "kubernetesVersion": "v1.30.6"}
100+
- {"provider": "Docker", "kubernetesVersion": "v1.31.2"}
101101
# Uncomment below once we have the ability to run e2e tests on other providers from GHA.
102102
# - {"provider": "Nutanix", "kubernetesVersion": "v1.29.6"}
103103
# - {"provider": "AWS", "kubernetesVersion": "v1.29.6"}

.pre-commit-config.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,36 +77,36 @@ repos:
7777
rev: v4.6.0
7878
hooks:
7979
- id: trailing-whitespace
80-
stages: [commit]
80+
stages: [pre-commit]
8181
- id: check-yaml
8282
args: ["-m", "--unsafe"]
83-
stages: [commit]
83+
stages: [pre-commit]
8484
exclude: ^charts/.+/(templates|addons)/.+\.ya?ml$
8585
- id: mixed-line-ending
8686
args: ["-f", "lf"]
8787
exclude: \.bat$
88-
stages: [commit]
88+
stages: [pre-commit]
8989
- id: no-commit-to-branch
90-
stages: [commit]
90+
stages: [pre-commit]
9191
- id: check-added-large-files
92-
stages: [commit]
92+
stages: [pre-commit]
9393
exclude: ^pkg/handlers/cni/calico/manifests/tigera-operator-configmap.yaml$
9494
- id: check-case-conflict
95-
stages: [commit]
95+
stages: [pre-commit]
9696
- id: check-merge-conflict
97-
stages: [commit]
97+
stages: [pre-commit]
9898
- id: check-executables-have-shebangs
99-
stages: [commit]
99+
stages: [pre-commit]
100100
- id: check-symlinks
101-
stages: [commit]
101+
stages: [pre-commit]
102102
- id: end-of-file-fixer
103-
stages: [commit]
103+
stages: [pre-commit]
104104
exclude: ^charts/cluster-api-runtime-extensions-nutanix/README.md$
105105
- repo: https://github.com/rhysd/actionlint
106106
rev: v1.7.1
107107
hooks:
108108
- id: actionlint-system
109-
stages: [commit]
109+
stages: [pre-commit]
110110
- repo: https://github.com/jorisroovers/gitlint
111111
rev: v0.19.1
112112
hooks:
@@ -117,28 +117,28 @@ repos:
117117
rev: 3.0.0
118118
hooks:
119119
- id: shfmt
120-
stages: [commit]
120+
stages: [pre-commit]
121121
args: ["-s", "-i", "2"]
122122
- id: script-must-have-extension
123-
stages: [commit]
123+
stages: [pre-commit]
124124
- repo: https://github.com/shellcheck-py/shellcheck-py
125125
rev: v0.10.0.1
126126
hooks:
127127
- id: shellcheck
128-
stages: [commit]
128+
stages: [pre-commit]
129129
args: ["-e", "SC2211", "-x"]
130130
- repo: https://github.com/igorshubovych/markdownlint-cli
131131
rev: v0.41.0
132132
hooks:
133133
- id: markdownlint
134-
stages: [commit]
134+
stages: [pre-commit]
135135
exclude: ^(CHANGELOG.md|charts/.+/README.md|.github/pull_request_template.md)$
136136
- repo: https://github.com/Lucas-C/pre-commit-hooks
137137
rev: v1.5.5
138138
hooks:
139139
- id: insert-license
140140
name: License headers - Go
141-
stages: [commit]
141+
stages: [pre-commit]
142142
files: "(.*\\.go|go.mod)$"
143143
exclude: ^(api/external/|internal/test)
144144
args:
@@ -149,7 +149,7 @@ repos:
149149
- --allow-past-years
150150
- id: insert-license
151151
name: License headers - YAML and Makefiles
152-
stages: [commit]
152+
stages: [pre-commit]
153153
files: (^Makefile|\.(ya?ml|mk))$
154154
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$
155155
args:
@@ -158,7 +158,7 @@ repos:
158158
- --allow-past-years
159159
- id: insert-license
160160
name: License headers - Markdown
161-
stages: [commit]
161+
stages: [pre-commit]
162162
files: \.md$
163163
exclude: ^(CHANGELOG.md$|docs/|.github/pull_request_template.md$)
164164
args:

api/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/ap
55

66
go 1.22.0
77

8-
toolchain go1.23.1
8+
toolchain go1.23.3
99

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

api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: awsclusterconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

api/v1alpha1/crds/caren.nutanix.com_awsworkernodeconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: awsworkernodeconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: dockerclusterconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

api/v1alpha1/crds/caren.nutanix.com_dockernodeconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: dockernodeconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

api/v1alpha1/crds/caren.nutanix.com_genericclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: genericclusterconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: nutanixclusterconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

api/v1alpha1/crds/caren.nutanix.com_nutanixnodeconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
controller-gen.kubebuilder.io/version: (devel)
8+
controller-gen.kubebuilder.io/version: v0.16.4
99
name: nutanixnodeconfigs.caren.nutanix.com
1010
spec:
1111
group: caren.nutanix.com

0 commit comments

Comments
 (0)