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

@@ -42,12 +42,10 @@ spec:
jsonPath: .spec.volumeSnapshotRef.name
name: VolumeSnapshot
type: string
{% if kube_version is version('v1.20.0', '>=') %}
- description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
jsonPath: .spec.volumeSnapshotRef.namespace
name: VolumeSnapshotNamespace
type: string
{% endif %}
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@@ -155,11 +153,7 @@ spec:
- spec
type: object
served: true
{% if kube_version is version('v1.20.0', '<') %}
storage: false
{% else %}
storage: true
{% endif %}
subresources:
status: {}
- additionalPrinterColumns:
@@ -187,12 +181,10 @@ spec:
jsonPath: .spec.volumeSnapshotRef.name
name: VolumeSnapshot
type: string
{% if kube_version is version('v1.20.0', '>=') %}
- description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
jsonPath: .spec.volumeSnapshotRef.namespace
name: VolumeSnapshotNamespace
type: string
{% endif %}
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@@ -302,11 +294,7 @@ spec:
- spec
type: object
served: true
{% if kube_version is version('v1.20.0', '<') %}
storage: true
{% else %}
storage: false
{% endif %}
subresources:
status: {}
status: