diff --git a/pkg/operator/ceph/csi/csi.go b/pkg/operator/ceph/csi/csi.go index 51d9ac8a1..82def04ee 100644 --- a/pkg/operator/ceph/csi/csi.go +++ b/pkg/operator/ceph/csi/csi.go @@ -155,12 +155,6 @@ func (r *ReconcileCSI) setParams(ver *version.Info) error { CSIParam.EnableOMAPGenerator = true } - // SA token projection is stable only from kubernetes version 1.20. - CSIParam.EnableOIDCTokenProjection = false - if ver.Major == kubeMinMajor && ver.Minor >= kubeMinVerForOIDCTokenProjection { - CSIParam.EnableOIDCTokenProjection = true - } - // CSIDriver SeLinuxMount option is only available from kubernetes version 1.25. if ver.Major == kubeMinMajor && ver.Minor >= kubeMinVerForCSIDriverSeLinuxMount { CSIParam.EnableCSIDriverSeLinuxMount = true diff --git a/pkg/operator/ceph/csi/spec.go b/pkg/operator/ceph/csi/spec.go index 8bc483f98..c34a306ec 100644 --- a/pkg/operator/ceph/csi/spec.go +++ b/pkg/operator/ceph/csi/spec.go @@ -73,7 +73,6 @@ type Param struct { EnableNFSSnapshotter bool EnableCSIAddonsSideCar bool MountCustomCephConf bool - EnableOIDCTokenProjection bool EnableCSIDriverSeLinuxMount bool EnableCSIEncryption bool EnableCSITopology bool @@ -180,7 +179,6 @@ var ( const ( kubeMinMajor = "1" - kubeMinVerForOIDCTokenProjection = "20" kubeMaxVerForBeta1csiDriver = "21" kubeMinVerForCSIDriverSeLinuxMount = "25" diff --git a/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-provisioner-dep.yaml b/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-provisioner-dep.yaml index 3d453c7e1..872a27407 100644 --- a/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-provisioner-dep.yaml +++ b/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin-provisioner-dep.yaml @@ -232,11 +232,9 @@ spec: mountPath: /etc/ceph/ceph.conf subPath: ceph.conf {{ end }} - {{ if .EnableOIDCTokenProjection }} - name: oidc-token mountPath: /run/secrets/tokens readOnly: true - {{ end }} {{ if .EnableCSIEncryption }} - name: rook-ceph-csi-kms-config mountPath: /etc/ceph-csi-encryption-kms-config/ @@ -304,7 +302,6 @@ spec: emptyDir: { medium: "Memory" } - {{ if .EnableOIDCTokenProjection }} - name: oidc-token projected: sources: @@ -312,7 +309,6 @@ spec: path: oidc-token expirationSeconds: 3600 audience: ceph-csi-kms - {{ end }} {{ if .EnableCSIEncryption }} - name: rook-ceph-csi-kms-config configMap: diff --git a/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin.yaml b/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin.yaml index 1db1a5c80..72ebf1d71 100644 --- a/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin.yaml +++ b/pkg/operator/ceph/csi/template/rbd/csi-rbdplugin.yaml @@ -135,11 +135,9 @@ spec: mountPath: /etc/ceph/ceph.conf subPath: ceph.conf {{ end }} - {{ if .EnableOIDCTokenProjection }} - name: oidc-token mountPath: /run/secrets/tokens readOnly: true - {{ end }} {{ if .EnableCSIEncryption }} - name: rook-ceph-csi-kms-config mountPath: /etc/ceph-csi-encryption-kms-config/ @@ -269,7 +267,6 @@ spec: - key: ceph.conf path: ceph.conf {{ end }} - {{ if .EnableOIDCTokenProjection }} - name: oidc-token projected: sources: @@ -277,7 +274,6 @@ spec: path: oidc-token expirationSeconds: 3600 audience: ceph-csi-kms - {{ end }} {{ if .EnableCSIEncryption }} - name: rook-ceph-csi-kms-config configMap: