use of org.jboss.tools.openshift.internal.core.docker.ImageStreamTagMetaData in project jbosstools-openshift by jbosstools.
the class ApplicationSourceFromImageModel method lookupImageMetadata.
@Override
protected IDockerImageMetadata lookupImageMetadata() {
if (source == null) {
return null;
}
try {
Connection conn = ConnectionsRegistryUtil.getConnectionFor(getProject());
IResource istag = conn.getResource(ResourceKind.IMAGE_STREAM_TAG, source.getNamespace(), source.getName());
return new ImageStreamTagMetaData(istag.toJson(true));
} catch (Exception e) {
OpenShiftUIActivator.getDefault().getLogger().logError(NLS.bind("Unable to retrieve imagestream tag for {0}", getImageName()), e);
}
return null;
}
Aggregations