mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Remove k8s hooks for versions prior to 1.20 (#7998)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user