Skip to content

Commit

Permalink
Merge pull request #3747 from Yanping-io/patch
Browse files Browse the repository at this point in the history
Specify the fields using the key Duration
  • Loading branch information
volcano-sh-bot authored Sep 26, 2024
2 parents 18d45c0 + 6982ba9 commit 61ff6a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/controller-manager/app/options/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ func TestAddFlags(t *testing.T) {
InheritOwnerAnnotations: true,
LeaderElection: config.LeaderElectionConfiguration{
LeaderElect: true,
LeaseDuration: metav1.Duration{60 * time.Second},
RenewDeadline: metav1.Duration{20 * time.Second},
RetryPeriod: metav1.Duration{10 * time.Second},
LeaseDuration: metav1.Duration{Duration: 60 * time.Second},
RenewDeadline: metav1.Duration{Duration: 20 * time.Second},
RetryPeriod: metav1.Duration{Duration: 10 * time.Second},
ResourceLock: resourcelock.LeasesResourceLock,
ResourceNamespace: defaultLockObjectNamespace,
ResourceName: "vc-controller-manager",
Expand Down
6 changes: 3 additions & 3 deletions cmd/scheduler/app/options/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ func TestAddFlags(t *testing.T) {
SchedulePeriod: 5 * time.Minute,
LeaderElection: config.LeaderElectionConfiguration{
LeaderElect: true,
LeaseDuration: metav1.Duration{60 * time.Second},
RenewDeadline: metav1.Duration{20 * time.Second},
RetryPeriod: metav1.Duration{10 * time.Second},
LeaseDuration: metav1.Duration{Duration: 60 * time.Second},
RenewDeadline: metav1.Duration{Duration: 20 * time.Second},
RetryPeriod: metav1.Duration{Duration: 10 * time.Second},
ResourceLock: resourcelock.LeasesResourceLock,
ResourceNamespace: defaultLockObjectNamespace,
},
Expand Down

0 comments on commit 61ff6a7

Please sign in to comment.