File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ linters-settings:
16
16
settings :
17
17
linters :
18
18
enable :
19
+ - " conditions" # Ensure conditions have the correct json tags and markers.
20
+
19
21
# Per discussion in July 2024, we are keeping phase fields for now.
20
22
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
21
23
# and https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685919394.
22
24
# - "nophase" # Phase fields are discouraged by the Kube API conventions, use conditions instead.
23
25
24
26
# Linters below this line are disabled, pending conversation on how and when to enable them.
25
- # - "conditions" # Ensure conditions have the correct json tags and markers.
26
27
# - "commentstart" # Ensure comments start with the serialized version of the field name.
27
28
# - "integers" # Ensure only int32 and int64 are used for integers.
28
29
# - "jsontags" # Ensure every field has a json tag.
@@ -60,3 +61,7 @@ issues:
60
61
- path-except : " api/*"
61
62
linters :
62
63
- kal
64
+ - path : " api/v1beta1/*|api/v1alpha1/*"
65
+ text : " Conditions field must be a slice of metav1.Condition"
66
+ linters :
67
+ - kal
You can’t perform that action at this time.
0 commit comments