Remove k8s hooks for versions prior to 1.20 (#7998)

This commit is contained in:
Florian Ruynat
2021-09-22 19:32:01 +02:00
committed by GitHub
parent 598f178054
commit c8d7f000c9
14 changed files with 3 additions and 67 deletions

View File

@@ -58,11 +58,7 @@ spec:
- driver
type: object
served: true
{% if kube_version is version('v1.20.0', '<') %}
storage: false
{% else %}
storage: true
{% endif %}
subresources: {}
- additionalPrinterColumns:
- jsonPath: .driver
@@ -76,13 +72,11 @@ spec:
name: Age
type: date
name: v1beta1
{% if kube_version is version('v1.20.0', '>=') %}
# This indicates the v1beta1 version of the custom resource is deprecated.
# API requests to this version receive a warning in the server response.
deprecated: true
# This overrides the default warning returned to clients making v1beta1 API requests.
deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotClass is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotClass"
{% endif %}
schema:
openAPIV3Schema:
description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced
@@ -112,11 +106,7 @@ spec:
- driver
type: object
served: true
{% if kube_version is version('v1.20.0', '<') %}
storage: true
{% else %}
storage: false
{% endif %}
subresources: {}
status:
acceptedNames: