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

camilamacedo86 / kubebuilder / 19386006372
61%
master: 74%

Build:
Build:
LAST BUILD BRANCH: dev-install
DEFAULT BRANCH: master
Ran 15 Nov 2025 07:03AM UTC
Jobs 1
Files 127
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:49AM UTC coverage: 60.697%. Remained the same
19386006372

push

github

camilamacedo86
(fix) (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 9437 relevant lines covered (60.7%)

26.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19386006372.1 15 Nov 2025 07:03AM UTC 127
60.7
GitHub Action Run
Source Files on build 19386006372
  • Tree
  • List 127
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 54c5cdb8 on github
  • Prev Build on fix-api-linter (#19385990271)
  • Next Build on fix-api-linter (#19386067456)
  • 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