Skip to content

Commit 0932517

Browse files
authored
Merge pull request #1076 from xing-yang/test_crd_validation
Update manifests based on new CRD validation rules
2 parents 6c50aae + 895a10c commit 0932517

8 files changed

+715
-603
lines changed

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotclasses.yaml

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/814"
7-
controller-gen.kubebuilder.io/version: v0.12.0
8-
creationTimestamp: null
7+
controller-gen.kubebuilder.io/version: v0.15.0
98
name: volumegroupsnapshotclasses.groupsnapshot.storage.k8s.io
109
spec:
1110
group: groupsnapshot.storage.k8s.io
@@ -35,45 +34,56 @@ spec:
3534
name: v1alpha1
3635
schema:
3736
openAPIV3Schema:
38-
description: VolumeGroupSnapshotClass specifies parameters that a underlying
39-
storage system uses when creating a volume group snapshot. A specific VolumeGroupSnapshotClass
40-
is used by specifying its name in a VolumeGroupSnapshot object. VolumeGroupSnapshotClasses
41-
are non-namespaced.
37+
description: |-
38+
VolumeGroupSnapshotClass specifies parameters that a underlying storage system
39+
uses when creating a volume group snapshot. A specific VolumeGroupSnapshotClass
40+
is used by specifying its name in a VolumeGroupSnapshot object.
41+
VolumeGroupSnapshotClasses are non-namespaced.
4242
properties:
4343
apiVersion:
44-
description: 'APIVersion defines the versioned schema of this representation
45-
of an object. Servers should convert recognized schemas to the latest
46-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
44+
description: |-
45+
APIVersion defines the versioned schema of this representation of an object.
46+
Servers should convert recognized schemas to the latest internal value, and
47+
may reject unrecognized values.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
4749
type: string
4850
deletionPolicy:
49-
description: DeletionPolicy determines whether a VolumeGroupSnapshotContent
50-
created through the VolumeGroupSnapshotClass should be deleted when
51-
its bound VolumeGroupSnapshot is deleted. Supported values are "Retain"
52-
and "Delete". "Retain" means that the VolumeGroupSnapshotContent and
53-
its physical group snapshot on underlying storage system are kept. "Delete"
54-
means that the VolumeGroupSnapshotContent and its physical group snapshot
55-
on underlying storage system are deleted. Required.
51+
description: |-
52+
DeletionPolicy determines whether a VolumeGroupSnapshotContent created
53+
through the VolumeGroupSnapshotClass should be deleted when its bound
54+
VolumeGroupSnapshot is deleted.
55+
Supported values are "Retain" and "Delete".
56+
"Retain" means that the VolumeGroupSnapshotContent and its physical group
57+
snapshot on underlying storage system are kept.
58+
"Delete" means that the VolumeGroupSnapshotContent and its physical group
59+
snapshot on underlying storage system are deleted.
60+
Required.
5661
enum:
5762
- Delete
5863
- Retain
5964
type: string
6065
driver:
61-
description: Driver is the name of the storage driver expected to handle
62-
this VolumeGroupSnapshotClass. Required.
66+
description: |-
67+
Driver is the name of the storage driver expected to handle this VolumeGroupSnapshotClass.
68+
Required.
6369
type: string
6470
kind:
65-
description: 'Kind is a string value representing the REST resource this
66-
object represents. Servers may infer this from the endpoint the client
67-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
71+
description: |-
72+
Kind is a string value representing the REST resource this object represents.
73+
Servers may infer this from the endpoint the client submits requests to.
74+
Cannot be updated.
75+
In CamelCase.
76+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
6877
type: string
6978
metadata:
7079
type: object
7180
parameters:
7281
additionalProperties:
7382
type: string
74-
description: Parameters is a key-value map with storage driver specific
75-
parameters for creating group snapshots. These values are opaque to
76-
Kubernetes and are passed directly to the driver.
83+
description: |-
84+
Parameters is a key-value map with storage driver specific parameters for
85+
creating group snapshots.
86+
These values are opaque to Kubernetes and are passed directly to the driver.
7787
type: object
7888
required:
7989
- deletionPolicy

0 commit comments

Comments
 (0)