Skip to content

Commit

Permalink
Merge pull request #11324 from Vincent056/no_prefix
Browse files Browse the repository at this point in the history
OCP4: Add option to deploy profile without upstream prefix
  • Loading branch information
yuumasato authored Jun 28, 2024
2 parents 7cde9d1 + 0458e28 commit 0514b2f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion utils/build_ds_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
'--product and --debug flags.'),
action='store_true',
default=False)
# with upstream prefix option as default
parser.add_argument(
'-np', '--no-upstream-prefix',
help=(
'The prefix for bundle names. The default is "upstream" if not specified. '
'To disable prefix, use --no-upstream-prefix.',
'This option is ignored when building content in the cluster using '
'--build-in-cluster.'),
action='store_true',
default=False)
parser.add_argument(
'-i', '--push-content-image',
help=(
Expand Down Expand Up @@ -221,7 +231,10 @@ def create_profile_bundles(products, content_image=None):
"""
for product in products:
content_file = 'ssg-' + product + '-ds.xml'
product_name = 'upstream-' + product
if args.no_upstream_prefix:
product_name = product
else:
product_name = 'upstream-' + product
profile_bundle_update = {
'apiVersion': 'compliance.openshift.io/v1alpha1',
'kind': 'ProfileBundle',
Expand Down

0 comments on commit 0514b2f

Please sign in to comment.