rbd: create token and use it for vault SA

create the token if kubernetes version in
1.24+ and use it for vault sa.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Madhu Rajanna
2022-06-08 19:41:36 +05:30
committed by mergify[bot]
parent d7bf51b255
commit 7a2dd4c3cf
6 changed files with 98 additions and 4 deletions

View File

@ -70,5 +70,8 @@ rules:
resources: ["csinodes"]
verbs: ["get", "list", "watch"]
{{- end }}
- apiGroups: [""]
resources: ["serviceaccounts/token"]
verbs: ["create"]
{{- end -}}