The following will always add default values into the documentation comments, such that the kubectl explain command will always list what the default value is. Below is an example of what is generated from the standalone test:
sdustin-a01:operator-builder-testing sdustin$ kubectl explain webstores.spec.webstore.really.long.path
KIND: WebStore
VERSION: apps.acme.com/v1alpha1
RESOURCE: path <Object>
DESCRIPTION:
<empty>
FIELDS:
image <string>
(Default: "nginx:1.17") Defines the web store image
The following will always add default values into the documentation comments, such that the
kubectl explain
command will always list what the default value is. Below is an example of what is generated from the standalone test:Signed-off-by: Dustin Scott sdustin@vmware.com