From 521a269ed36b40027baed805d54a57e3b2476773 Mon Sep 17 00:00:00 2001 From: Chris Laprun Date: Thu, 14 Sep 2023 09:03:44 +0200 Subject: [PATCH] chore: upgrade to Quarkus 3.4.0 --- .../pages/includes/quarkus-operator-sdk.adoc | 16 +++++++++++----- pom.xml | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/modules/ROOT/pages/includes/quarkus-operator-sdk.adoc b/docs/modules/ROOT/pages/includes/quarkus-operator-sdk.adoc index cd72e1eb..03c0ed3a 100644 --- a/docs/modules/ROOT/pages/includes/quarkus-operator-sdk.adoc +++ b/docs/modules/ROOT/pages/includes/quarkus-operator-sdk.adoc @@ -593,11 +593,17 @@ ifndef::no-duration-note[] [id='duration-note-anchor-{summaryTableId}'] .About the Duration format ==== -The format for durations uses the standard `java.time.Duration` format. -You can learn more about it in the link:https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence-[Duration#parse() javadoc]. +To write duration values, use the standard `java.time.Duration` format. +See the link:https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#parse(java.lang.CharSequence)[Duration#parse() javadoc] for more information. -You can also provide duration values starting with a number. -In this case, if the value consists only of a number, the converter treats the value as seconds. -Otherwise, `PT` is implicitly prepended to the value to obtain a standard `java.time.Duration` format. +You can also use a simplified format, starting with a number: + +* If the value is only a number, it represents time in seconds. +* If the value is a number followed by `ms`, it represents time in milliseconds. + +In other cases, the simplified format is translated to the `java.time.Duration` format for parsing: + +* If the value is a number followed by `h`, `m`, or `s`, it is prefixed with `PT`. +* If the value is a number followed by `d`, it is prefixed with `P`. ==== endif::no-duration-note[] diff --git a/pom.xml b/pom.xml index 136f5a94..eb2e31b1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ pom Quarkus - Operator SDK - Parent - 3.3.2 + 3.4.0 4.5.0-SNAPSHOT