File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -2304,6 +2304,16 @@ def task(ctx, config):
23042304 username: registry-user
23052305 password: registry-password
23062306
2307+ By default, the image tag is determined as a suite 'branch' value,
2308+ or 'sha1' if provided. However, the tag value can be overridden by
2309+ including ':TAG' or '@DIGEST' in the container image name, for example,
2310+ for the tag 'latest', the 'overrides' section looks like:
2311+
2312+ overrides:
2313+ cephadm:
2314+ containers:
2315+ image: 'quay.io/ceph-ci/ceph:latest'
2316+
23072317 :param ctx: the argparse.Namespace object
23082318 :param config: the config dict
23092319 :param watchdog_setup: start DaemonWatchdog to watch daemons for failures
@@ -2351,7 +2361,10 @@ def task(ctx, config):
23512361 sha1 = config .get ('sha1' )
23522362 flavor = config .get ('flavor' , 'default' )
23532363
2354- if sha1 :
2364+ if any (_ in container_image_name for _ in (':' , '@' )):
2365+ log .info ('Provided image contains tag or digest, using it as is' )
2366+ ctx .ceph [cluster_name ].image = container_image_name
2367+ elif sha1 :
23552368 if flavor == "crimson-debug" or flavor == "crimson-release" :
23562369 ctx .ceph [cluster_name ].image = container_image_name + ':' + sha1 + '-' + flavor
23572370 else :
You can’t perform that action at this time.
0 commit comments