Include initContainers in containers considered
@@ -66,6 +66,15 @@ func (pc podController) toClusterController(resourceID flux.ResourceID) cluster.
}
clusterContainers = append(clusterContainers, resource.Container{Name: container.Name, Image: ref})
}
+ for _, container := range pc.podTemplate.Spec.Containers {
+ ref, err := image.ParseRef(container.Image)
+ if err != nil {
+ clusterContainers = nil
+ excuse = err.Error()
+ break
+ }
+ clusterContainers = append(clusterContainers, resource.Container{Name: container.Name, Image: ref})
+ }
var antecedent flux.ResourceID
if ante, ok := pc.GetAnnotations()[AntecedentAnnotation]; ok {
