The following Insights APIs use duration attributes:
- insightsoperator.operator.openshift.io
- datagathers.insights.openshift.io
The kubebuilder validation patterns are defined as
^0|([1-9][0-9]*(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$
and
^([1-9][0-9]*(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$
Unfortunately this is not enough and it fails in case of updating the resource e.g with value "2m0s".
The validation pattern must allow these values.
- links to
-
RHBA-2024:11522 OpenShift Container Platform 4.17.z bug fix update