mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-23 03:45:03 -02:30
Remove k8s hooks for versions prior to 1.20 (#7998)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -116,11 +116,7 @@ spec:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
{% if kube_version is version('v1.20.0','<') %}
|
||||
storage: false
|
||||
{% else %}
|
||||
storage: true
|
||||
{% endif %}
|
||||
subresources:
|
||||
status: {}
|
||||
- additionalPrinterColumns:
|
||||
@@ -156,13 +152,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 VolumeSnapshot is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshot"
|
||||
{% endif %}
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot.
|
||||
@@ -226,11 +220,7 @@ spec:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
{% if kube_version is version('v1.20.0','<') %}
|
||||
storage: true
|
||||
{% else %}
|
||||
storage: false
|
||||
{% endif %}
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
|
||||
@@ -16,11 +16,7 @@ spec:
|
||||
spec:
|
||||
serviceAccountName: vsphere-csi-controller
|
||||
nodeSelector:
|
||||
{% if kube_version is version('v1.20.0', '<') %}
|
||||
node-role.kubernetes.io/master: ""
|
||||
{% else %}
|
||||
node-role.kubernetes.io/control-plane: ""
|
||||
{% endif %}
|
||||
tolerations:
|
||||
- operator: "Exists"
|
||||
key: node-role.kubernetes.io/master
|
||||
|
||||
@@ -19,11 +19,7 @@ spec:
|
||||
spec:
|
||||
serviceAccountName: vsphere-csi-controller
|
||||
nodeSelector:
|
||||
{% if kube_version is version('v1.20.0', '<') %}
|
||||
node-role.kubernetes.io/master: ""
|
||||
{% else %}
|
||||
node-role.kubernetes.io/control-plane: ""
|
||||
{% endif %}
|
||||
tolerations:
|
||||
- operator: "Exists"
|
||||
key: node-role.kubernetes.io/master
|
||||
|
||||
Reference in New Issue
Block a user