Skip to content

Commit

Permalink
build_ds_container.py: Enable container image push
Browse files Browse the repository at this point in the history
Add option to use a k8s container image to create Profile Bundles.
This makes it easy to reference any k8s content image to create Profile
Bundles for OCP4 and RHCOS4.
  • Loading branch information
yuumasato committed Jan 19, 2024
1 parent 64bdbd1 commit 34f2da8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/build_ds_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
'--product and --debug flags.'),
action='store_true',
default=False)
parser.add_argument(
'-i', '--push-content-image',
help=(
'Do not build any content. Create profile bundles from the referenced k8s content image'),
)
parser.add_argument(
'-d', '--debug',
help=(
Expand Down Expand Up @@ -270,6 +275,10 @@ def get_image_repository():
return image_repo.decode().strip()


if args.push_content_image:
create_profile_bundles(args.products, args.push_content_image)
sys.exit(0)

log.info(f'Building content for {", ".join(args.products)}')
ensure_namespace_exists()

Expand Down

0 comments on commit 34f2da8

Please sign in to comment.