Skip to content

Commit ba024ed

Browse files
committed
Fix API review comments for CnsNodeVMBatachAttachment API
1 parent b96d98d commit ba024ed

File tree

13 files changed

+239
-218
lines changed

13 files changed

+239
-218
lines changed

go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ require (
2222
github.com/onsi/gomega v1.36.0
2323
github.com/pkg/sftp v1.13.6
2424
github.com/prometheus/client_golang v1.22.0
25-
github.com/stretchr/testify v1.10.0
25+
github.com/stretchr/testify v1.11.1
2626
github.com/vmware-tanzu/vm-operator/api v1.9.1-0.20250923172217-bf5a74e51c65
2727
github.com/vmware-tanzu/vm-operator/external/byok v0.0.0-20250509154507-b93e51fc90fa
28-
github.com/vmware/govmomi v0.52.0-alpha.0.0.20250807230438-0eee109f1f2c
28+
github.com/vmware/govmomi v0.53.0-alpha.0.0.20251008032440-5ef2d64275e2
2929
go.uber.org/zap v1.27.0
30-
golang.org/x/crypto v0.38.0
31-
golang.org/x/sync v0.15.0
32-
golang.org/x/sys v0.33.0
30+
golang.org/x/crypto v0.40.0
31+
golang.org/x/sync v0.16.0
32+
golang.org/x/sys v0.34.0
3333
google.golang.org/grpc v1.72.1
3434
google.golang.org/protobuf v1.36.5
3535
gopkg.in/gcfg.v1 v1.2.3
@@ -161,12 +161,12 @@ require (
161161
go.uber.org/multierr v1.11.0 // indirect
162162
go.yaml.in/yaml/v2 v2.4.2 // indirect
163163
go.yaml.in/yaml/v3 v3.0.4 // indirect
164-
golang.org/x/net v0.40.0 // indirect
164+
golang.org/x/net v0.42.0 // indirect
165165
golang.org/x/oauth2 v0.27.0 // indirect
166-
golang.org/x/term v0.32.0 // indirect
167-
golang.org/x/text v0.26.0 // indirect
166+
golang.org/x/term v0.33.0 // indirect
167+
golang.org/x/text v0.28.0 // indirect
168168
golang.org/x/time v0.9.0 // indirect
169-
golang.org/x/tools v0.33.0 // indirect
169+
golang.org/x/tools v0.35.0 // indirect
170170
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
171171
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect
172172
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect

go.sum

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
281281
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
282282
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
283283
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
284-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
285-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
284+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
285+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
286286
github.com/thecodeteam/gofsutil v0.1.2 h1:FL87mBzZeeuDMZm8hpYLFcYylQdq6bbm8UQ1oc6VRMM=
287287
github.com/thecodeteam/gofsutil v0.1.2/go.mod h1:7bDOpr2aMnmdm9RTdxBEeqdOr+8RpnQhsB/VUEI3DgM=
288288
github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7otjonDflCTK0BCfls4SPy3NcCVb5dqqmbRknE=
@@ -291,8 +291,8 @@ github.com/vmware-tanzu/vm-operator/api v1.9.1-0.20250923172217-bf5a74e51c65 h1:
291291
github.com/vmware-tanzu/vm-operator/api v1.9.1-0.20250923172217-bf5a74e51c65/go.mod h1:nWTPpxfe4gHuuYuFcrs86+NMxfkqPk3a3IlvI8TCWak=
292292
github.com/vmware-tanzu/vm-operator/external/byok v0.0.0-20250509154507-b93e51fc90fa h1:4MKu14YJ7J54O6QKmT4ds5EUpysWLLtQRMff73cVkmU=
293293
github.com/vmware-tanzu/vm-operator/external/byok v0.0.0-20250509154507-b93e51fc90fa/go.mod h1:8tiuyYslzjLIUmOlXZuGKQdQP2ZgWGCVhVeyptmZYnk=
294-
github.com/vmware/govmomi v0.52.0-alpha.0.0.20250807230438-0eee109f1f2c h1:1nMVFr1CBMSNLLjsfx3QPfZ5k0R1/O29QX/A2X0w3RQ=
295-
github.com/vmware/govmomi v0.52.0-alpha.0.0.20250807230438-0eee109f1f2c/go.mod h1:ZJ5Zd2wDGRzsTRBqA1jpqtbyoe8mRok1rWiPsrL8c7k=
294+
github.com/vmware/govmomi v0.53.0-alpha.0.0.20251008032440-5ef2d64275e2 h1:3FnvoKG1eNWYm4KUpcNWHPKG//D8LD/lPCkwRtE/3cY=
295+
github.com/vmware/govmomi v0.53.0-alpha.0.0.20251008032440-5ef2d64275e2/go.mod h1:MKEZBs5aGMM+J33dt2rWXP7ayDyCMKi4hO4DkH694pw=
296296
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
297297
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
298298
github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 h1:S2dVYn90KE98chqDkyE9Z4N61UnQd+KOfgp5Iu53llk=
@@ -359,8 +359,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U
359359
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
360360
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
361361
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
362-
golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8=
363-
golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw=
362+
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
363+
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
364364
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8=
365365
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
366366
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
@@ -374,16 +374,16 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
374374
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
375375
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
376376
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
377-
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
378-
golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
377+
golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
378+
golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
379379
golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
380380
golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
381381
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
382382
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
383383
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
384384
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
385-
golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8=
386-
golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
385+
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
386+
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
387387
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
388388
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
389389
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -394,19 +394,19 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc
394394
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
395395
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
396396
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
397-
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
398-
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
397+
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
398+
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
399399
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
400400
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
401401
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
402-
golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg=
403-
golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ=
402+
golang.org/x/term v0.33.0 h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg=
403+
golang.org/x/term v0.33.0/go.mod h1:s18+ql9tYWp1IfpV9DmCtQDDSRBUjKaw9M1eAv5UeF0=
404404
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
405405
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
406406
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
407407
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
408-
golang.org/x/text v0.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M=
409-
golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA=
408+
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
409+
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
410410
golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY=
411411
golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
412412
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@@ -415,8 +415,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
415415
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
416416
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
417417
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
418-
golang.org/x/tools v0.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc=
419-
golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI=
418+
golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0=
419+
golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw=
420420
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
421421
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
422422
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

pkg/apis/cnsoperator/cnsnodevmbatchattachment/v1alpha1/cnsnodebatchvmattachment_types.go

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,39 @@ import (
2121
)
2222

2323
// DiskMode describes the desired mode to use when attaching the volume.
24+
// +kubebuilder:validation:Enum=independent_persistent;persistent;independent_nonpersistent
2425
type DiskMode string
2526

2627
const (
27-
// By setting DiskMode to independent_persistent, a virtual machine's disk is not captured in snapshots and
28+
// IndependentPersistent is the diskMode in which, a virtual machine's disk is not captured in snapshots and
2829
// changes are permanently written to the disk, regardless of snapshot operations.
2930
IndependentPersistent DiskMode = "independent_persistent"
30-
// Changes are immediately and permanently written to the virtual disk.
31+
// Persistent diskMode changes are immediately and permanently written to the virtual disk.
3132
Persistent DiskMode = "persistent"
3233
// Changes to virtual disk are made to a redo log and discarded at power off.
3334
// It is not affected by snapshots.
3435
IndependentNonPersistent = "independent_nonpersistent"
3536
)
3637

37-
// The sharing mode of the virtual disk.
38+
// SharingMode is the sharing mode of the virtual disk.
39+
// +kubebuilder:validation:Enum=sharingMultiWriter;sharingNone
3840
type SharingMode string
3941

4042
const (
41-
// The virtual disk is shared between multiple virtual machines.
43+
// SharingMultiWriter: The virtual disk is shared between multiple virtual machines.
4244
SharingMultiWriter SharingMode = "sharingMultiWriter"
43-
// The virtual disk is not shared.
45+
// SharingNone: The virtual disk is not shared.
4446
SharingNone SharingMode = "sharingNone"
4547
)
4648

47-
// CnsNodeVmBatchAttachmentSpec defines the desired state of CnsNodeVmBatchAttachment
49+
// CnsNodeVMBatchAttachmentSpec defines the desired state of CnsNodeVMBatchAttachment
4850
// +k8s:openapi-gen=true
49-
type CnsNodeVmBatchAttachmentSpec struct {
51+
type CnsNodeVMBatchAttachmentSpec struct {
52+
// +required
53+
5054
// NodeUUID indicates the UUID of the node where the volume needs to be attached to.
5155
// Here NodeUUID is the instance UUID of the node.
52-
NodeUUID string `json:"nodeuuid"`
56+
NodeUUID string `json:"nodeUUID"`
5357

5458
// +listType=map
5559
// +listMapKey=name
@@ -65,21 +69,31 @@ type VolumeSpec struct {
6569
}
6670

6771
type PersistentVolumeClaimSpec struct {
72+
// +required
73+
6874
// ClaimName is the PVC name.
6975
ClaimName string `json:"claimName"`
76+
// +optional
77+
7078
// DiskMode is the desired mode to use when attaching the volume
7179
DiskMode DiskMode `json:"diskMode,omitempty"`
72-
// SharingMode indicates the shraring mode if the virtual disk while attaching.
80+
// +optional
81+
82+
// SharingMode indicates the sharing mode if the virtual disk while attaching.
7383
SharingMode SharingMode `json:"sharingMode,omitempty"`
84+
// +optional
85+
7486
// ControllerKey is the object key for the controller object for this device.
75-
ControllerKey string `json:"controllerKey,omitempty"`
87+
ControllerKey *int32 `json:"controllerKey,omitempty"`
88+
// +optional
89+
7690
// UnitNumber of this device on its controller.
77-
UnitNumber string `json:"unitNumber,omitempty"`
91+
UnitNumber *int32 `json:"unitNumber,omitempty"`
7892
}
7993

80-
// CnsNodeVmBatchAttachmentStatus defines the observed state of CnsNodeVmBatchAttachment
94+
// CnsNodeVMBatchAttachmentStatus defines the observed state of CnsNodeVMBatchAttachment
8195
// +k8s:openapi-gen=true
82-
type CnsNodeVmBatchAttachmentStatus struct {
96+
type CnsNodeVMBatchAttachmentStatus struct {
8397
// Error is the overall error status for the instance.
8498
Error string `json:"error,omitempty"`
8599
// +listType=map
@@ -98,6 +112,7 @@ type VolumeStatus struct {
98112
type PersistentVolumeClaimStatus struct {
99113
// ClaimName is the PVC name.
100114
ClaimName string `json:"claimName"`
115+
// Attached indicates the attach status of a PVC.
101116
// If volume is not attached, Attached will be set to false.
102117
// If volume is attached, Attached will be set to true.
103118
// If volume is detached successfully, its entry will be removed from VolumeStatus.
@@ -106,30 +121,33 @@ type PersistentVolumeClaimStatus struct {
106121
Error string `json:"error,omitempty"`
107122
// CnsVolumeID is the volume ID for the PVC.
108123
CnsVolumeID string `json:"cnsVolumeId,omitempty"`
109-
// Diskuuid is the ID obtained when volume is attached to a VM.
110-
Diskuuid string `json:"diskuuid,omitempty"`
124+
// DiskUUID is the ID obtained when volume is attached to a VM.
125+
DiskUUID string `json:"DiskUUID,omitempty"`
111126
}
112127

113128
// +genclient
114129
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
115130

116131
// +k8s:openapi-gen=true
117132
// +kubebuilder:subresource:status
133+
// +kubebuilder:object:root=true
134+
// +kubebuilder:resource:shortName=batchattach
135+
// +kubebuilder:printcolumn:name="NodeUUID",type="string",JSONPath=".spec.nodeUUID"
118136

119-
// CnsNodeVmBatchAttachment is the Schema for the cnsnodevmbatchattachments API
120-
type CnsNodeVmBatchAttachment struct {
137+
// CnsNodeVMBatchAttachment is the Schema for the cnsnodevmbatchattachments API
138+
type CnsNodeVMBatchAttachment struct {
121139
metav1.TypeMeta `json:",inline"`
122140
metav1.ObjectMeta `json:"metadata,omitempty"`
123141

124-
Spec CnsNodeVmBatchAttachmentSpec `json:"spec,omitempty"`
125-
Status CnsNodeVmBatchAttachmentStatus `json:"status,omitempty"`
142+
Spec CnsNodeVMBatchAttachmentSpec `json:"spec,omitempty"`
143+
Status CnsNodeVMBatchAttachmentStatus `json:"status,omitempty"`
126144
}
127145

128146
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
129147

130-
// CnsNodeVmBatchAttachmentList contains a list of CnsNodeVmBatchAttachment
131-
type CnsNodeVmBatchAttachmentList struct {
148+
// CnsNodeVMBatchAttachmentList contains a list of CnsNodeVMBatchAttachment
149+
type CnsNodeVMBatchAttachmentList struct {
132150
metav1.TypeMeta `json:",inline"`
133151
metav1.ListMeta `json:"metadata,omitempty"`
134-
Items []CnsNodeVmBatchAttachment `json:"items"`
152+
Items []CnsNodeVMBatchAttachment `json:"items"`
135153
}

pkg/apis/cnsoperator/cnsnodevmbatchattachment/v1alpha1/zz_generated.deepcopy.go

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)