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

camilamacedo86 / kubebuilder / 19386084943
74%
master: 74%

Build:
Build:
LAST BUILD BRANCH: dev-install
DEFAULT BRANCH: master
Ran 15 Nov 2025 07:09AM 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:56AM UTC coverage: 60.633%. Remained the same
19386084943

push

github

camilamacedo86
(fix) remove omitempty from nested struct JSON tags in API scaffolds

Remove omitempty from JSON tags on nested struct fields such as 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 version 1.24+ and later 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 metadata omitempty omitzero becomes metadata omitzero
- Status fields status omitempty omitzero becomes status omitzero
- metav1 ListMeta metadata omitempty becomes metadata omitzero

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

Signed-off-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com>

5728 of 9447 relevant lines covered (60.63%)

26.07 hits per line

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