Skip to content

Commit

Permalink
feat(prepull): logging
Browse files Browse the repository at this point in the history
  • Loading branch information
avouacr committed Sep 11, 2023
1 parent 562a703 commit 1b36ddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/prepull_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def prepull_images(namespace, images_to_prepull=None):
prepull_images(namespace=NAMESPACE)
except ApiException as e:
if e.status == 410: # "Reason: Expired: too old resource version"
logging.info('Error 410 ("too old resource version"), retrying.')
prepull_images(namespace=NAMESPACE)

elif len(sys.argv) == 3:
Expand Down

0 comments on commit 1b36ddf

Please sign in to comment.