• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

camilamacedo86 / kubebuilder / 19385979331 / 1
74%
master: 74%

Build:
Build:
LAST BUILD BRANCH: log-linter-check
DEFAULT BRANCH: master
Ran 15 Nov 2025 06:56AM UTC
Files 128
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Nov 2025 06:46AM UTC coverage: 60.633%. Remained the same
19385979331.1

push

github

camilamacedo86
🐛 (go/v4;deploy-image/v1-alpha): Remove omitempty from nested struct JSON tags in API scaffolds

Remove 'omitempty' from JSON tags on nested struct fields (metav1.ObjectMeta,
Status, and metav1.ListMeta) in API type scaffolds. The 'omitempty' tag has no
effect on nested structs in Go and triggers linter warnings.

For Go 1.24+, 'omitzero' correctly handles nested structs and omits them when
empty, making 'omitempty' redundant and misleading. The '// +optional' markers
already indicate optional fields for CRD schema generation.

Updated JSON tags:
- metav1.ObjectMeta: json:"metadata,omitempty,omitzero" → json:"metadata,omitzero"
- Status fields: json:"status,omitempty,omitzero" → json:"status,omitzero"
- metav1.ListMeta: json:"metadata,omitempty" → json:"metadata,omitzero"

This resolves linter warnings from gopls modernize analyzer and kube-api-linter
while maintaining correct behavior for projects using Go 1.24+.

Fixes #4550

5728 of 9447 relevant lines covered (60.63%)

26.07 hits per line

Source Files on job 19385979331.1
  • Tree
  • List 128
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19385979331
  • 2baf23a4 on github
  • Prev Job for on add-kpal-linter-otherway (#19385736484.1)
  • Next Job for on add-kpal-linter-otherway (#19386084943.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc