Skip to content

Commit 03e816d

Browse files
authored
Merge pull request #65 from SQLJames/feature/ipfamily
2 parents a4e4e5e + 9264474 commit 03e816d

File tree

6 files changed

+70
-1
lines changed

6 files changed

+70
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog
22

3+
### V2.2.3
4+
5+
#### Non-Breaking Changes
6+
7+
- Adding support for ipFamilyPolicy, fixing [Issue 63](https://github.com/SQLJames/factorio-server-charts/issues/63)
8+
39
### V2.2.2
410

511
#### Non-Breaking Changes

charts/factorio-server-charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sources:
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 2.2.2
23+
version: 2.2.3
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ metadata:
1313
{{ $key }}: {{ $value | quote }}
1414
{{- end }}
1515
spec:
16+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version -}}
17+
{{- if .Values.rconAPI.ipFamilyPolicy }}
18+
ipFamilyPolicy: {{ .Values.rconAPI.ipFamilyPolicy }}
19+
{{- end }}
20+
{{- end }}
21+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version -}}
22+
{{- if .Values.rconAPI.ipFamilies }}
23+
ipFamilies: {{ toYaml .Values.rconAPI.ipFamilies | nindent 4 }}
24+
{{- end }}
25+
{{- end }}
1626
type: {{ .Values.rconAPI.type }}
1727
ports:
1828
- name: http

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ metadata:
1313
{{ $key }}: {{ $value | quote }}
1414
{{- end }}
1515
spec:
16+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version -}}
17+
{{- if .Values.rcon.ipFamilyPolicy }}
18+
ipFamilyPolicy: {{ .Values.rcon.ipFamilyPolicy }}
19+
{{- end }}
20+
{{- end }}
21+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version -}}
22+
{{- if .Values.rcon.ipFamilies }}
23+
ipFamilies: {{ toYaml .Values.rcon.ipFamilies | nindent 4 }}
24+
{{- end }}
25+
{{- end }}
1626
type: {{ .Values.rcon.type }}
1727
ports:
1828
- name: rcon

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ metadata:
1414
{{- end }}
1515
{{- end }}
1616
spec:
17+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version -}}
18+
{{- if .Values.service.ipFamilyPolicy }}
19+
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
20+
{{- end }}
21+
{{- end }}
22+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version -}}
23+
{{- if .Values.service.ipFamilies }}
24+
ipFamilies: {{ toYaml .Values.service.ipFamilies | nindent 4 }}
25+
{{- end }}
26+
{{- end }}
1727
type: {{ .Values.service.type }}
1828
{{- if .Values.service.externalTrafficPolicy}}
1929
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}

charts/factorio-server-charts/values.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ nodeSelector: {}
4848
## The best way ist to define a ClusterIP service and define one or more externalIPs. Of course this IPs must be available on the node the factorio pod runs on!
4949
service:
5050
type: NodePort
51+
## Represents the dual-stack-ness requested or required by this Service. Possible values are
52+
## SingleStack, PreferDualStack or RequireDualStack.
53+
## The ipFamilies and clusterIPs fields depend on the value of this field.
54+
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
55+
ipFamilyPolicy: "SingleStack"
56+
57+
## List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically
58+
## based on cluster configuration and the ipFamilyPolicy field.
59+
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
60+
ipFamilies:
61+
- IPv4
5162
port: 31497
5263
## If you are able to map an external IP, set it here
5364
# externalIPs:
@@ -332,6 +343,17 @@ port_fixer:
332343
## @param rcon.port RCON service external port
333344
# Password and port for the rcon service
334345
rcon:
346+
## Represents the dual-stack-ness requested or required by this Service. Possible values are
347+
## SingleStack, PreferDualStack or RequireDualStack.
348+
## The ipFamilies and clusterIPs fields depend on the value of this field.
349+
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
350+
ipFamilyPolicy: "SingleStack"
351+
352+
## List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically
353+
## based on cluster configuration and the ipFamilyPolicy field.
354+
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
355+
ipFamilies:
356+
- IPv4
335357
external: true
336358
type: LoadBalancer
337359
serviceAnnotations: {}
@@ -359,6 +381,17 @@ rcon:
359381
## @param rconAPI.ingress.tls.enabled Enable or disable TLS for the Ingress
360382
## @param rconAPI.ingress.tls.secretName Kubernetes Secret name for TLS certificates used by the Ingress
361383
rconAPI:
384+
## Represents the dual-stack-ness requested or required by this Service. Possible values are
385+
## SingleStack, PreferDualStack or RequireDualStack.
386+
## The ipFamilies and clusterIPs fields depend on the value of this field.
387+
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
388+
ipFamilyPolicy: "SingleStack"
389+
390+
## List of IP families (e.g. IPv4, IPv6) assigned to the service. This field is usually assigned automatically
391+
## based on cluster configuration and the ipFamilyPolicy field.
392+
## Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
393+
ipFamilies:
394+
- IPv4
362395
enabled: false
363396
image:
364397
repository: "ghcr.io/nekomeowww/factorio-rcon-api"

0 commit comments

Comments
 (0)