Skip to content

Commit 020eab4

Browse files
committed
Added replica scaling
1 parent 1bffd88 commit 020eab4

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ You can customize the values of the helm deployment by using the following Value
3939
| `pipelines.url` | The Azure base URL for your organization | `""` |
4040
| `pipelines.pat` | Personal Access Token (PAT) used by the agent to connect. | `""` |
4141
| `pipelines.pool` | Agent pool to which the Agent should register. | `""` |
42-
| `pipelines.agent.name` | The agent name | `""` - By default it takes the pod name |
4342
| `pipelines.agent.mountDocker` | Enable to mount the host `docker.sock` | `false` |
4443
| `pipelines.agent.workDir` | The work directory the agent should use | `_work` |
4544
| `serviceAccount.create` | Create ServiceAccount | `true` |

helm/azure-pipelines-agent/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ You can customize the values of the helm deployment by using the following Value
2626
| `pipelines.url` | The Azure base URL for your organization | `""` |
2727
| `pipelines.pat` | Personal Access Token (PAT) used by the agent to connect. | `""` |
2828
| `pipelines.pool` | Agent pool to which the Agent should register. | `""` |
29-
| `pipelines.agent.name` | The agent name | `""` - By default it takes the pod name |
3029
| `pipelines.agent.mountDocker` | Enable to mount the host `docker.sock` | `false` |
3130
| `pipelines.agent.workDir` | The work directory the agent should use | `_work` |
3231
| `serviceAccount.create` | Create ServiceAccount | `true` |

helm/azure-pipelines-agent/templates/statefulset.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
{{- include "azure-pipelines-agent.labels" . | nindent 4 }}
77
spec:
8-
replicas: 1
8+
replicas: {{ .Values.replicaCount }}
99
selector:
1010
matchLabels:
1111
{{- include "azure-pipelines-agent.selectorLabels" . | nindent 6 }}
@@ -42,16 +42,11 @@ spec:
4242
{{- end }}
4343
imagePullPolicy: {{ .Values.image.pullPolicy }}
4444
env:
45-
{{- if .Values.pipelines.agent.name }}
46-
- name: AZP_AGENT_NAME
47-
value: {{ .Values.pipelines.agent.name | quote }}
48-
{{- else }}
4945
- name: AZP_AGENT_NAME
5046
valueFrom:
5147
fieldRef:
5248
apiVersion: v1
5349
fieldPath: metadata.name
54-
{{- end }}
5550
- name: AZP_URL
5651
value: {{ .Values.pipelines.url | quote }}
5752
- name: AZP_POOL

helm/azure-pipelines-agent/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5+
replicaCount: 1
6+
57
image:
68
repository: emberstack/azure-pipelines-agent
79
tag: ""

0 commit comments

Comments
 (0)