Skip to content

Commit cced038

Browse files
committed
chore: fix license headers
Add `make conformance` target. Signed-off-by: Alexey Palazhchenko <[email protected]>
1 parent 7b5dc51 commit cced038

27 files changed

+126
-231
lines changed

.conform.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
policies:
2+
- type: commit
3+
spec:
4+
dco: true
5+
gpg:
6+
required: true
7+
identity:
8+
gitHubOrganization: talos-systems
9+
spellcheck:
10+
locale: US
11+
maximumOfOneCommit: true
12+
header:
13+
length: 89
14+
imperative: true
15+
case: lower
16+
invalidLastCharacters: .
17+
body:
18+
required: true
19+
conventional:
20+
types:
21+
- chore
22+
- docs
23+
- perf
24+
- refactor
25+
- style
26+
- test
27+
- release
28+
scopes: []
29+
- type: license
30+
spec:
31+
skipPaths:
32+
- .git/
33+
includeSuffixes:
34+
- .go
35+
excludeSuffixes: []
36+
allowPrecedingComments: true
37+
header: |
38+
// This Source Code Form is subject to the terms of the Mozilla Public
39+
// License, v. 2.0. If a copy of the MPL was not distributed with this
40+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ run: install ## Run the controller locally. This is for testing purposes only.
109109
clean:
110110
@rm -rf $(ARTIFACTS)
111111

112+
conformance: ## Performs policy checks against the commit and source code.
113+
docker run --rm -it -v $(PWD):/src -w /src ghcr.io/talos-systems/conform:v0.1.0-alpha.23 enforce
114+
112115
# Make `make test` behave just like `go test` regarding relative paths.
113116
test: ## Run tests.
114117
@$(MAKE) local-integration-test DEST=./internal/integration PLATFORM=linux/amd64

api/v1alpha2/doc.go

Lines changed: 0 additions & 3 deletions
This file was deleted.

api/v1alpha2/groupversion_info.go

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
/*
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
24

3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
See the License for the specific language governing permissions and
13-
limitations under the License.
14-
*/
15-
16-
// Package v1alpha2 contains API Schema definitions for the bootstrap v1alpha2 API group
5+
// Package v1alpha2 contains API Schema definitions for the bootstrap v1alpha2 API group.
6+
//
177
// +kubebuilder:object:generate=true
188
// +groupName=bootstrap.cluster.x-k8s.io
199
package v1alpha2

api/v1alpha2/talosconfig_conversion.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
15
package v1alpha2
26

37
import (

api/v1alpha2/talosconfig_types.go

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
/*
2-
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
See the License for the specific language governing permissions and
13-
limitations under the License.
14-
*/
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
154

165
package v1alpha2
176

@@ -24,7 +13,6 @@ const (
2413
ConfigFinalizer = "talosconfig.bootstrap.cluster.x-k8s.io"
2514
)
2615

27-
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
2816
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
2917

3018
// TalosConfigSpec defines the desired state of TalosConfig

api/v1alpha2/talosconfigtemplate_types.go

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
/*
2-
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
See the License for the specific language governing permissions and
13-
limitations under the License.
14-
*/
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
154

165
package v1alpha2
176

api/v1alpha2/types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
15
package v1alpha2
26

7+
// +k8s:conversion-gen=github.com/talos-systems/cluster-api-bootstrap-provider-talos/api/v1alpha3
8+
39
// TalosConfigTemplateResource defines the Template structure
410
type TalosConfigTemplateResource struct {
511
Spec TalosConfigSpec `json:"spec,omitempty"`

api/v1alpha2/zz_generated.conversion.go

Lines changed: 4 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha2/zz_generated.deepcopy.go

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)