|
| 1 | +{{- if .Values.externalSnapshotter.enabled -}} |
| 2 | +--- |
| 3 | +apiVersion: apiextensions.k8s.io/v1 |
| 4 | +kind: CustomResourceDefinition |
| 5 | +metadata: |
| 6 | + annotations: |
| 7 | + controller-gen.kubebuilder.io/version: v0.8.0 |
| 8 | + api-approved.kubernetes.io: https://github.com/kubernetes-csi/external-snapshotter/pull/665 |
| 9 | + name: volumesnapshotclasses.snapshot.storage.k8s.io |
| 10 | +spec: |
| 11 | + group: snapshot.storage.k8s.io |
| 12 | + names: |
| 13 | + kind: VolumeSnapshotClass |
| 14 | + listKind: VolumeSnapshotClassList |
| 15 | + plural: volumesnapshotclasses |
| 16 | + shortNames: [vsclass, vsclasses] |
| 17 | + singular: volumesnapshotclass |
| 18 | + scope: Cluster |
| 19 | + versions: |
| 20 | + - additionalPrinterColumns: |
| 21 | + - jsonPath: .driver |
| 22 | + name: Driver |
| 23 | + type: string |
| 24 | + - description: Determines whether a VolumeSnapshotContent created through |
| 25 | + the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot |
| 26 | + is deleted. |
| 27 | + jsonPath: .deletionPolicy |
| 28 | + name: DeletionPolicy |
| 29 | + type: string |
| 30 | + - jsonPath: .metadata.creationTimestamp |
| 31 | + name: Age |
| 32 | + type: date |
| 33 | + name: v1 |
| 34 | + schema: |
| 35 | + openAPIV3Schema: |
| 36 | + description: VolumeSnapshotClass specifies parameters that a underlying |
| 37 | + storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass |
| 38 | + is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses |
| 39 | + are non-namespaced |
| 40 | + properties: |
| 41 | + apiVersion: |
| 42 | + description: 'APIVersion defines the versioned schema of this representation |
| 43 | + of an object. Servers should convert recognized schemas to the latest |
| 44 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 45 | + type: string |
| 46 | + deletionPolicy: |
| 47 | + description: deletionPolicy determines whether a VolumeSnapshotContent |
| 48 | + created through the VolumeSnapshotClass should be deleted when its |
| 49 | + bound VolumeSnapshot is deleted. Supported values are "Retain" and |
| 50 | + "Delete". "Retain" means that the VolumeSnapshotContent and its physical |
| 51 | + snapshot on underlying storage system are kept. "Delete" means that |
| 52 | + the VolumeSnapshotContent and its physical snapshot on underlying |
| 53 | + storage system are deleted. Required. |
| 54 | + enum: [Delete, Retain] |
| 55 | + type: string |
| 56 | + driver: |
| 57 | + description: driver is the name of the storage driver that handles this |
| 58 | + VolumeSnapshotClass. Required. |
| 59 | + type: string |
| 60 | + kind: |
| 61 | + description: 'Kind is a string value representing the REST resource |
| 62 | + this object represents. Servers may infer this from the endpoint the |
| 63 | + client submits requests to. Cannot be updated. In CamelCase. More |
| 64 | + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 65 | + type: string |
| 66 | + parameters: |
| 67 | + additionalProperties: |
| 68 | + type: string |
| 69 | + description: parameters is a key-value map with storage driver specific |
| 70 | + parameters for creating snapshots. These values are opaque to Kubernetes. |
| 71 | + type: object |
| 72 | + required: [deletionPolicy, driver] |
| 73 | + type: object |
| 74 | + served: true |
| 75 | + storage: true |
| 76 | + subresources: {} |
| 77 | + - additionalPrinterColumns: |
| 78 | + - jsonPath: .driver |
| 79 | + name: Driver |
| 80 | + type: string |
| 81 | + - description: Determines whether a VolumeSnapshotContent created through |
| 82 | + the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot |
| 83 | + is deleted. |
| 84 | + jsonPath: .deletionPolicy |
| 85 | + name: DeletionPolicy |
| 86 | + type: string |
| 87 | + - jsonPath: .metadata.creationTimestamp |
| 88 | + name: Age |
| 89 | + type: date |
| 90 | + name: v1beta1 |
| 91 | + # This indicates the v1beta1 version of the custom resource is deprecated. |
| 92 | + # API requests to this version receive a warning in the server response. |
| 93 | + deprecated: true |
| 94 | + # This overrides the default warning returned to clients making v1beta1 API requests. |
| 95 | + deprecationWarning: snapshot.storage.k8s.io/v1beta1 VolumeSnapshotClass is deprecated; |
| 96 | + use snapshot.storage.k8s.io/v1 VolumeSnapshotClass |
| 97 | + schema: |
| 98 | + openAPIV3Schema: |
| 99 | + description: VolumeSnapshotClass specifies parameters that a underlying |
| 100 | + storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass |
| 101 | + is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses |
| 102 | + are non-namespaced |
| 103 | + properties: |
| 104 | + apiVersion: |
| 105 | + description: 'APIVersion defines the versioned schema of this representation |
| 106 | + of an object. Servers should convert recognized schemas to the latest |
| 107 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 108 | + type: string |
| 109 | + deletionPolicy: |
| 110 | + description: deletionPolicy determines whether a VolumeSnapshotContent |
| 111 | + created through the VolumeSnapshotClass should be deleted when its |
| 112 | + bound VolumeSnapshot is deleted. Supported values are "Retain" and |
| 113 | + "Delete". "Retain" means that the VolumeSnapshotContent and its physical |
| 114 | + snapshot on underlying storage system are kept. "Delete" means that |
| 115 | + the VolumeSnapshotContent and its physical snapshot on underlying |
| 116 | + storage system are deleted. Required. |
| 117 | + enum: [Delete, Retain] |
| 118 | + type: string |
| 119 | + driver: |
| 120 | + description: driver is the name of the storage driver that handles this |
| 121 | + VolumeSnapshotClass. Required. |
| 122 | + type: string |
| 123 | + kind: |
| 124 | + description: 'Kind is a string value representing the REST resource |
| 125 | + this object represents. Servers may infer this from the endpoint the |
| 126 | + client submits requests to. Cannot be updated. In CamelCase. More |
| 127 | + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 128 | + type: string |
| 129 | + parameters: |
| 130 | + additionalProperties: |
| 131 | + type: string |
| 132 | + description: parameters is a key-value map with storage driver specific |
| 133 | + parameters for creating snapshots. These values are opaque to Kubernetes. |
| 134 | + type: object |
| 135 | + required: [deletionPolicy, driver] |
| 136 | + type: object |
| 137 | + served: false |
| 138 | + storage: false |
| 139 | + subresources: {} |
| 140 | +status: |
| 141 | + acceptedNames: |
| 142 | + kind: '' |
| 143 | + plural: '' |
| 144 | + conditions: [] |
| 145 | + storedVersions: [] |
| 146 | +{{- end -}} |
0 commit comments