mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Set ownerreference to Role and Rolebinding of interpreter
This commit is contained in:
parent
e2dc88a19f
commit
1a3a070987
1 changed files with 18 additions and 0 deletions
|
|
@ -106,6 +106,15 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
metadata:
|
||||
name: {{zeppelin.k8s.interpreter.pod.name}}
|
||||
namespace: {{zeppelin.k8s.namespace}}
|
||||
{% if zeppelin.k8s.server.uid is defined %}
|
||||
ownerReferences:
|
||||
- apiVersion: v1
|
||||
controller: false
|
||||
blockOwnerDeletion: false
|
||||
kind: Pod
|
||||
name: {{zeppelin.k8s.server.pod.name}}
|
||||
uid: {{zeppelin.k8s.server.uid}}
|
||||
{% endif %}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods", "services"]
|
||||
|
|
@ -115,6 +124,15 @@ kind: RoleBinding
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{zeppelin.k8s.interpreter.pod.name}}
|
||||
{% if zeppelin.k8s.server.uid is defined %}
|
||||
ownerReferences:
|
||||
- apiVersion: v1
|
||||
controller: false
|
||||
blockOwnerDeletion: false
|
||||
kind: Pod
|
||||
name: {{zeppelin.k8s.server.pod.name}}
|
||||
uid: {{zeppelin.k8s.server.uid}}
|
||||
{% endif %}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: default
|
||||
|
|
|
|||
Loading…
Reference in a new issue