Skip to content

Commit

Permalink
fix: panic interface connection when value is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennetremel committed Sep 16, 2020
1 parent 9a80192 commit 6238377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/transformers/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (pt *imageTransformer) findImage(config *ktypes.Kustomization, obj map[stri
paths := []string{"containers", "initContainers"}
found := false
for _, path := range paths {
_, found = obj[path]
if found {
val, found := obj[path]
if found && val != nil {
err := pt.getImageTag(config, obj, path)
if err != nil {
return err
Expand Down

0 comments on commit 6238377

Please sign in to comment.