Skip to content

Commit ec0e78b

Browse files
committed
schema: fixup user
1 parent fd686db commit ec0e78b

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

config/schemas/config.yaml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -433,33 +433,18 @@ properties:
433433
additionalProperties:
434434
$ref: '#/$defs/commonResource'
435435
properties:
436-
alertmanager:
437-
additionalProperties:
438-
$ref: '#/$defs/commonResource'
439-
properties:
440-
adminGroups:
441-
items:
442-
type: string
443-
type: array
444-
adminUsers:
445-
items:
446-
type: string
447-
type: array
448-
enabled:
449-
default: true
450-
type: boolean
451-
ingress:
452-
additionalProperties: false
453-
properties:
454-
enabled:
455-
default: false
456-
type: boolean
457-
type: object
458-
serviceAccounts:
459-
items:
460-
type: string
461-
type: array
462-
type: object
436+
adminGroups:
437+
minItems: 1
438+
items:
439+
type: string
440+
type: array
441+
adminUsers:
442+
minItems: 1
443+
items:
444+
examples:
445+
- admin@example.com
446+
type: string
447+
type: array
463448
constraints:
464449
additionalProperties:
465450
additionalProperties:
@@ -495,6 +480,15 @@ properties:
495480
- staging
496481
type: string
497482
type: array
483+
serviceAccounts:
484+
items:
485+
type: object
486+
properties:
487+
name:
488+
type: string
489+
namespace:
490+
type: string
491+
type: array
498492
type: object
499493
hnc:
500494
additionalProperties: false

0 commit comments

Comments
 (0)