You've already forked helm-actions
							
							feat(chart): add replicas parameter for multiple act-runner pods (#24)
This PR adds a parameter to add multiple pods of act-runner from a single values.yaml file (to the statefulSet). Suggested by: https://gitea.com/gitea/helm-actions/pulls/23 Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/24 Reviewed-by: ChristopherHX <christopherhx@noreply.gitea.com> Co-authored-by: Daan Selen <dselen@nerthus.nl> Co-committed-by: Daan Selen <dselen@nerthus.nl>
This commit is contained in:
		
				
					committed by
					
						
						ChristopherHX
					
				
			
			
				
	
			
			
			
						parent
						
							75bf520697
						
					
				
				
					commit
					7ad8e12e45
				
			@@ -15,6 +15,7 @@ If `.Values.image.rootless: true`, then the following will occur. In case you us
 | 
				
			|||||||
| `enabled`                                 | Create an act runner StatefulSet.                                                                                                           | `false`                        |
 | 
					| `enabled`                                 | Create an act runner StatefulSet.                                                                                                           | `false`                        |
 | 
				
			||||||
| `init.image.repository`                   | The image used for the init containers                                                                                                      | `busybox`                      |
 | 
					| `init.image.repository`                   | The image used for the init containers                                                                                                      | `busybox`                      |
 | 
				
			||||||
| `init.image.tag`                          | The image tag used for the init containers                                                                                                  | `1.37.0`                       |
 | 
					| `init.image.tag`                          | The image tag used for the init containers                                                                                                  | `1.37.0`                       |
 | 
				
			||||||
 | 
					| `statefulset.replicas`                    | the amount of (replica) runner pods deployed                                                                                                | `1`                            |
 | 
				
			||||||
| `statefulset.annotations`                 | Act runner annotations                                                                                                                      | `{}`                           |
 | 
					| `statefulset.annotations`                 | Act runner annotations                                                                                                                      | `{}`                           |
 | 
				
			||||||
| `statefulset.labels`                      | Act runner labels                                                                                                                           | `{}`                           |
 | 
					| `statefulset.labels`                      | Act runner labels                                                                                                                           | `{}`                           |
 | 
				
			||||||
| `statefulset.resources`                   | Act runner resources                                                                                                                        | `{}`                           |
 | 
					| `statefulset.resources`                   | Act runner resources                                                                                                                        | `{}`                           |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,6 +16,7 @@ metadata:
 | 
				
			|||||||
  name: {{ include "gitea.actions.fullname" . }}-act-runner
 | 
					  name: {{ include "gitea.actions.fullname" . }}-act-runner
 | 
				
			||||||
  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
					  namespace: {{ .Values.namespace | default .Release.Namespace }}
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
 | 
					  replicas: {{ .Values.statefulset.replicas | default 1 }}
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    matchLabels:
 | 
					    matchLabels:
 | 
				
			||||||
      {{- include "gitea.actions.selectorLabels.actRunner" . | nindent 6 }}
 | 
					      {{- include "gitea.actions.selectorLabels.actRunner" . | nindent 6 }}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,6 +5,7 @@
 | 
				
			|||||||
## @param enabled Create an act runner StatefulSet.
 | 
					## @param enabled Create an act runner StatefulSet.
 | 
				
			||||||
## @param init.image.repository The image used for the init containers
 | 
					## @param init.image.repository The image used for the init containers
 | 
				
			||||||
## @param init.image.tag The image tag used for the init containers
 | 
					## @param init.image.tag The image tag used for the init containers
 | 
				
			||||||
 | 
					## @param statefulset.replicas the amount of (replica) runner pods deployed
 | 
				
			||||||
## @param statefulset.annotations Act runner annotations
 | 
					## @param statefulset.annotations Act runner annotations
 | 
				
			||||||
## @param statefulset.labels Act runner labels
 | 
					## @param statefulset.labels Act runner labels
 | 
				
			||||||
## @param statefulset.resources Act runner resources
 | 
					## @param statefulset.resources Act runner resources
 | 
				
			||||||
@@ -39,6 +40,7 @@
 | 
				
			|||||||
## @param giteaRootURL URL the act_runner registers and connect with
 | 
					## @param giteaRootURL URL the act_runner registers and connect with
 | 
				
			||||||
enabled: false
 | 
					enabled: false
 | 
				
			||||||
statefulset:
 | 
					statefulset:
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
  annotations: {}
 | 
					  annotations: {}
 | 
				
			||||||
  labels: {}
 | 
					  labels: {}
 | 
				
			||||||
  resources: {}
 | 
					  resources: {}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user