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

chideat / valkey-operator / 29337488663
24%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 01:43PM UTC
Jobs 1
Files 145
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

14 Jul 2026 01:40PM UTC coverage: 22.384% (-0.1%) from 22.496%
29337488663

push

github

web-flow
fix: cluster arch on ClusterIP access, and stranded password secret finalizer (#99)

* fix: create pod binded services for cluster arch on ClusterIP access

ensureService switches on Access.ServiceType with cases for NodePort and
LoadBalancer only. ServiceType is a closed enum defaulted to ClusterIP, so the
default path matches no case and ensureValkeyPodService never runs. The per-pod
service is therefore never created, and init_cluster.sh's `valkey-helper cluster
expose` -- which requires a service named after the pod to resolve its announce
address -- exits 1, leaving every node in Init:CrashLoopBackOff.

The effect is that cluster arch only ever comes up when access.serviceType is
NodePort or LoadBalancer. The default, in-cluster ClusterIP mode never starts.

Failover already handles this correctly: its ensureService sends everything
except NodePort-with-ports to ensureValkeyPodService, which is why
failover+ClusterIP works. This aligns cluster with that behaviour.

cleanUselessService's LoadBalancer/NodePort guard is dropped for the same
reason: all three service types now have pod binded services, so scale-down must
reclaim them for ClusterIP too. fetchAllPodBindedServices already filters to
services carrying a pod-name selector, so headless and instance services are
unaffected. Failover's equivalent has no such guard either.

Verified on a live cluster: a 3-shard ClusterIP cluster crash-looped in init;
with this change the same spec reaches Ready with cluster_state:ok, 16384 slots
assigned, and each node announcing its pod IP -- which is what Access() intends
for the non-NodePort path, where announceIp is pod.Status.PodIP.

The e2e suite does not catch this: all three arch suites in e2e_test.go are
commented "with ClusterIP service type" but construct their parameters with
corev1.ServiceTypeNodePort, so only the working path is ever exercised.

* fix: only finalize the password secret once the user exists

The secret finalizer is added while re... (continued)

0 of 22 new or added lines in 2 files covered. (0.0%)

167 existing lines in 7 files now uncovered.

4610 of 20595 relevant lines covered (22.38%)

0.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
19
13.15
-1.07% internal/controller/user_controller.go
3
0.61
0.0% internal/ops/cluster/actor/actor_ensure_resource.go

Coverage Regressions

Lines Coverage ∆ File
73
14.48
-6.06% cmd/helper/commands/cluster/heal.go
30
6.49
-0.66% cmd/helper/commands/cluster/shutdown.go
27
0.0
0.0% cmd/helper/commands/helper.go
18
4.63
0.0% internal/builder/clusterbuilder/statefulset.go
10
0.0
0.0% cmd/helper/commands/cluster/command.go
8
90.7
-0.87% internal/webhook/v1alpha1/user_webhook.go
1
13.15
-1.07% internal/controller/user_controller.go
Jobs
ID Job ID Ran Files Coverage
1 29337488663.1 14 Jul 2026 01:43PM UTC 145
22.38
GitHub Action Run
Source Files on build 29337488663
  • Tree
  • List 145
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fb678b79 on github
  • Prev Build on main (#27826361852)
  • Next Build on main (#31065989368)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc