mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
rbd: modify oidc token file path according to FHS 3.0
OIDC token file path has been modified from `/var/run/secrets/token` to `/run/secrets/tokens`. This has been done to ensure compliance with FHS 3.0. refer: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
0ab8e6a2f5
commit
40de75e0db
@ -134,7 +134,7 @@ spec:
|
||||
- name: ceph-logdir
|
||||
mountPath: /var/log/ceph
|
||||
- name: oidc-token
|
||||
mountPath: /var/run/secrets/tokens
|
||||
mountPath: /run/secrets/tokens
|
||||
readOnly: true
|
||||
resources:
|
||||
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
||||
|
@ -184,7 +184,7 @@ spec:
|
||||
- name: keys-tmp-dir
|
||||
mountPath: /tmp/csi/keys
|
||||
- name: oidc-token
|
||||
mountPath: /var/run/secrets/tokens
|
||||
mountPath: /run/secrets/tokens
|
||||
readOnly: true
|
||||
resources:
|
||||
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
||||
|
@ -164,7 +164,7 @@ spec:
|
||||
- name: ceph-config
|
||||
mountPath: /etc/ceph/
|
||||
- name: oidc-token
|
||||
mountPath: /var/run/secrets/tokens
|
||||
mountPath: /run/secrets/tokens
|
||||
readOnly: true
|
||||
- name: csi-rbdplugin-controller
|
||||
# for stable functionality replace canary with latest release version
|
||||
|
@ -119,7 +119,7 @@ spec:
|
||||
- name: ceph-config
|
||||
mountPath: /etc/ceph/
|
||||
- name: oidc-token
|
||||
mountPath: /var/run/secrets/tokens
|
||||
mountPath: /run/secrets/tokens
|
||||
readOnly: true
|
||||
- name: liveness-prometheus
|
||||
securityContext:
|
||||
|
@ -60,7 +60,7 @@ const (
|
||||
// tokenFilePath is the path to the file containing the OIDC token.
|
||||
//
|
||||
// #nosec:G101, value not credential, just path to the token.
|
||||
tokenFilePath = "/var/run/secrets/tokens/oidc-token"
|
||||
tokenFilePath = "/run/secrets/tokens/oidc-token"
|
||||
)
|
||||
|
||||
var _ = RegisterProvider(Provider{
|
||||
|
Loading…
Reference in New Issue
Block a user