diff --git a/docs/deployment/specifics/packit-service.md b/docs/deployment/specifics/packit-service.md index a86f4c0..d165bda 100644 --- a/docs/deployment/specifics/packit-service.md +++ b/docs/deployment/specifics/packit-service.md @@ -93,3 +93,16 @@ To make it work, you need to: with the volume attached. This will block the creation of the sandbox pods because the volume can't be mounted from multiple pods, so don't forget to delete the pod after you finished populating the cache. + +## Log Detective + +Deploy these templates with a Packit Service version that supports separate +Koji and Copr switches. The former `logdetective_enabled` setting is now +`log_detective_koji_enabled`: Koji analysis stays enabled in staging and +production and disabled internally. Copr analysis is opt-in via +`log_detective_copr_enabled` and is disabled in all three environments. + +The old and new schemas do not accept each other's switches. Coordinate the +configuration change with the service and worker image rollout so that no +process starts with a mismatched configuration. If rolling back to the old +images, restore the old configuration as part of the same cutover. diff --git a/secrets/packit/internal/packit-service.yaml.j2 b/secrets/packit/internal/packit-service.yaml.j2 index d605272..130a9df 100644 --- a/secrets/packit/internal/packit-service.yaml.j2 +++ b/secrets/packit/internal/packit-service.yaml.j2 @@ -82,4 +82,6 @@ fedora_ci: disabled_projects_for_eln: [] disabled_projects_for_logdetective: [] -logdetective_enabled: false +# Control Log Detective analysis separately for failed Koji and Copr builds. +log_detective_koji_enabled: false +log_detective_copr_enabled: false diff --git a/secrets/packit/prod/packit-service.yaml.j2 b/secrets/packit/prod/packit-service.yaml.j2 index f5488f2..159c5ae 100644 --- a/secrets/packit/prod/packit-service.yaml.j2 +++ b/secrets/packit/prod/packit-service.yaml.j2 @@ -150,7 +150,8 @@ fedora_ci: # Skip Log Detective analysis on failed Koji builds: disabled_projects_for_logdetective: [] -# Log Detective interface server URL and token -logdetective_enabled: true +# Control Log Detective analysis separately for failed Koji and Copr builds. +log_detective_koji_enabled: true +log_detective_copr_enabled: false logdetective_url: {{ vault.logdetective.url }} logdetective_token: {{ vault.logdetective.token }} diff --git a/secrets/packit/stg/packit-service.yaml.j2 b/secrets/packit/stg/packit-service.yaml.j2 index ab815e6..ed6b12e 100644 --- a/secrets/packit/stg/packit-service.yaml.j2 +++ b/secrets/packit/stg/packit-service.yaml.j2 @@ -171,7 +171,8 @@ fedora_ci: # Skip Log Detective analysis on failed Koji builds: disabled_projects_for_logdetective: [] -# Log Detective interface server URL and token -logdetective_enabled: true +# Control Log Detective analysis separately for failed Koji and Copr builds. +log_detective_koji_enabled: true +log_detective_copr_enabled: false logdetective_url: {{ vault.logdetective.url }} logdetective_token: {{ vault.logdetective.token }}