Enhance skip list
This patch enhances skip list, so that images matching skip pattern are skipped. Previous behavior was to skip only images ending with pattern. Change-Id: Ic6548048412b6ab4e62398c66fedb888489bd605
This commit is contained in:
parent
e85173940a
commit
00cbd30abf
|
@ -348,9 +348,9 @@ def traverse(obj, dict_path=None):
|
|||
hash_v = v.split(":")
|
||||
image, old_image_tag = hash_v
|
||||
|
||||
if skip_list and image.endswith(skip_list):
|
||||
LOG.info("Ignoring image %s, "
|
||||
"it is in a skip list", image)
|
||||
if skip_list and image in skip_list:
|
||||
LOG.info("Ignoring image %s, it is in a "
|
||||
"skip list", image)
|
||||
continue
|
||||
|
||||
new_image_tag = get_image_tag(image)
|
||||
|
@ -509,7 +509,9 @@ if __name__ == "__main__":
|
|||
"\"versions.yaml\" (overwrite existing)")
|
||||
parser.add_argument("--skip",
|
||||
help="comma-delimited list of images and charts "
|
||||
"to skip during the update")
|
||||
"to skip during the update; e.g. \"ceph\" "
|
||||
"will skip all charts and images which have "
|
||||
"\"ceph\" in the name")
|
||||
parser.add_argument('--tag-filter',
|
||||
help="e.g. \"ubuntu\"; update would use image ref. "
|
||||
"tags on quay.io matching the filter")
|
||||
|
|
Loading…
Reference in New Issue