Skip to content

Commit ea9126f

Browse files
committed
Minor adjustments
1 parent 74a0c0e commit ea9126f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/concepts/pages/duration.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
All Stackable operators use a human-readable duration format. It very closely resembles the format used by the {go}[Go] programming language - which Kubernetes uses internally.
99
Every duration field of a {k8s-cr}[CustomResource], for example the xref:trino:usage-guide/operations/graceful-shutdown.adoc[`spec.workers.roleConfig.gracefulShutdownTimeout`] field, supports this format.
1010
There is no official format specification, but the source code of {go-std-time}[`time.ParseDuration`] in the Go standard library can be used as an implementation reference.
11-
The format looks like this:
11+
The format looks like this: `15d18h34m42s`.
12+
xref:trino:index.adoc[Trino], for example, uses the format like this:
1213

1314
[source,yaml]
1415
----
1516
# ...
1617
spec:
17-
clusterConfig:
18-
gracefulShutdownTimeout: 15d18h34m42s
18+
workers:
19+
roleConfig:
20+
gracefulShutdownTimeout: 15d18h34m42s
1921
----
2022

2123
Valid time units are: `d`, `h`, `m`, `s`, and `ms`.

0 commit comments

Comments
 (0)