odagrun ImageStream API



purpose:


Delete an imageStream or an imageStream tag on the local openshift registry from the GiLab-CI pipeline, allowing to cleanup intermediate imageStreams or Tags.

ImageStream_Delete_Image


Delete an image on the integrated registry on an Openshift Cluster.

clean:
  tag: odagrun
  script:
  - >
     ImageStream_Delete_Image
     [--name=subname]
Info! Not all images can be deleted, only those which starts as :
${OKD_NAMESPACE}/is-$CI_PROJECT_PATH_SLUG[-subname]


ImageStream_Delete_Tag


clean:
  tag: odagrun
  script:
  - >
     ImageStream_Delete_Image
     [--name=name]
     --reference=tag

Delete an ImageStream tag, with the same restriction as with ImageStream_Delete_Image.