mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 05:46:37 +00:00
Field labels for Duration, Time, client.ObjectKey, KibishiiData, VeleroCLI2Version
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
This commit is contained in:
@@ -725,7 +725,7 @@ func TestProcessBackupCompletions(t *testing.T) {
|
||||
Phase: velerov1api.BackupPhaseFinalizing,
|
||||
Version: 1,
|
||||
FormatVersion: "1.1.0",
|
||||
Expiration: &metav1.Time{now.Add(10 * time.Minute)},
|
||||
Expiration: &metav1.Time{Time: now.Add(10 * time.Minute)},
|
||||
StartTimestamp: ×tamp,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -54,7 +54,7 @@ func mockBackupRepositoryCR() *velerov1api.BackupRepository {
|
||||
Name: "repo",
|
||||
},
|
||||
Spec: velerov1api.BackupRepositorySpec{
|
||||
MaintenanceFrequency: metav1.Duration{testMaintenanceFrequency},
|
||||
MaintenanceFrequency: metav1.Duration{Duration: testMaintenanceFrequency},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ func TestBackupRepoReconcile(t *testing.T) {
|
||||
Name: "unknown",
|
||||
},
|
||||
Spec: velerov1api.BackupRepositorySpec{
|
||||
MaintenanceFrequency: metav1.Duration{testMaintenanceFrequency},
|
||||
MaintenanceFrequency: metav1.Duration{Duration: testMaintenanceFrequency},
|
||||
},
|
||||
},
|
||||
expectNil: true,
|
||||
@@ -166,7 +166,7 @@ func TestBackupRepoReconcile(t *testing.T) {
|
||||
Name: "repo",
|
||||
},
|
||||
Spec: velerov1api.BackupRepositorySpec{
|
||||
MaintenanceFrequency: metav1.Duration{testMaintenanceFrequency},
|
||||
MaintenanceFrequency: metav1.Duration{Duration: testMaintenanceFrequency},
|
||||
},
|
||||
},
|
||||
expectNil: true,
|
||||
@@ -179,7 +179,7 @@ func TestBackupRepoReconcile(t *testing.T) {
|
||||
Name: "repo",
|
||||
},
|
||||
Spec: velerov1api.BackupRepositorySpec{
|
||||
MaintenanceFrequency: metav1.Duration{testMaintenanceFrequency},
|
||||
MaintenanceFrequency: metav1.Duration{Duration: testMaintenanceFrequency},
|
||||
},
|
||||
Status: velerov1api.BackupRepositoryStatus{
|
||||
Phase: velerov1api.BackupRepositoryPhaseNew,
|
||||
|
||||
Reference in New Issue
Block a user