From 04daaa8c52435cefce11fc667a6ea26e0ee85df9 Mon Sep 17 00:00:00 2001 From: nicolst <35232838+nicolst@users.noreply.github.com> Date: Fri, 23 Feb 2024 09:28:31 +0100 Subject: [PATCH] Add options for branch protection rules --- src/v1/kuben-team-definition.schema.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/v1/kuben-team-definition.schema.json b/src/v1/kuben-team-definition.schema.json index 210305c..abd8d7e 100644 --- a/src/v1/kuben-team-definition.schema.json +++ b/src/v1/kuben-team-definition.schema.json @@ -66,6 +66,19 @@ "access": { "type": "object", "description": "Map of AD group to github role" + }, + "branch_protection": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Enable the default Kuben set of branch protection rules" + }, + "enforce_admins": { + "type": "boolean", + "description": "Do not allow repository admins to bypass branch protection rules (false required for Flux2 image update automation)" + } + } } } }