@@ -3576,7 +3576,7 @@ var _ = Describe("pod_models", func() {
3576
3576
fdbv1beta2 .BackupDeploymentLabel : string (cluster .ObjectMeta .UID ),
3577
3577
}))
3578
3578
Expect (deployment .ObjectMeta .Annotations ).To (Equal (map [string ]string {
3579
- "foundationdb.org/last-applied-spec" : "8d2e3abf517313fabdf4e19e50b46f9d5b63e5c5d587a01565008945a2dec87f " ,
3579
+ "foundationdb.org/last-applied-spec" : "946b41ecc6985d5f56d9749e9366132ba4e8cb250eb3bcfe73b037ad1f47c7f4 " ,
3580
3580
}))
3581
3581
})
3582
3582
@@ -3639,7 +3639,7 @@ var _ = Describe("pod_models", func() {
3639
3639
It ("should set the image and command for the backup agent" , func () {
3640
3640
Expect (
3641
3641
container .Image ,
3642
- ).To (Equal (fmt .Sprintf ("foundationdb/foundationdb :%s" , cluster .Spec .Version )))
3642
+ ).To (Equal (fmt .Sprintf ("foundationdb/fdb-kubernetes-monitor :%s" , cluster .Spec .Version )))
3643
3643
Expect (container .Command ).To (Equal ([]string {"backup_agent" }))
3644
3644
Expect (container .Args ).To (Equal ([]string {
3645
3645
"--log" ,
@@ -3690,13 +3690,18 @@ var _ = Describe("pod_models", func() {
3690
3690
It ("should set the image and command for the container" , func () {
3691
3691
Expect (
3692
3692
container .Image ,
3693
- ).To (Equal (fmt .Sprintf ("foundationdb/foundationdb -kubernetes-sidecar :%s-1 " , cluster .Spec .Version )))
3693
+ ).To (Equal (fmt .Sprintf ("foundationdb/fdb -kubernetes-monitor :%s" , cluster .Spec .Version )))
3694
3694
Expect (container .Args ).To (Equal ([]string {
3695
3695
"--copy-file" ,
3696
3696
"fdb.cluster" ,
3697
3697
"--require-not-empty" ,
3698
3698
"fdb.cluster" ,
3699
- "--init-mode" ,
3699
+ "--mode" ,
3700
+ "init" ,
3701
+ "--output-dir" ,
3702
+ "/var/output-files" ,
3703
+ "--input-dir" ,
3704
+ "/var/input-files" ,
3700
3705
}))
3701
3706
})
3702
3707
@@ -3897,7 +3902,7 @@ var _ = Describe("pod_models", func() {
3897
3902
"foundationdb.org/backup-for" : string (cluster .ObjectMeta .UID ),
3898
3903
}))
3899
3904
Expect (deployment .ObjectMeta .Annotations ).To (Equal (map [string ]string {
3900
- "foundationdb.org/last-applied-spec" : "879780b88956de7a05e245cdbf16c565b95fe5c956e3a89e7ea259cd9b209d97 " ,
3905
+ "foundationdb.org/last-applied-spec" : "23b6a2501f83a4cfcf760f639b1d841203ef4f44d496da072ebd1542870ad53f " ,
3901
3906
}))
3902
3907
3903
3908
Expect (
@@ -3925,7 +3930,7 @@ var _ = Describe("pod_models", func() {
3925
3930
).To (Equal ("foundationdb/foundationdb:dev" ))
3926
3931
Expect (
3927
3932
deployment .Spec .Template .Spec .InitContainers [0 ].Image ,
3928
- ).To (Equal ("foundationdb/foundationdb-kubernetes-sidecar :dev-1 " ))
3933
+ ).To (Equal ("foundationdb/foundationdb:dev" ))
3929
3934
})
3930
3935
})
3931
3936
@@ -3963,37 +3968,36 @@ var _ = Describe("pod_models", func() {
3963
3968
})
3964
3969
})
3965
3970
3966
- When ("using the unified image" , func () {
3971
+ When ("using the split image" , func () {
3967
3972
BeforeEach (func () {
3968
- imageType := fdbv1beta2 .ImageTypeUnified
3973
+ imageType := fdbv1beta2 .ImageTypeSplit
3969
3974
backup .Spec .ImageType = & imageType
3970
3975
deployment , err = GetBackupDeployment (backup )
3971
3976
Expect (err ).NotTo (HaveOccurred ())
3972
3977
Expect (deployment ).NotTo (BeNil ())
3973
3978
})
3974
3979
3975
- It ("should use the unified image as main and init container" , func () {
3976
- Expect (deployment .Spec .Template .Spec .InitContainers ).To (HaveLen (1 ))
3977
- Expect (deployment .Spec .Template .Spec .Containers ).To (HaveLen (1 ))
3980
+ It (
3981
+ "should use the split image as main container and the sidecar image as the init container" ,
3982
+ func () {
3983
+ Expect (deployment .Spec .Template .Spec .InitContainers ).To (HaveLen (1 ))
3984
+ Expect (deployment .Spec .Template .Spec .Containers ).To (HaveLen (1 ))
3978
3985
3979
- Expect (
3980
- deployment .Spec .Template .Spec .InitContainers [0 ].Image ,
3981
- ).To (HavePrefix (fdbv1beta2 .FoundationDBKubernetesBaseImage ))
3982
- Expect (deployment .Spec .Template .Spec .InitContainers [0 ].Args ).To (ConsistOf (
3983
- "--copy-file" ,
3984
- "fdb.cluster" ,
3985
- "--require-not-empty" ,
3986
- "fdb.cluster" ,
3987
- "--mode" ,
3988
- "init" ,
3989
- "--output-dir" ,
3990
- "/var/output-files" ,
3991
- "--input-dir" ,
3992
- "/var/input-files" ))
3993
- Expect (
3994
- deployment .Spec .Template .Spec .Containers [0 ].Image ,
3995
- ).To (HavePrefix (fdbv1beta2 .FoundationDBKubernetesBaseImage ))
3996
- })
3986
+ Expect (
3987
+ deployment .Spec .Template .Spec .InitContainers [0 ].Image ,
3988
+ ).To (HavePrefix (fdbv1beta2 .FoundationDBSidecarBaseImage ))
3989
+ Expect (deployment .Spec .Template .Spec .InitContainers [0 ].Args ).To (ConsistOf (
3990
+ "--copy-file" ,
3991
+ "fdb.cluster" ,
3992
+ "--require-not-empty" ,
3993
+ "fdb.cluster" ,
3994
+ "--init-mode" ,
3995
+ ))
3996
+ Expect (
3997
+ deployment .Spec .Template .Spec .Containers [0 ].Image ,
3998
+ ).To (HavePrefix (fdbv1beta2 .FoundationDBBaseImage ))
3999
+ },
4000
+ )
3997
4001
})
3998
4002
})
3999
4003
0 commit comments