We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2df3d56 + 90cfcab commit 2afd105Copy full SHA for 2afd105
lib/resourcebuilder/batch.go
@@ -20,6 +20,7 @@ type jobBuilder struct {
20
client *batchclientv1.BatchV1Client
21
raw []byte
22
modifier MetaV1ObjectModifierFunc
23
+ mode Mode
24
}
25
26
func newJobBuilder(config *rest.Config, m lib.Manifest) Interface {
@@ -30,6 +31,7 @@ func newJobBuilder(config *rest.Config, m lib.Manifest) Interface {
30
31
32
33
func (b *jobBuilder) WithMode(m Mode) Interface {
34
+ b.mode = m
35
return b
36
37
@@ -47,7 +49,7 @@ func (b *jobBuilder) Do(ctx context.Context) error {
47
49
if err != nil {
48
50
return err
51
- if updated {
52
+ if updated && b.mode != InitializingMode {
53
return WaitForJobCompletion(ctx, b.client, job)
54
55
return nil
0 commit comments