Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1372 from weaveworks/issue/1371-podcontroller-enc…
Browse files Browse the repository at this point in the history
…apsulation

Include initContainers in images to fetch
  • Loading branch information
squaremo authored Sep 19, 2018
2 parents 48584e7 + d8a0155 commit 0571ecc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cluster/kubernetes/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ func mergeCredentials(log func(...interface{}) error, client extendedClient, nam
}
imageCreds[r.Name] = creds
}
for _, container := range podTemplate.Spec.InitContainers {
r, err := image.ParseRef(container.Image)
if err != nil {
log("err", err.Error())
continue
}
imageCreds[r.Name] = creds
}
}

// ImagesToFetch is a k8s specific method to get a list of images to update along with their credentials
Expand Down

0 comments on commit 0571ecc

Please sign in to comment.