Skip to content

Commit f9fc850

Browse files
committed
fix(restore): bind custom CNPG group and version env vars
The restore command was missing the CUSTOM_CNPG_GROUP and CUSTOM_CNPG_VERSION environment variable bindings that other commands (e.g. instance) already had.
1 parent 4a94cb9 commit f9fc850

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/cmd/restore/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ func NewCmd() *cobra.Command {
5757
_ = viper.BindEnv("pod-name", "POD_NAME")
5858
_ = viper.BindEnv("pgdata", "PGDATA")
5959
_ = viper.BindEnv("spool-directory", "SPOOL_DIRECTORY")
60+
_ = viper.BindEnv("custom-cnpg-group", "CUSTOM_CNPG_GROUP")
61+
_ = viper.BindEnv("custom-cnpg-version", "CUSTOM_CNPG_VERSION")
6062

6163
return cmd
6264
}

0 commit comments

Comments
 (0)