mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user