@osbsapi
    def create_image_stream(self, name, docker_image_repository,
                            insecure_registry=False):
        img_stream_file = os.path.join(self.os_conf.get_build_json_store(), 'image_stream.json')
        stream = json.load(open(img_stream_file))
        stream['metadata']['name'] = name
        stream['spec']['dockerImageRepository'] = docker_image_repository
        if insecure_registry:
            stream['metadata'].setdefault('annotations', {})
            insecure_annotation = 'openshift.io/image.insecureRepository'
            stream['metadata']['annotations'][insecure_annotation] = 'true'

        return self.os.create_image_stream(json.dumps(stream))
Create an ImageStream object
dataset/ETHPy150Open projectatomic/osbs-client/osbs/api.py/OSBS.create_image_stream