Skip to content

Commit 9bb6e58

Browse files
committed
Merge tag 'v0.7.0' into merge-upstream
v0.7.0 Conflicts: OWNERS OWNERS_ALIASES api/v1alpha6/openstackcluster_webhook.go api/v1alpha6/openstackcluster_webhook_test.go api/v1alpha6/openstackclusterlist_webhook.go api/v1alpha6/openstackclustertemplate_webhook.go api/v1alpha6/openstackmachine_webhook.go api/v1alpha6/openstackmachinelist_webhook.go api/v1alpha6/openstackmachinetemplate_webhook_test.go api/v1alpha6/openstackmachinetemplatelist_webhook.go api/v1alpha6/webhooks.go config/webhook/manifests.yaml controllers/openstackcluster_controller.go metadata.yaml
2 parents ef44b7e + 2d8a5bd commit 9bb6e58

File tree

249 files changed

+15457
-6073
lines changed

Some content is hidden

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

249 files changed

+15457
-6073
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- please add a icon to the title of this PR (see https://sigs.k8s.io/cluster-api/VERSIONING.md), and delete this line and similar ones -->
2-
<!-- the icon will be either ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, minor or feature additions), 🐛 (:bug:, patch and bugfixes), 📖 (:book:, documentation or proposals), or 🏃 (:running:, other) -->
2+
<!-- the icon will be either ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, feature additions), 🐛 (:bug:, patch and bugfixes), 📖 (:book:, documentation or proposals), or 🌱 (:seedling:, minor or other) -->
33

44
**What this PR does / why we need it**:
55

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,6 @@ sshuttle.pid
173173

174174
# Book
175175
docs/book/book/
176+
177+
# venv
178+
.venv

.golangci.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
linters:
22
disable-all: true
33
enable:
4+
- asasalint
45
- asciicheck
6+
- bidichk
57
- bodyclose
68
- cyclop
7-
- deadcode
89
- depguard
910
- dogsled
11+
- dupword
1012
- durationcheck
1113
- errcheck
1214
- exportloopref
@@ -25,7 +27,6 @@ linters:
2527
- gosec
2628
- gosimple
2729
- govet
28-
- ifshort
2930
- importas
3031
- ineffassign
3132
- makezero
@@ -41,26 +42,42 @@ linters:
4142
- rowserrcheck
4243
- sqlclosecheck
4344
- staticcheck
44-
- structcheck
4545
- stylecheck
4646
- thelper
4747
- typecheck
4848
- unconvert
4949
- unparam
5050
- unused
51-
- varcheck
5251
- wastedassign
5352
- whitespace
5453

5554
linters-settings:
5655
cyclop:
5756
# TODO(sbuerin) fix remaining findings and set to 20 afterwards
5857
max-complexity: 30
59-
ifshort:
60-
# Maximum length of variable declaration measured in number of characters, after which linter won't suggest using short syntax.
61-
max-decl-chars: 50
6258
gci:
6359
local-prefixes: sigs.k8s.io/cluster-api-provider-openstack
60+
gocritic:
61+
enabled-tags:
62+
- diagnostic
63+
- experimental
64+
- performance
65+
disabled-checks:
66+
- appendAssign
67+
- dupImport # https://github.com/go-critic/go-critic/issues/845
68+
- evalOrder
69+
- ifElseChain
70+
- octalLiteral
71+
- regexpSimplify
72+
- sloppyReassign
73+
- truncateCmp
74+
- typeDefFirst
75+
- unnamedResult
76+
- unnecessaryDefer
77+
- whyNoLint
78+
- wrapperFunc
79+
- rangeValCopy
80+
- hugeParam
6481
importas:
6582
no-unaliased: true
6683
alias:
@@ -84,6 +101,8 @@ linters-settings:
84101
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha4
85102
alias: infrav1alpha4
86103
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha5
104+
alias: infrav1alpha5
105+
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha6
87106
alias: infrav1
88107
- pkg: sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors
89108
alias: capoerrors
@@ -110,9 +129,9 @@ linters-settings:
110129
alias: controlplanev1
111130

112131
staticcheck:
113-
go: "1.16"
132+
go: "1.17"
114133
stylecheck:
115-
go: "1.16"
134+
go: "1.17"
116135
nestif:
117136
# minimal complexity of if statements to report, 5 by default
118137
# TODO(sbuerin) fix remaining findings and set to 5 after:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Kubernetes projects require that you sign a Contributor License Agreement (CLA)
1111
1. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
1212
1. Fork the desired repo, develop and test your code changes.
1313
1. Submit a pull request.
14-
1. All code PR must be labeled with ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, minor or feature additions), 🐛 (:bug:, patch and bugfixes), 📖 (:book:, documentation or proposals), or 🏃 (:running:, other)
14+
1. All code PR must be labeled with ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, feature additions), 🐛 (:bug:, patch and bugfixes), 📖 (:book:, documentation or proposals), or 🌱 (:seedling:, minor or other)

Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# http://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -24,7 +24,7 @@
2424
# media type: "application/vnd.oci.image.layer.v1.tar+gzip"
2525

2626
# Build the manager binary
27-
FROM golang:1.17.6 as builder
27+
FROM golang:1.19.3 as builder
2828
WORKDIR /workspace
2929

3030
# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# Build the manager binary
18-
FROM golang:1.17.6 as builder
18+
FROM golang:1.19.3 as builder
1919
WORKDIR /workspace
2020

2121
# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
http://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)