diff --git a/CHANGES/605.feature b/CHANGES/605.feature new file mode 100644 index 000000000..aff7430b6 --- /dev/null +++ b/CHANGES/605.feature @@ -0,0 +1 @@ +Add '--metadata-signing-service' option to rpm. diff --git a/pulpcore/cli/rpm/repository.py b/pulpcore/cli/rpm/repository.py index 088bbc05a..4871c57a7 100644 --- a/pulpcore/cli/rpm/repository.py +++ b/pulpcore/cli/rpm/repository.py @@ -9,6 +9,7 @@ PulpRepositoryContext, ) from pulp_glue.common.i18n import get_translation +from pulp_glue.core.context import PulpSigningServiceContext from pulp_glue.rpm.context import ( PulpRpmPackageContext, PulpRpmRemoteContext, @@ -59,6 +60,14 @@ ), ) +metadata_signing_service_option = resource_option( + "--metadata-signing-service", + default_plugin="core", + default_type="core", + context_table={"core:core": PulpSigningServiceContext}, + href_pattern=PulpSigningServiceContext.HREF_PATTERN, +) + def _content_callback(ctx: click.Context, param: click.Parameter, value: Any) -> Any: if value: @@ -125,6 +134,7 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, repo_type: str) -> click.option("--description"), click.option("--retain-package-versions", type=int), remote_option, + metadata_signing_service_option, click.option( "--metadata-checksum-type", type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False) ),