File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ linters:
16
16
enable :
17
17
- " commentstart" # Ensure comments start with the serialized version of the field name.
18
18
- " conditions" # Ensure conditions have the correct json tags and markers.
19
+ - " conflictingmarkers"
19
20
- " duplicatemarkers" # Ensure there are no exact duplicate markers. for types and fields.
20
21
- " integers" # Ensure only int32 and int64 are used for integers.
21
22
- " jsontags" # Ensure every field has a json tag.
@@ -42,6 +43,13 @@ linters:
42
43
disable :
43
44
- " *" # We will manually enable new linters after understanding the impact. Disable all by default.
44
45
lintersConfig :
46
+ conflictingmarkers :
47
+ conflicts :
48
+ - name : " default_vs_required"
49
+ sets :
50
+ - ["default", "kubebuilder:default"]
51
+ - ["required", "kubebuilder:validation:Required", "k8s:required"]
52
+ description : " A field with a default value cannot be required"
45
53
conditions :
46
54
isFirstField : Warn # Require conditions to be the first field in the status struct.
47
55
usePatchStrategy : Forbid # Forbid patchStrategy markers on the Conditions field.
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ name: golangci-lint-kube-api-linter
3
3
destination : ./bin
4
4
plugins :
5
5
- module : ' sigs.k8s.io/kube-api-linter'
6
- version : v0.0.0-20250723124831-1b29e82a0f55
6
+ version : v0.0.0-20250729132427-47bfeef6cd38
You can’t perform that action at this time.
0 commit comments