Skip to content

Commit bd2ef1a

Browse files
committed
Switch order of Redis and Valkey, so that apps use Valkey if both present
The env variables generated for the valkey instance will override the env variables for redis, so that applications that have both defined with the same instance names will use the valkey ones. This makes it easier to migrate without downtime.
1 parent 10c4873 commit bd2ef1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/resourcecreator/aiven/aiven.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ func Create(source Source, ast *resource.Ast, config Config) error {
7272
return err
7373
}
7474

75-
redisEnabled, err := Redis(ast, config, source, &aivenApp)
75+
valkeyEnabled, err := Valkey(ast, config, source, &aivenApp)
7676
if err != nil {
7777
return err
7878
}
7979

80-
valkeyEnabled, err := Valkey(ast, config, source, &aivenApp)
80+
redisEnabled, err := Redis(ast, config, source, &aivenApp)
8181
if err != nil {
8282
return err
8383
}

0 commit comments

Comments
 (0)