fix array validation for global maintenance window and protected role names (#3120)

* change type of maintenance windows in config crd
* fix default array type for protected role names
This commit is contained in:
Felix Kunde
2026-06-26 17:02:50 +02:00
committed by GitHub
parent 26af5a7900
commit 9030520e24
6 changed files with 28 additions and 21 deletions
@@ -706,6 +706,10 @@ spec:
type: integer
type: object
maintenance_windows:
items:
pattern: ^\ *((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))-((2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))\
*$
type: string
type: array
major_version_upgrade:
description: MajorVersionUpgradeConfiguration defines how to execute
@@ -851,7 +855,9 @@ spec:
type: string
type: array
protected_role_names:
default: '["admin", "cron_admin"]'
default:
- admin
- cron_admin
items:
type: string
type: array