Skip to content

Commit 1a4ea45

Browse files
committed
enable statusoptional linter
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent b15ebd3 commit 1a4ea45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci-kal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ linters:
2323
- "nofloats" # Ensure floats are not used.
2424
- "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
2525
- "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
26+
- "statusoptional" # Ensure all first children within status should be optional.
2627
- "statussubresource" # All root objects that have a `status` field should have a status subresource.
2728

2829
# Per discussion in July 2024, we are keeping phase fields for now.

hack/tools/.custom-gcl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: golangci-lint-kube-api-linter
33
destination: ./bin
44
plugins:
55
- module: 'sigs.k8s.io/kube-api-linter'
6-
version: v0.0.0-20250411141643-33ef95a5ee04
6+
version: v0.0.0-20250515061849-37102c8f17a9

0 commit comments

Comments
 (0)