diff --git a/packit_service/config.py b/packit_service/config.py index 4c21cac1a..06dfe7d01 100644 --- a/packit_service/config.py +++ b/packit_service/config.py @@ -109,6 +109,8 @@ def __init__( comment_command_prefix: str = "/packit", redhat_api_refresh_token: str = None, package_config_path_override: Optional[str] = None, + command_handler_storage_class: Optional[str] = None, + appcode: Optional[str] = None, **kwargs, ): super().__init__(**kwargs) @@ -173,6 +175,12 @@ def __init__( # default names. self.package_config_path_override = package_config_path_override + # Storage class that is used for temporary volumes used by Sandcastle + self.command_handler_storage_class = command_handler_storage_class + + # Appcode used in MP+ to differentiate applications + self.appcode = appcode + service_config = None def __repr__(self): diff --git a/packit_service/schema.py b/packit_service/schema.py index 3277bf21d..0bd761ea8 100644 --- a/packit_service/schema.py +++ b/packit_service/schema.py @@ -81,6 +81,8 @@ class ServiceConfigSchema(UserConfigSchema): enabled_projects_for_srpm_in_copr = fields.List(fields.String()) comment_command_prefix = fields.String() package_config_path_override = fields.String() + command_handler_storage_class = fields.String(missing="gp2") + appcode = fields.String() @post_load def make_instance(self, data, **kwargs):