Skip to content

Commit

Permalink
fix: kaniko construct in knuu
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Dec 11, 2024
1 parent dbaf2ea commit 7aec9b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/knuu/knuu.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,13 @@ func (k *Knuu) handleTimeout(ctx context.Context, timeout time.Duration, timeout
return nil
}

func (k *Knuu) setupDefaultImageBuilder() error {
func (k *Knuu) setupDefaultImageBuilder() (err error) {
if k.ImageBuilder != nil {
return nil
}

k.ImageBuilder = &kaniko.Kaniko{
SystemDependencies: k.SystemDependencies,
}
return nil
k.ImageBuilder, err = kaniko.New(k.SystemDependencies, nil)
return err
}

func DefaultScope() string {
Expand Down

0 comments on commit 7aec9b9

Please sign in to comment.