Skip to content

Commit

Permalink
fix(docker): Support finding image from a docker registry (spinnaker#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsie authored Oct 14, 2020
1 parent eef8e09 commit fe13853
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,14 @@ class FindImageFromClusterTask extends AbstractCloudProviderAwareTask implements
mkDeploymentDetail((String) image.imageName, (String) image.amis[location.value][0], deploymentDetailTemplate, config)
]
}
//Docker registry to deployment detail conversion
else if (imageSummaries[location] == null && image.repository != null && image.tag != null) {
String imageId = (String) image.repository + ":" + (String) image.tag
imageSummaries[location] = [
//In the context of Spinnaker Docker images the imageId and imageName are the same
mkDeploymentDetail(imageId, imageId, deploymentDetailTemplate, config)
]
}
}
}
}
Expand Down

0 comments on commit fe13853

Please sign in to comment.