From 92596d0283002868f45b4756546f7020ceda97df Mon Sep 17 00:00:00 2001 From: Simon Baird Date: Tue, 14 May 2024 12:23:11 -0400 Subject: [PATCH] Bring back weekend & shutdown release restrictions These were added and then removed in the past because the checks were being incorrectly applied to all pipelines instead of just release pipelines. Now we have a mechanism to distinguish between release pipelines and non-release pipelines so it should be safe to bring back these schedule restrictions. Ref: https://issues.redhat.com/browse/EC-637 --- data/rule_data.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/data/rule_data.yml b/data/rule_data.yml index 84243f6..6a2db32 100644 --- a/data/rule_data.yml +++ b/data/rule_data.yml @@ -159,3 +159,34 @@ rule_data: format: semverv # https://github.com/hashicorp/vault-secrets-operator/blob/d462e563feeefbf10dc0637834f08e82e1d3f0c1/LICENSE#L7 min: v0.2.0 + + # No releases on Fridays and weekends + # https://enterprisecontract.dev/docs/ec-policies/release_policy.html#schedule__weekday_restriction + disallowed_weekdays: + - friday + - saturday + - sunday + + # No releases during year-end shutdown + # https://enterprisecontract.dev/docs/ec-policies/release_policy.html#schedule__date_restriction + disallowed_dates: + # EOY 2024 + - 2024-12-24 + - 2024-12-25 + - 2024-12-26 + - 2024-12-27 + - 2024-12-28 + - 2024-12-29 + - 2024-12-30 + - 2024-12-31 + - 2025-01-01 + # EOY 2025 + - 2025-12-24 + - 2025-12-25 + - 2025-12-26 + - 2025-12-27 + - 2025-12-28 + - 2025-12-29 + - 2025-12-30 + - 2025-12-31 + - 2026-01-01