Skip to content

Commit 18d8587

Browse files
author
James Rhoat
authored
Merge pull request #11 from rlex/add-service-annotations
Add annotations support
2 parents 1346681 + 86f54ec commit 18d8587

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The following table lists the configurable parameters of the `factorio-server-ch
5454
| image.tag | Overrides the image tag whose default is the chart appVersion. | `"latest"` |
5555
| securityContext.runAsUser | | `1000` |
5656
| securityContext.fsGroup | | `2000` |
57+
| service.annotations | Annotations for service | `{}` |
5758
| service.type | | `LoadBalancer` |
5859
| service.port | | `30000` |
5960
| resources | Compute Resources required by the operator container | `{"requests":{"cpu":"500m","memory":"512Mi"}}` |

charts/factorio-server-charts/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ metadata:
77
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
88
release: "{{ .Release.Name }}"
99
heritage: "{{ .Release.Service }}"
10+
annotations:
11+
{{- range $key, $value := .Values.service.annotations }}
12+
{{ $key }}: {{ $value | quote }}
13+
{{- end }}
1014
spec:
1115
type: {{ .Values.service.type }}
1216
ports:

charts/factorio-server-charts/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ service:
4141
# port: 34197
4242
## LoadBalancer setup
4343
# type: LoadBalancer
44+
annotations: {}
4445

4546

4647
## Compute Resources required by the operator container

0 commit comments

Comments
 (0)