let examples be clusterroles
This commit is contained in:
		
							parent
							
								
									6575e380b2
								
							
						
					
					
						commit
						ab92c76c28
					
				| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
{{ if .Values.rbac.create }}
 | 
			
		||||
apiVersion: rbac.authorization.k8s.io/v1
 | 
			
		||||
kind: Role
 | 
			
		||||
kind: ClusterRole
 | 
			
		||||
metadata:
 | 
			
		||||
  name: {{ include "postgres-pod.serviceAccountName" . }}
 | 
			
		||||
  labels:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -230,7 +230,7 @@ subjects:
 | 
			
		|||
 | 
			
		||||
---
 | 
			
		||||
apiVersion: rbac.authorization.k8s.io/v1
 | 
			
		||||
kind: Role
 | 
			
		||||
kind: ClusterRole
 | 
			
		||||
metadata:
 | 
			
		||||
  name: postgres-pod
 | 
			
		||||
rules:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -305,20 +305,6 @@ func (c *Controller) initRole() {
 | 
			
		|||
		            "verbs": [
 | 
			
		||||
		                "create"
 | 
			
		||||
		            ]
 | 
			
		||||
		        },
 | 
			
		||||
		        {
 | 
			
		||||
		            "apiGroups": [
 | 
			
		||||
		                "extensions"
 | 
			
		||||
		            ],
 | 
			
		||||
		            "resources": [
 | 
			
		||||
		                "podsecuritypolicies"
 | 
			
		||||
		            ],
 | 
			
		||||
		            "resourceNames": [
 | 
			
		||||
		                "privileged"
 | 
			
		||||
		            ],
 | 
			
		||||
		            "verbs": [
 | 
			
		||||
		                "use"
 | 
			
		||||
		            ]
 | 
			
		||||
		        }
 | 
			
		||||
		    ]
 | 
			
		||||
		}`, c.PodServiceAccount.Name)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue