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

chideat / valkey-operator / 24766303231
22%
main: 22%

Build:
Build:
LAST BUILD BRANCH: docs-supported-versions-matrix
DEFAULT BRANCH: main
Ran 22 Apr 2026 07:40AM UTC
Jobs 1
Files 146
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

22 Apr 2026 07:18AM UTC coverage: 22.323%. First build
24766303231

Pull #93

github

chideat
fix: render version-conditional configmap directives via SafeVersion

When a Valkey cluster/failover/sentinel is upgrading, the operator
wrote target-version-only directives into the ConfigMap before all
pods were rolled to the new image. If a pod restarted on the old
image before the StatefulSet update reached it, the server could
crash with a 'Bad directive' fatal config error.

CustomConfigs() currently emits no version-gated keys, so the bug
is latent today; this change hardens the same code path that
already broke production for the redis-operator and prevents the
class of failure once any version-conditional directive is added.

- pkg/types/instance.go: add SafeVersion() to Instance
- pkg/version/version.go: add MinKnown helper (skips empty,
  returns lowest)
- internal/valkey/{cluster,failover,sentinel}: implement
  SafeVersion at the instance level, reusing each node's
  existing CurrentVersion()
- internal/builder/{cluster,failover,sentinel}builder/configmap.go:
  derive CustomConfigs from inst.SafeVersion() instead of
  inst.Version()
- mocks updated to satisfy interface
Pull Request #93: fix: render version-conditional configmap directives via SafeVersion

1 of 39 new or added lines in 7 files covered. (2.56%)

4605 of 20629 relevant lines covered (22.32%)

0.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
0.0
internal/valkey/cluster/cluster.go
9
0.0
internal/valkey/failover/failover.go
9
0.0
internal/valkey/sentinel/sentinel.go
9
79.1
pkg/version/version.go
1
0.0
internal/builder/failoverbuilder/configmap.go
1
7.69
internal/builder/sentinelbuilder/configmap.go
Jobs
ID Job ID Ran Files Coverage
1 24766303231.1 22 Apr 2026 07:40AM UTC 146
22.32
GitHub Action Run
Source Files on build 24766303231
  • Tree
  • List 146
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #93
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