File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -1867,22 +1867,15 @@ func (c *Cluster) generateCloneEnvironment(description *acidv1.CloneDescription)
1867
1867
} else {
1868
1868
c .logger .Debugf ("use S3WalPath %s from the manifest" , description .S3WalPath )
1869
1869
1870
- envs := []v1.EnvVar {
1871
- {
1872
- Name : "CLONE_WALE_S3_PREFIX" ,
1873
- Value : description .S3WalPath ,
1874
- },
1875
- {
1876
- Name : "CLONE_WAL_BUCKET_SCOPE_SUFFIX" ,
1877
- Value : "" ,
1878
- },
1879
- }
1880
-
1881
- result = append (result , envs ... )
1870
+ result = append (result , v1.EnvVar {
1871
+ Name : "CLONE_WALE_S3_PREFIX" ,
1872
+ Value : description .S3WalPath ,
1873
+ })
1882
1874
}
1883
1875
1884
1876
result = append (result , v1.EnvVar {Name : "CLONE_METHOD" , Value : "CLONE_WITH_WALE" })
1885
1877
result = append (result , v1.EnvVar {Name : "CLONE_TARGET_TIME" , Value : description .EndTimestamp })
1878
+ result = append (result , v1.EnvVar {Name : "CLONE_WAL_BUCKET_SCOPE_PREFIX" , Value : "" })
1886
1879
1887
1880
if description .S3Endpoint != "" {
1888
1881
result = append (result , v1.EnvVar {Name : "CLONE_AWS_ENDPOINT" , Value : description .S3Endpoint })
Original file line number Diff line number Diff line change @@ -550,8 +550,8 @@ func TestGenerateSpiloPodEnvVars(t *testing.T) {
550
550
envVarValue : "s3://another-bucket" ,
551
551
},
552
552
{
553
- envIndex : 17 ,
554
- envVarConstant : "CLONE_WAL_BUCKET_SCOPE_SUFFIX " ,
553
+ envIndex : 19 ,
554
+ envVarConstant : "CLONE_WAL_BUCKET_SCOPE_PREFIX " ,
555
555
envVarValue : "" ,
556
556
},
557
557
{
@@ -572,14 +572,14 @@ func TestGenerateSpiloPodEnvVars(t *testing.T) {
572
572
envVarValue : fmt .Sprintf ("/%s" , dummyUUID ),
573
573
},
574
574
{
575
- envIndex : 20 ,
575
+ envIndex : 21 ,
576
576
envVarConstant : "clone_aws_endpoint" ,
577
577
envVarValue : "s3.eu-west-1.amazonaws.com" ,
578
578
},
579
579
}
580
580
expectedCloneEnvSecret := []ExpectedValue {
581
581
{
582
- envIndex : 20 ,
582
+ envIndex : 21 ,
583
583
envVarConstant : "clone_aws_access_key_id" ,
584
584
envVarValueRef : & v1.EnvVarSource {
585
585
SecretKeyRef : & v1.SecretKeySelector {
You can’t perform that action at this time.
0 commit comments