Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
remove support for scheduler extender and mutating pod webhook
Browse files Browse the repository at this point in the history
As all supported Kubernetes releases have storage capacity tracking,
the previous solution is no longer needed. Removing it gets rid of technical
debt and simplifies the installation instructions.
  • Loading branch information
pohly committed Dec 13, 2022
1 parent e529813 commit 5a9e530
Show file tree
Hide file tree
Showing 87 changed files with 88 additions and 4,148 deletions.
3 changes: 1 addition & 2 deletions conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"_work",
"deploy/kustomize",
"third-party",
"test/test-config.d",
"pkg/scheduler"
"test/test-config.d"
],
"extensions": [
"linkcheck2",
Expand Down
17 changes: 7 additions & 10 deletions deploy/crd/pmem-csi.intel.com_pmemcsideployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,9 @@ spec:
type: object
type: object
controllerTLSSecret:
description: ControllerTLSSecret is the name of a secret which contains
ca.crt, tls.crt and tls.key data for the scheduler extender and
pod mutation webhook. A controller is started if (and only if) this
secret is specified. The special string "-openshift-" enables the
usage of https://docs.openshift.com/container-platform/4.6/security/certificates/service-serving-certificate.html
to create certificates.
description: "ControllerTLSSecret used to be the name of a secret
which contains ca.crt, tls.crt and tls.key data for the scheduler
extender and pod mutation webhook. It is now unused. \n DEPRECATED"
type: string
deviceMode:
description: DeviceMode to use to manage PMEM devices.
Expand Down Expand Up @@ -135,9 +132,9 @@ spec:
increased with this setting, either with a higher integer or a percentage.
x-kubernetes-int-or-string: true
mutatePods:
description: MutatePod defines how a mutating pod webhook is configured
description: "MutatePod defines how a mutating pod webhook is configured
if a controller is started. The field is ignored if the controller
is not enabled. The default is "Try".
is not enabled. The default is \"Try\". \n DEPRECATED"
enum:
- Always
- Try
Expand Down Expand Up @@ -246,12 +243,12 @@ spec:
type: object
type: object
schedulerNodePort:
description: SchedulerNodePort, if non-zero, ensures that the "scheduler"
description: "SchedulerNodePort, if non-zero, ensures that the \"scheduler\"
service is created as a NodeService with that fixed port number.
Otherwise that service is created as a cluster service. The number
must be from the range reserved by Kubernetes for node ports. This
is useful if the kube-scheduler cannot reach the scheduler extender
via a cluster service.
via a cluster service. \n DEPRECATED"
format: int32
type: integer
type: object
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/direct/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
env:
- name: TERMINATION_LOG_PATH
Expand Down Expand Up @@ -397,20 +393,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
- -v=5
env:
Expand Down Expand Up @@ -398,20 +394,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/lvm/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
env:
- name: TERMINATION_LOG_PATH
Expand Down Expand Up @@ -397,20 +393,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
- -v=5
env:
Expand Down Expand Up @@ -398,20 +394,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
- -v=5
env:
Expand Down Expand Up @@ -398,20 +394,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/pmem-csi-direct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
env:
- name: TERMINATION_LOG_PATH
Expand Down Expand Up @@ -397,20 +393,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
- -v=5
env:
Expand Down Expand Up @@ -398,20 +394,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.21/pmem-csi-lvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
env:
- name: TERMINATION_LOG_PATH
Expand Down Expand Up @@ -397,20 +393,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.22/direct/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
env:
- name: TERMINATION_LOG_PATH
Expand Down Expand Up @@ -397,20 +393,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
11 changes: 0 additions & 11 deletions deploy/kubernetes-1.22/direct/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ spec:
- -mode=webhooks
- -drivername=$(PMEM_CSI_DRIVER_NAME)
- -nodeSelector={"storage":"pmem"}
- -caFile=
- -certFile=/certs/tls.crt
- -keyFile=/certs/tls.key
- -schedulerListen=:8000
- -metricsListen=:10010
- -v=5
env:
Expand Down Expand Up @@ -398,20 +394,13 @@ spec:
successThreshold: 1
timeoutSeconds: 5
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /certs
name: webhook-cert
priorityClassName: system-cluster-critical
serviceAccountName: pmem-csi-intel-com-webhooks
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: webhook-cert
secret:
secretName: pmem-csi-intel-com-controller-secret
---
apiVersion: apps/v1
kind: DaemonSet
Expand Down
Loading

0 comments on commit 5a9e530

Please sign in to comment.