Skip to content

Commit 4521fe7

Browse files
committed
Disentangle CRD additional printer columns & field selector sectiosn
Signed-off-by: Stefan Büringer [email protected]
1 parent 5ea6ba0 commit 4521fe7

File tree

1 file changed

+39
-38
lines changed

1 file changed

+39
-38
lines changed

content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,45 @@ my-new-cron-object * * * * * 1 7s
16301630
The `NAME` column is implicit and does not need to be defined in the CustomResourceDefinition.
16311631
{{< /note >}}
16321632

1633+
1634+
#### Priority
1635+
1636+
Each column includes a `priority` field. Currently, the priority
1637+
differentiates between columns shown in standard view or wide view (using the `-o wide` flag).
1638+
1639+
- Columns with priority `0` are shown in standard view.
1640+
- Columns with priority greater than `0` are shown only in wide view.
1641+
1642+
#### Type
1643+
1644+
A column's `type` field can be any of the following (compare
1645+
[OpenAPI v3 data types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#dataTypes)):
1646+
1647+
- `integer` – non-floating-point numbers
1648+
- `number` – floating point numbers
1649+
- `string` – strings
1650+
- `boolean` – `true` or `false`
1651+
- `date` – rendered differentially as time since this timestamp.
1652+
1653+
If the value inside a CustomResource does not match the type specified for the column,
1654+
the value is omitted. Use CustomResource validation to ensure that the value
1655+
types are correct.
1656+
1657+
#### Format
1658+
1659+
A column's `format` field can be any of the following:
1660+
1661+
- `int32`
1662+
- `int64`
1663+
- `float`
1664+
- `double`
1665+
- `byte`
1666+
- `date`
1667+
- `date-time`
1668+
- `password`
1669+
1670+
The column's `format` controls the style used when `kubectl` prints the value.
1671+
16331672
### Field selectors
16341673

16351674
[Field Selectors](/docs/concepts/overview/working-with-objects/field-selectors/)
@@ -1720,44 +1759,6 @@ NAME COLOR SIZE
17201759
example2 blue M
17211760
```
17221761

1723-
#### Priority
1724-
1725-
Each column includes a `priority` field. Currently, the priority
1726-
differentiates between columns shown in standard view or wide view (using the `-o wide` flag).
1727-
1728-
- Columns with priority `0` are shown in standard view.
1729-
- Columns with priority greater than `0` are shown only in wide view.
1730-
1731-
#### Type
1732-
1733-
A column's `type` field can be any of the following (compare
1734-
[OpenAPI v3 data types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#dataTypes)):
1735-
1736-
- `integer` – non-floating-point numbers
1737-
- `number` – floating point numbers
1738-
- `string` – strings
1739-
- `boolean` – `true` or `false`
1740-
- `date` – rendered differentially as time since this timestamp.
1741-
1742-
If the value inside a CustomResource does not match the type specified for the column,
1743-
the value is omitted. Use CustomResource validation to ensure that the value
1744-
types are correct.
1745-
1746-
#### Format
1747-
1748-
A column's `format` field can be any of the following:
1749-
1750-
- `int32`
1751-
- `int64`
1752-
- `float`
1753-
- `double`
1754-
- `byte`
1755-
- `date`
1756-
- `date-time`
1757-
- `password`
1758-
1759-
The column's `format` controls the style used when `kubectl` prints the value.
1760-
17611762
### Subresources
17621763

17631764
Custom resources support `/status` and `/scale` subresources.

0 commit comments

Comments
 (0)