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

kubevirt / hyperconverged-cluster-operator / 23049885880
79%

Build:
DEFAULT BRANCH: main
Ran 13 Mar 2026 12:05PM UTC
Jobs 1
Files 133
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

13 Mar 2026 12:01PM UTC coverage: 79.487% (+0.05%) from 79.435%
23049885880

push

github

web-flow
CNV-78906: Refactor the feature gate structure in API v1 (#4079)

* refine v1beta1 FG comments to match also v1

Signed-off-by: Nahshon Unna Tsameret <nunnatsa@redhat.com>

* Add shared feature gate types package

Add pkg/featuregates with Phase type and FeatureGate struct

Introduce pkg/featuregates as the shared package for feature gate
metadata types, used by both the code generator tool and production
code. Defines Phase (GA, beta, alpha, deprecated) with JSON
marshaling, FeatureGate struct, and FeatureGates slice with Sort().

Signed-off-by: Nahshon Unna Tsameret <nunnatsa@redhat.com>

* Add fg-json-generator tool

Add tool to generate feature gate JSON and conversion code from AST

Parses the v1beta1 HyperConvergedFeatureGates struct using go/ast to
extract feature gate metadata (JSON name, Go field name, phase,
description). Supports two modes: JSON output for feature gate catalog,
and --conversion mode for generating v1beta1<->v1 conversion functions.

Signed-off-by: Nahshon Unna Tsameret <nunnatsa@redhat.com>

* Add feature gate details package with go:generate

Add pkg/featuregatedetails to serve feature gate phase lookups

Embeds the generated feature-gates.json and provides GetFeatureGatePhase()
for runtime phase lookups. Wired via go:generate to the fg-json-generator
tool.

Signed-off-by: Nahshon Unna Tsameret <nunnatsa@redhat.com>

* Add v1 feature gates as a slice-based API

Refactor v1 feature gates from struct to slice of FeatureGate

Replace the v1 HyperConvergedFeatureGates struct (individual *bool
fields) with a slice-based []FeatureGate type in a new
api/v1/featuregates sub-package. Includes Enable/Disable/IsEnabled
methods, custom JSON marshaling, and deepcopy/openapi generation.

Signed-off-by: Nahshon Unna Tsameret <nunnatsa@redhat.com>

* Add fg-v1-comments tool for v1 field documentation

Add tool to auto-generate the FeatureGates field comment in v1

Generates a structured comment listing all feature gates with their
descrip... (continued)

84 of 95 new or added lines in 4 files covered. (88.42%)

9614 of 12095 relevant lines covered (79.49%)

2.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
95.12
pkg/featuregates/types.go
2
88.77
0.63% pkg/webhooks/validator/validator.go
7
70.83
pkg/featuregatedetails/feature_gates.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 23049885880.1 13 Mar 2026 12:05PM UTC 133
79.49
GitHub Action Run
Source Files on build 23049885880
  • Tree
  • List 133
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23049885880
  • 4db02feb on github
  • Prev Build on main (#22999754575)
  • Next Build on main (#23084484384)
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