Make ceph clean job stable
This PS makes ceph's client-key clean job stable by precreating the role and rolebinding resources for the job, thereby removing the potential for the race conditions. This is related to https://review.openstack.org/#/c/558981/ Change-Id: Ie56cf09b5adf5c7e0cf214480aaab2e623489994
This commit is contained in:
parent
3d653d9ea4
commit
ead57fccff
@ -27,8 +27,6 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ $serviceAccountName }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-delete
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
@ -43,8 +41,6 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ $serviceAccountName }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-delete
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
|
Loading…
x
Reference in New Issue
Block a user