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

Include initContainers in images to fetch #1372

Merged
merged 1 commit into from
Sep 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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