Add valkey/redis driver with operator-secret auto-configuration #3
Reference in New Issue
Block a user
Delete Branch "benvin/valkey-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Apps fronted by valkey-operator instances need the same wait-for-ready initContainer that postgres workloads already get, and wiring per-field
secretKeyRefs for operator-generated secrets is boilerplate in every workload. waitfordb now checks valkey/redis readiness and natively understands the secret shapes CNPG and valkey-operator generate, so an initContainer is justenvFromplus a mode variable.Changes
valkeydriver (alias:redis): fresh TCP connection per attempt, optional AUTH (ACL user or default user), then PING, reusing the existing retry/backoff wait loop; acceptsredis:///valkey://DSNs; default port 6379; no new dependencies (minimal RESP client)WAITFORDB_SECRET_FORMAT=cnpg|valkeyfor operator secrets injected wholesale viaenvFrom: CNPG<cluster>-apphost/port/dbname/user/passwordkeys, and valkey-operator key-per-username secrets (authenticates as_operatorwhen present, or asWAITFORDB_USERwith the password taken from the same-named key; shapes verified against the live jellyfin secrets, keys only)WAITFORDB_DRIVER/WAITFORDB_*always win, and thePG*fallback plus all existing flags behave unchangedgo test -race,vet,gofmtcleanenvFrominitContainer snippets for CNPG and valkey-operator, env-table and usage updates