Add validation of setup key duration (#199)

This adds more validation to the setup key duration to make sure the
unit and format is correct.
This commit is contained in:
Philip Laine
2026-04-23 11:47:17 +02:00
committed by GitHub
parent 38f2a8cb99
commit 20a3ddd4ed
3 changed files with 6 additions and 2 deletions
@@ -77,6 +77,7 @@ spec:
type: array
duration:
description: Duration sets how long the setup key is valid for.
pattern: ^([0-9]+(\.[0-9]+)?(m|h))+$
type: string
x-kubernetes-validations:
- message: duration is immutable