Skip to content

Commit

Permalink
deploy: remove psp from cephcsi
Browse files Browse the repository at this point in the history
as PSP is deprecated in kubernetes 1.21
and will be removed in kubernetes 1.25
removing the existing PSP related templates
from the repo and updated the required documents.

fixes #1988

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 authored and mergify[bot] committed Aug 23, 2022
1 parent 3d05ef0 commit 96a3aab
Show file tree
Hide file tree
Showing 32 changed files with 37 additions and 987 deletions.
51 changes: 0 additions & 51 deletions charts/ceph-csi-cephfs/templates/nodeplugin-psp.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions charts/ceph-csi-cephfs/templates/nodeplugin-role.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions charts/ceph-csi-cephfs/templates/nodeplugin-rolebinding.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions charts/ceph-csi-cephfs/templates/provisioner-psp.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions charts/ceph-csi-cephfs/templates/provisioner-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,4 @@ rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
{{- if .Values.provisioner.podSecurityPolicy.enabled }}
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: ['{{ include "ceph-csi-cephfs.provisioner.fullname" . }}']
{{- end -}}
{{- end -}}
10 changes: 0 additions & 10 deletions charts/ceph-csi-cephfs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ nodeplugin:
kernelmountoptions: ""
fusemountoptions: ""

# If true, create & use Pod Security Policy resources
# https://kubernetes.io/docs/concepts/policy/pod-security-policy/
podSecurityPolicy:
enabled: false

provisioner:
name: provisioner
replicaCount: 3
Expand Down Expand Up @@ -205,11 +200,6 @@ provisioner:

affinity: {}

# If true, create & use Pod Security Policy resources
# https://kubernetes.io/docs/concepts/policy/pod-security-policy/
podSecurityPolicy:
enabled: false

# Mount the host /etc/selinux inside pods to support
# selinux-enabled filesystems
selinuxMount: true
Expand Down
53 changes: 0 additions & 53 deletions charts/ceph-csi-rbd/templates/nodeplugin-psp.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions charts/ceph-csi-rbd/templates/nodeplugin-role.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions charts/ceph-csi-rbd/templates/nodeplugin-rolebinding.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions charts/ceph-csi-rbd/templates/provisioner-psp.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions charts/ceph-csi-rbd/templates/provisioner-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,4 @@ rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
{{- if .Values.provisioner.podSecurityPolicy.enabled }}
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: ['{{ include "ceph-csi-rbd.provisioner.fullname" . }}']
{{- end -}}
{{- end -}}
10 changes: 0 additions & 10 deletions charts/ceph-csi-rbd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ nodeplugin:

affinity: {}

# If true, create & use Pod Security Policy resources
# https://kubernetes.io/docs/concepts/policy/pod-security-policy/
podSecurityPolicy:
enabled: false

provisioner:
name: provisioner
replicaCount: 3
Expand Down Expand Up @@ -247,11 +242,6 @@ provisioner:

affinity: {}

# If true, create & use Pod Security Policy resources
# https://kubernetes.io/docs/concepts/policy/pod-security-policy/
podSecurityPolicy:
enabled: false

topology:
# Specifies whether topology based provisioning support should
# be exposed by CSI
Expand Down
Loading

0 comments on commit 96a3aab

Please sign in to comment.