fix clusterrole in helm chart
This commit is contained in:
		
							parent
							
								
									dbf1a7254b
								
							
						
					
					
						commit
						ab8f7ddc16
					
				| 
						 | 
				
			
			@ -44,13 +44,6 @@ rules:
 | 
			
		|||
  - get
 | 
			
		||||
  - patch
 | 
			
		||||
  - update
 | 
			
		||||
# to read configuration from ConfigMaps
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
  resources:
 | 
			
		||||
  - configmaps
 | 
			
		||||
  verbs:
 | 
			
		||||
  - get
 | 
			
		||||
# to send events to the CRs
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
| 
						 | 
				
			
			@ -64,14 +57,11 @@ rules:
 | 
			
		|||
  - update
 | 
			
		||||
  - watch
 | 
			
		||||
# to manage endpoints/configmaps which are also used by Patroni
 | 
			
		||||
{{- if toString .Values.configGeneral.kubernetes_use_configmaps | eq "true" }}
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
  resources:
 | 
			
		||||
{{- if toString .Values.configGeneral.kubernetes_use_configmaps | eq "true" }}
 | 
			
		||||
  - configmaps
 | 
			
		||||
{{- else }}
 | 
			
		||||
  - endpoints
 | 
			
		||||
{{- end }}
 | 
			
		||||
  verbs:
 | 
			
		||||
  - create
 | 
			
		||||
  - delete
 | 
			
		||||
| 
						 | 
				
			
			@ -81,6 +71,34 @@ rules:
 | 
			
		|||
  - patch
 | 
			
		||||
  - update
 | 
			
		||||
  - watch
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
  resources:
 | 
			
		||||
  - endpoints
 | 
			
		||||
  verbs:
 | 
			
		||||
  - get
 | 
			
		||||
{{- else }}
 | 
			
		||||
# to read configuration from ConfigMaps
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
  resources:
 | 
			
		||||
  - configmaps
 | 
			
		||||
  verbs:
 | 
			
		||||
  - get
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
  resources:
 | 
			
		||||
  - endpoints
 | 
			
		||||
  verbs:
 | 
			
		||||
  - create
 | 
			
		||||
  - delete
 | 
			
		||||
  - deletecollection
 | 
			
		||||
  - get
 | 
			
		||||
  - list
 | 
			
		||||
  - patch
 | 
			
		||||
  - update
 | 
			
		||||
  - watch
 | 
			
		||||
{{- end }}
 | 
			
		||||
# to CRUD secrets for database access
 | 
			
		||||
- apiGroups:
 | 
			
		||||
  - ""
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue