Skip to content

Commit ef6b865

Browse files
authored
Add extraPodSpec to allow customizing Pods (#205)
1 parent 2b653c6 commit ef6b865

File tree

14 files changed

+64
-4
lines changed

14 files changed

+64
-4
lines changed

charts/mc-router/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: mc-router
3-
version: 1.1.0
3+
version: 1.2.0
44
appVersion: 1.20.0
55
home: https://github.com/itzg/mc-router
66
description: Routes Minecraft client connections to backend servers based upon the requested server address.

charts/mc-router/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,6 @@ spec:
164164
{{- end }}
165165
{{- end }}
166166
{{- end }}
167+
{{- range $key, $value := .Values.extraPodSpec }}
168+
{{ $key }}: {{ tpl $value $ }}
169+
{{- end }}

charts/mc-router/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@
249249
]
250250
}
251251
}
252+
},
253+
"extraPodSpec": {
254+
"type": "object"
252255
}
253256
}
254257
}

charts/mc-router/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ extraEnv: {}
114114
# fieldRef:
115115
# fieldPath: status.hostIP
116116

117+
# Extra fields to set on the pod
118+
#
119+
# Fields set here will be added to the end of the Pod spec
120+
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
121+
# that are not already set by the chart.
122+
#
123+
# The value of the field will be interpretted as a template.
124+
extraPodSpec: {}
125+
# priorityClassName: 'my-priority-class'
126+
117127
# Array of extra objects to deploy with the release.
118128
# This value is evaluated as a template
119129
extraDeploy: []

charts/minecraft-bedrock/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: minecraft-bedrock
3-
version: 2.6.0
3+
version: 2.7.0
44
appVersion: SeeValues
55
home: https://minecraft.net/
66
description: Minecraft server

charts/minecraft-bedrock/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ spec:
230230
tolerations:
231231
{{ toYaml .Values.tolerations | indent 8 }}
232232
{{- end }}
233+
{{- range $key, $value := .Values.extraPodSpec }}
234+
{{ $key }}: {{ tpl $value $ }}
235+
{{- end }}
233236
{{- if .Values.workloadAsStatefulSet }}
234237
volumeClaimTemplates:
235238
{{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.existingClaim) }}

charts/minecraft-bedrock/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ sidecarContainers: ""
9292
# - vers=4
9393
extraVolumes: []
9494

95+
# Extra fields to set on the pod
96+
#
97+
# Fields set here will be added to the end of the Pod spec
98+
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
99+
# that are not already set by the chart.
100+
#
101+
# The value of the field will be interpretted as a template.
102+
extraPodSpec: {}
103+
# priorityClassName: 'my-priority-class'
104+
95105
## Array of extra objects to deploy with the release
96106
##
97107
# extraDeploy:

charts/minecraft-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: minecraft-proxy
3-
version: 3.6.1
3+
version: 3.7.0
44
appVersion: SeeValues
55
description: Minecraft proxy server (BungeeCord, Waterfall, Velocity, etc.)
66
keywords:

charts/minecraft-proxy/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,6 @@ spec:
209209
{{- if .Values.tolerations }}
210210
tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
211211
{{- end }}
212+
{{- range $key, $value := .Values.extraPodSpec }}
213+
{{ $key }}: {{ tpl $value $ }}
214+
{{- end }}

charts/minecraft-proxy/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ sidecarContainers: []
8383
# - vers=4
8484
extraVolumes: []
8585

86+
# Extra fields to set on the pod
87+
#
88+
# Fields set here will be added to the end of the Pod spec
89+
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
90+
# that are not already set by the chart.
91+
#
92+
# The value of the field will be interpretted as a template.
93+
extraPodSpec: {}
94+
# priorityClassName: 'my-priority-class'
95+
8696
minecraftProxy:
8797
# This can be one of "BUNGEECORD", "WATERFALL", "VELOCITY", "CUSTOM"
8898
type: BUNGEECORD

0 commit comments

Comments
 (0)