8000 [Feature] Fix CRD Generation and golangci version (#1799) · arangodb/kube-arangodb@5eef795 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5eef795

Browse files
authored
[Feature] Fix CRD Generation and golangci version (#1799)
1 parent 36105b7 commit 5eef795

File tree

47 files changed

+149
-17761
lines changed

Some content is hidden

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

47 files changed

+149
-17761
lines changed

.golangci.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
run:
22
issues-exit-code: 3
33
timeout: 30m
4-
skip-dirs:
4+
issues:
5+
exclude-dirs:
56
- vendor
67
- .gobuild
78
- deps
@@ -20,6 +21,15 @@ linters:
2021
- importas
2122
- gci
2223
linters-settings:
24+
govet:
25+
disable:
26+
- printf
27+
staticcheck:
28+
checks:
29+
- all
30+
- -SA1019
31+
unparam:
32+
check-exported: false
2333
importas:
2434
no-unaliased: true
2535
alias:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
- (Feature) Helm Chart Values merge methods
4848
- (Feature) (Platform) Expose Route Name via Header
4949
- (Feature) (Platform) Route Upstream Timeout
50+
- (Maintenance) Fix CRD Generation and golangci version
5051

5152
## [1.2.43](https://github.com/arangodb/kube-arangodb/tree/1.2.43) (2024-10-14)
5253
- (Feature) ArangoRoute CRD

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,11 +774,11 @@ init: vendor tools update-generated $(BIN)
774774
.PHONY: tools-min
775775
tools-min: update-vendor
776776
@echo ">> Fetching golangci-lint linter"
777-
@GOBIN=$(GOPATH)/bin go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
777+
@GOBIN=$(GOPATH)/bin go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4
778778
@echo ">> Fetching goimports"
779779
@GOBIN=$(GOPATH)/bin go install golang.org/x/tools/cmd/goimports@v0.19.0
780780
@echo ">> Fetching license check"
781-
@GOBIN=$(GOPATH)/bin go install github.com/google/addlicense@6d92264d717064f28b32464f0f9693a5b4ef0239
781+
@GOBIN=$(GOPATH)/bin go install github.com/google/addlicense@v1.1.1
782782
@echo ">> Fetching yamlfmt"
783783
@GOBIN=$(GOPATH)/bin go install github.com/google/yamlfmt/cmd/yamlfmt@v0.10.0
784784
@echo ">> Fetching protolinter"

chart/kube-arangodb-arm64/crds/backups-backup.yaml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -57,47 +57,3 @@ spec:
5757
type: string
5858
subresources:
5959
status: {}
60-
- name: v1alpha
61-
schema:
62-
openAPIV3Schema:
63-
type: object
64-
x-kubernetes-preserve-unknown-fields: true
65-
served: true
66-
storage: false
67-
additionalPrinterColumns:
68-
- jsonPath: .spec.policyName
69-
description: Policy name
70-
name: Policy
71-
type: string
72-
- jsonPath: .spec.deployment.name
73-
description: Deployment name
74-
name: Deployment
75-
type: string
76-
- jsonPath: .status.backup.version
77-
description: Backup Version
78-
name: Version
79-
type: string
80-
- jsonPath: .status.backup.createdAt
81-
description: Backup Creation Timestamp
82-
name: Created
83-
type: string
84-
- jsonPath: .status.backup.sizeInBytes
85-
description: Backup Size in Bytes
86-
name: Size
87-
type: integer
88-
format: byte
89-
- jsonPath: .status.backup.numberOfDBServers
90-
description: Backup Number of the DB Servers
91-
name: DBServers
92-
type: integer
93-
- jsonPath: .status.state
94-
description: The actual state of the ArangoBackup
95-
name: State
96-
type: string
97-
- jsonPath: .status.message
98-
priority: 1
99-
description: Message of the ArangoBackup object
100-
name: Message
101-
type: string
102-
subresources:
103-
status: {}

chart/kube-arangodb-arm64/crds/backups-backuppolicy.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,3 @@ spec:
3737
type: string
3838
subresources:
3939
status: {}
40-
- name: v1alpha
41-
schema:
42-
openAPIV3Schema:
43-
type: object
44-
x-kubernetes-preserve-unknown-fields: true
45-
served: true
46-
storage: false
47-
additionalPrinterColumns:
48-
- jsonPath: .spec.schedule
49-
description: Schedule
50-
name: Schedule
51-
type: string
52-
- jsonPath: .status.scheduled
53-
description: Scheduled
54-
name: Scheduled
55-
type: string
56-
- jsonPath: .status.message
57-
priority: 1
58-
description: Message of the ArangoBackupPolicy object
59-
name: Message
60-
type: string
61-
subresources:
62-
status: {}

chart/kube-arangodb-arm64/crds/database-deployment.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ spec:
2121
x-kubernetes-preserve-unknown-fields: true
2222
served: true
2323
storage: true
24-
- name: v1alpha
25-
schema:
26-
openAPIV3Schema:
27-
type: object
28-
x-kubernetes-preserve-unknown-fields: true
29-
served: true
30-
storage: false
3124
- name: v2alpha1
3225
schema:
3326
openAPIV3Schema:

chart/kube-arangodb-arm64/crds/database-task.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ spec:
1818
x-kubernetes-preserve-unknown-fields: true
1919
served: true
2020
storage: true
21-
- name: v1alpha
22-
schema:
23-
openAPIV3Schema:
24-
type: object
25-
x-kubernetes-preserve-unknown-fields: true
26-
served: true
27-
storage: false
2821
- name: v2alpha1
2922
schema:
3023
openAPIV3Schema:

chart/kube-arangodb-arm64/crds/replication-deploymentreplication.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ spec:
2020
x-kubernetes-preserve-unknown-fields: true
2121
served: true
2222
storage: true
23-
- name: v1alpha
24-
schema:
25-
openAPIV3Schema:
26-
type: object
27-
x-kubernetes-preserve-unknown-fields: true
28-
served: true
29-
storage: false
3023
- name: v2alpha1
3124
schema:
3225
openAPIV3Schema:

chart/kube-arangodb-enterprise-arm64/crds/backups-backup.yaml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -57,47 +57,3 @@ spec:
5757
type: string
5858
subresources:
5959
status: {}
60-
- name: v1alpha
61-
schema:
62-
openAPIV3Schema:
63-
type: object
64-
x-kubernetes-preserve-unknown-fields: true
65-
served: true
66-
storage: false
67-
additionalPrinterColumns:
68-
- jsonPath: .spec.policyName
69-
description: Policy name
70-
name: Policy
71-
type: string
72-
- jsonPath: .spec.deployment.name
73-
description: Deployment name
74-
name: Deployment
75-
type: string
76-
- jsonPath: .status.backup.version
77-
description: Backup Version
78-
name: Version
79-
type: string
80-
- jsonPath: .status.backup.createdAt
81-
description: Backup Creation Timestamp
82-
name: Created
83-
type: string
84-
- jsonPath: .status.backup.sizeInBytes
85-
description: Backup Size in Bytes
86-
name: Size
87-
type: integer
88-
format: byte
89-
- jsonPath: .status.backup.numberOfDBServers
90-
description: Backup Number of the DB Servers
91-
name: DBServers
92-
type: integer
93-
- jsonPath: .status.state
94-
description: The actual state of the ArangoBackup
95-
name: State
96-
type: string
97-
- jsonPath: .status.message
98-
priority: 1
99-
description: Message of the ArangoBackup object
100-
name: Message
101-
type: string
102-
subresources:
103-
status: {}

chart/kube-arangodb-enterprise-arm64/crds/backups-backuppolicy.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,3 @@ spec:
3737
type: string
3838
subresources:
3939
status: {}
40-
- name: v1alpha
41-
schema:
42-
openAPIV3Schema:
43-
type: object
44-
x-kubernetes-preserve-unknown-fields: true
45-
served: true
46-
storage: false
47-
additionalPrinterColumns:
48-
- jsonPath: .spec.schedule
49-
description: Schedule
50-
name: Schedule
51-
type: string
52-
- jsonPath: .status.scheduled
53-
description: Scheduled
54-
name: Scheduled
55-
type: string
56-
- jsonPath: .status.message
57-
priority: 1
58-
description: Message of the ArangoBackupPolicy object
59-
name: Message
60-
type: string
61-
subresources:
62-
status: {}

0 commit comments

Comments
 (0)
0