Skip to content

Commit 6c04d0a

Browse files
committed
Increase Node ISO creation timeout from 15 to 30 minutes
1 parent e6eeeb7 commit 6c04d0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/cli/admin/nodeimage/create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const (
3535
nodeJoinerConfigurationFile = "nodes-config.yaml"
3636
nodeJoinerContainer = "node-joiner"
3737
nodeJoinerMinimumSupportedVersion = "4.17"
38+
nodeJoinerPollTimeout = time.Minute * 30
3839
)
3940

4041
const (
@@ -450,7 +451,7 @@ func (o *CreateOptions) nodeJoinerPodExec(ctx context.Context, command ...string
450451
err := wait.PollUntilContextTimeout(
451452
ctx,
452453
time.Second*5,
453-
time.Minute*15,
454+
nodeJoinerPollTimeout,
454455
true,
455456
func(ctx context.Context) (done bool, err error) {
456457
execOptions := &exec.ExecOptions{
@@ -574,7 +575,7 @@ func (o *CreateOptions) monitorWorkflowReport(ctx context.Context) error {
574575
err := wait.PollUntilContextTimeout(
575576
ctx,
576577
time.Second*5,
577-
time.Minute*15,
578+
nodeJoinerPollTimeout,
578579
true,
579580
func(ctx context.Context) (done bool, err error) {
580581
cmdOutput, err := o.nodeJoinerPodExec(ctx, "cat", "/assets/report.json")

0 commit comments

Comments
 (0)