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

camilamacedo86 / kubebuilder / 19385979331
74%
master: 74%

Build:
Build:
LAST BUILD BRANCH: log-linter-check
DEFAULT BRANCH: master
Ran 15 Nov 2025 06:56AM UTC
Jobs 1
Files 128
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 19385979331.1 15 Nov 2025 06:56AM UTC 128
60.63
GitHub Action Run
Source Files on build 19385979331
  • Tree
  • List 128
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2baf23a4 on github
  • Prev Build on add-kpal-linter-otherway (#19385736484)
  • Next Build on add-kpal-linter-otherway (#19386084943)
  • 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