Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef6b865

Browse files
authoredApr 27, 2024
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

‎charts/minecraft/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
3-
version: 4.16.0
3+
version: 4.17.0
44
appVersion: SeeValues
55
home: https://minecraft.net/
66
description: Minecraft server

‎charts/minecraft/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ spec:
481481
{{- toYaml .volumes | nindent 6 }}
482482
{{- end }}
483483
{{- end }}
484+
{{- range $key, $value := .Values.extraPodSpec }}
485+
{{ $key }}: {{ tpl $value $ }}
486+
{{- end }}
484487
{{- if .Values.nodeSelector }}
485488
nodeSelector:
486489
{{ toYaml .Values.nodeSelector | indent 8 }}

‎charts/minecraft/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@
192192
"type": "string"
193193
}
194194
}
195+
},
196+
"extraPodSpec": {
197+
"type": "object"
195198
}
196199
}
197200
}

‎charts/minecraft/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@ extraVolumes: []
131131
# }
132132
extraDeploy: []
133133

134+
## Extra fields to set on the pod
135+
##
136+
## Fields set here will be added to the end of the Pod spec
137+
## Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
138+
## that are not already set by the chart.
139+
##
140+
## The value of the field will be interpretted as a template.
141+
##
142+
# extraPodSpec:
143+
# priorityClassName: 'my-priority-class'
144+
extraPodSpec: {}
145+
134146
minecraftServer:
135147
# This must be overridden, since we can't accept this for the user.
136148
eula: "FALSE"

0 commit comments

Comments
 (0)
Please sign in to comment.