permissions for operator
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -2,4 +2,3 @@ | |||||||
|  |  | ||||||
| [](https://drone.uploadfilter24.eu/lerentis/bitwarden-crd-operator) | [](https://drone.uploadfilter24.eu/lerentis/bitwarden-crd-operator) | ||||||
|  |  | ||||||
| Test from gitnext |  | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| #!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||||
| import kopf | import kopf | ||||||
|  |  | ||||||
| @kopf.on.create('bitwarden-secret') | @kopf.on.create('bitwarden-secrets.lerentis.uploadfilter24') | ||||||
| def create_fn(body, **kwargs): | def create_fn(body, **kwargs): | ||||||
|  |  | ||||||
|     # The all-purpose function for the event creation. |     # The all-purpose function for the event creation. | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								chart/bitwarden-crd-operator/templates/clusterrole.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								chart/bitwarden-crd-operator/templates/clusterrole.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | kind: ClusterRole | ||||||
|  | apiVersion: rbac.authorization.k8s.io/v1 | ||||||
|  | metadata: | ||||||
|  |   name: {{ include "bitwarden-crd-operator.serviceAccountName" . }}-role | ||||||
|  | rules: | ||||||
|  | - apiGroups: ["lerentis.uploadfilter24.eu"] | ||||||
|  |   resources: ["bitwarden-secrets"] | ||||||
|  |   verbs: ["get", "watch", "list", "create", "delete", "patch", "update"] | ||||||
|  | - apiGroups: ["v1"] | ||||||
|  |   resources: ["secrets"] | ||||||
|  |   verbs: ["get", "watch", "list", "create", "delete", "patch", "update"] | ||||||
|  | - apiGroups: [""] | ||||||
|  |   resources: [events] | ||||||
|  |   verbs: [create] | ||||||
							
								
								
									
										12
									
								
								chart/bitwarden-crd-operator/templates/rolebinding.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								chart/bitwarden-crd-operator/templates/rolebinding.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | apiVersion: rbac.authorization.k8s.io/v1 | ||||||
|  | kind: ClusterRoleBinding | ||||||
|  | metadata: | ||||||
|  |   name: {{ include "bitwarden-crd-operator.serviceAccountName" . }}-binding | ||||||
|  | subjects: | ||||||
|  | - kind: ServiceAccount | ||||||
|  |   name: {{ include "bitwarden-crd-operator.serviceAccountName" . }} | ||||||
|  |   namespace: {{ .Release.Namespace }} | ||||||
|  | roleRef: | ||||||
|  |   kind: ClusterRole | ||||||
|  |   name: {{ include "bitwarden-crd-operator.serviceAccountName" . }}-role | ||||||
|  |   apiGroup: rbac.authorization.k8s.io | ||||||
| @@ -8,7 +8,7 @@ image: | |||||||
|   repository: lerentis/bitwarden-crd-operator |   repository: lerentis/bitwarden-crd-operator | ||||||
|   pullPolicy: IfNotPresent |   pullPolicy: IfNotPresent | ||||||
|   # Overrides the image tag whose default is the chart appVersion. |   # Overrides the image tag whose default is the chart appVersion. | ||||||
|   tag: "68ba68fb46c48c61e484de7ea5c19d1f14dec915" |   tag: "c33f80b448e0a7098eb075811108256ed52e5b21" | ||||||
|  |  | ||||||
| imagePullSecrets: [] | imagePullSecrets: [] | ||||||
| nameOverride: "" | nameOverride: "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user