File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ linters-settings:
22
22
- " jsontags" # Ensure every field has a json tag.
23
23
- " maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
24
24
- " nobools" # Bools do not evolve over time, should use enums instead.
25
- - " nophase" # Phase fields are discouraged by the Kube API conventions, use conditions instead.
25
+ # Per discussion in July 2024, we are keeping phase fields for now.
26
+ # See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
27
+ # and https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685919394.
28
+ # - "nophase" # Phase fields are discouraged by the Kube API conventions, use conditions instead.
26
29
- " optionalorrequired" # Every field should be marked as `+optional` or `+required`.
27
30
- " requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
28
31
- " statussubresource" # All root objects that have a `status` field should have a status subresource.
@@ -46,6 +49,7 @@ issues:
46
49
- " vendored_openapi\\ .go$"
47
50
# We don't want to invest time to fix new linter findings in old API types.
48
51
- " internal/apis/.*"
52
+ - " .*_test.go" # Exclude test files.
49
53
max-same-issues : 0
50
54
max-issues-per-linter : 0
51
55
exclude-rules :
You can’t perform that action at this time.
0 commit comments