use of io.fabric8.openshift.api.model.ImageLookupPolicyBuilder in project strimzi by strimzi.
the class KafkaConnectS2ICluster method generateSourceImageStream.
/**
* Generate new source ImageStream
*
* @return Source ImageStream resource definition
*/
public ImageStream generateSourceImageStream() {
ObjectReference image = new ObjectReference();
image.setKind("DockerImage");
image.setName(sourceImageBaseName + ":" + sourceImageTag);
TagReference sourceTag = new TagReference();
sourceTag.setName(sourceImageTag);
sourceTag.setFrom(image);
ImageStream imageStream = new ImageStreamBuilder().withNewMetadata().withName(getSourceImageStreamName()).withNamespace(namespace).withLabels(getLabelsWithName(getSourceImageStreamName())).endMetadata().withNewSpec().withLookupPolicy(new ImageLookupPolicyBuilder().withLocal(false).build()).withTags(sourceTag).endSpec().build();
return imageStream;
}
Aggregations