Skip to content

Commit

Permalink
Fix configFile validation for kwok
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvolod committed Nov 9, 2023
1 parent 5f44bc9 commit a2c755b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions support/kwok/kwok.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ func (k *Cluster) Create(ctx context.Context, args ...string) (string, error) {
}

func (k *Cluster) CreateWithConfig(ctx context.Context, configFile string) (string, error) {
if configFile == "" {
return k.Create(ctx)
}

return k.Create(ctx, "--config", configFile)
}

Expand Down

0 comments on commit a2c755b

Please sign in to comment.