File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -976,6 +976,32 @@ postgresql:
976
976
pgpass: /tmp/.pgpass
977
977
use_unix_socket: true
978
978
restapi: {}
979
+ tags: {}
980
+ ` , "\t \n " )+ "\n " )
981
+
982
+ cluster .Spec .Patroni .CreateReplicaMethods = []v1beta1.CreateReplicaMethod {"basebackup" , "pgbackrest" }
983
+ dataWithCustomMethods , err := instanceYAML (cluster , instance , nil )
984
+ assert .NilError (t , err )
985
+ assert .Equal (t , dataWithCustomMethods , strings .Trim (`
986
+ # Generated by postgres-operator. DO NOT EDIT.
987
+ # Your changes will not be saved.
988
+ bootstrap:
989
+ initdb:
990
+ - data-checksums
991
+ - encoding=UTF8
992
+ - waldir=/pgdata/pg12_wal
993
+ - encryption-key-command=echo test
994
+ method: initdb
995
+ kubernetes: {}
996
+ postgresql:
997
+ basebackup:
998
+ - waldir=/pgdata/pg12_wal
999
+ create_replica_methods:
1000
+ - basebackup
1001
+ - pgbackrest
1002
+ pgpass: /tmp/.pgpass
1003
+ use_unix_socket: true
1004
+ restapi: {}
979
1005
tags: {}
980
1006
` , "\t \n " )+ "\n " )
981
1007
}
You can’t perform that action at this time.
0 commit comments