summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorzhu733756 <talonzhu@yunify.com>2021-10-08 11:20:35 +0800
committerzhu733756 <talonzhu@yunify.com>2021-10-08 13:05:29 +0800
commitbc3cc88b39784e8981b9223b675787ff37f0bea7 (patch)
tree8fd9cfce8f5de5e5405718d67e4a0eaccafba867 /build
parentbetter code style (diff)
downloadkubeedge-bc3cc88b39784e8981b9223b675787ff37f0bea7.tar.gz
Add kubebuilder comments to support enum and subresource
Signed-off-by: zhu733756 <talonzhu@yunify.com>
Diffstat (limited to 'build')
-rw-r--r--build/crds/devices/devices_v1alpha2_device.yaml38
-rw-r--r--build/crds/devices/devices_v1alpha2_devicemodel.yaml18
-rw-r--r--build/crds/reliablesyncs/cluster_objectsync_v1alpha1.yaml2
3 files changed, 58 insertions, 0 deletions
diff --git a/build/crds/devices/devices_v1alpha2_device.yaml b/build/crds/devices/devices_v1alpha2_device.yaml
index 6b1965b22..313df0991 100644
--- a/build/crds/devices/devices_v1alpha2_device.yaml
+++ b/build/crds/devices/devices_v1alpha2_device.yaml
@@ -274,6 +274,11 @@ spec:
type: integer
register:
description: 'Required: Type of register'
+ enum:
+ - CoilRegister
+ - DiscreteInputRegister
+ - InputRegister
+ - HoldingRegister
type: string
scale:
description: The scale to convert raw property data into
@@ -327,26 +332,59 @@ spec:
type: integer
collectType:
description: Define collect type, sync or async.
+ enum:
+ - sync
+ - async
type: string
com:
properties:
baudRate:
description: Required. BaudRate 115200|57600|38400|19200|9600|4800|2400|1800|1200|600|300|200|150|134|110|75|50
+ enum:
+ - 115200
+ - 57600
+ - 38400
+ - 19200
+ - 9600
+ - 4800
+ - 2400
+ - 1800
+ - 1200
+ - 600
+ - 300
+ - 200
+ - 150
+ - 134
+ - 110
+ - 75
+ - 50
format: int64
type: integer
dataBits:
description: Required. Valid values are 8, 7, 6, 5.
+ enum:
+ - 8
+ - 7
+ - 6
+ - 5
format: int64
type: integer
parity:
description: Required. Valid options are "none", "even",
"odd". Defaults to "none".
+ enum:
+ - none
+ - even
+ - odd
type: string
serialPort:
description: Required.
type: string
stopBits:
description: Required. Bit that stops 1|2
+ enum:
+ - 1
+ - 2
format: int64
type: integer
type: object
diff --git a/build/crds/devices/devices_v1alpha2_devicemodel.yaml b/build/crds/devices/devices_v1alpha2_devicemodel.yaml
index a8077276b..eb10c666f 100644
--- a/build/crds/devices/devices_v1alpha2_devicemodel.yaml
+++ b/build/crds/devices/devices_v1alpha2_devicemodel.yaml
@@ -59,6 +59,9 @@ spec:
accessMode:
description: 'Required: Access mode of property, ReadWrite
or ReadOnly.'
+ enum:
+ - ReadWrite
+ - ReadOnly
type: string
defaultValue:
type: boolean
@@ -68,6 +71,9 @@ spec:
accessMode:
description: 'Required: Access mode of property, ReadWrite
or ReadOnly.'
+ enum:
+ - ReadWrite
+ - ReadOnly
type: string
type: object
double:
@@ -75,6 +81,9 @@ spec:
accessMode:
description: 'Required: Access mode of property, ReadWrite
or ReadOnly.'
+ enum:
+ - ReadWrite
+ - ReadOnly
type: string
defaultValue:
type: number
@@ -91,6 +100,9 @@ spec:
accessMode:
description: 'Required: Access mode of property, ReadWrite
or ReadOnly.'
+ enum:
+ - ReadWrite
+ - ReadOnly
type: string
defaultValue:
type: number
@@ -107,6 +119,9 @@ spec:
accessMode:
description: 'Required: Access mode of property, ReadWrite
or ReadOnly.'
+ enum:
+ - ReadWrite
+ - ReadOnly
type: string
defaultValue:
format: int64
@@ -126,6 +141,9 @@ spec:
accessMode:
description: 'Required: Access mode of property, ReadWrite
or ReadOnly.'
+ enum:
+ - ReadWrite
+ - ReadOnly
type: string
defaultValue:
type: string
diff --git a/build/crds/reliablesyncs/cluster_objectsync_v1alpha1.yaml b/build/crds/reliablesyncs/cluster_objectsync_v1alpha1.yaml
index 3dc6d5469..4f761a6f2 100644
--- a/build/crds/reliablesyncs/cluster_objectsync_v1alpha1.yaml
+++ b/build/crds/reliablesyncs/cluster_objectsync_v1alpha1.yaml
@@ -65,6 +65,8 @@ spec:
type: object
served: true
storage: true
+ subresources:
+ status: {}
status:
acceptedNames:
kind: ""