Skip to content

Commit

Permalink
Add extraPodSpec to allow customizing Pods
Browse files Browse the repository at this point in the history
  • Loading branch information
josephshanak committed Apr 27, 2024
1 parent 2b653c6 commit 09b29b3
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/mc-router/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.extraPodSpec }}
{{ $key }}: {{ tpl $value $ }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/mc-router/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@
]
}
}
},
"extraPodSpec": {
"type": "object"
}
}
}
10 changes: 10 additions & 0 deletions charts/mc-router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ extraEnv: {}
# fieldRef:
# fieldPath: status.hostIP

# Extra fields to set on the pod
#
# Fields set here will be added to the end of the Pod spec
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
# that are not already set by the chart.
#
# The value of the field will be interpretted as a template.
extraPodSpec: {}
# priorityClassName: 'my-priority-class'

# Array of extra objects to deploy with the release.
# This value is evaluated as a template
extraDeploy: []
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft-bedrock/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ spec:
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- range $key, $value := .Values.extraPodSpec }}
{{ $key }}: {{ tpl $value $ }}
{{- end }}
{{- if .Values.workloadAsStatefulSet }}
volumeClaimTemplates:
{{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.existingClaim) }}
Expand Down
10 changes: 10 additions & 0 deletions charts/minecraft-bedrock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ sidecarContainers: ""
# - vers=4
extraVolumes: []

# Extra fields to set on the pod
#
# Fields set here will be added to the end of the Pod spec
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
# that are not already set by the chart.
#
# The value of the field will be interpretted as a template.
extraPodSpec: {}
# priorityClassName: 'my-priority-class'

## Array of extra objects to deploy with the release
##
# extraDeploy:
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,6 @@ spec:
{{- if .Values.tolerations }}
tolerations: {{ toYaml .Values.tolerations | nindent 8 }}
{{- end }}
{{- range $key, $value := .Values.extraPodSpec }}
{{ $key }}: {{ tpl $value $ }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/minecraft-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ sidecarContainers: []
# - vers=4
extraVolumes: []

# Extra fields to set on the pod
#
# Fields set here will be added to the end of the Pod spec
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
# that are not already set by the chart.
#
# The value of the field will be interpretted as a template.
extraPodSpec: {}
# priorityClassName: 'my-priority-class'

minecraftProxy:
# This can be one of "BUNGEECORD", "WATERFALL", "VELOCITY", "CUSTOM"
type: BUNGEECORD
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ spec:
{{- toYaml .volumes | nindent 6 }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.extraPodSpec }}
{{ $key }}: {{ tpl $value $ }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@
"type": "string"
}
}
},
"extraPodSpec": {
"type": "object"
}
}
}
12 changes: 12 additions & 0 deletions charts/minecraft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ extraVolumes: []
# }
extraDeploy: []

## Extra fields to set on the pod
##
## Fields set here will be added to the end of the Pod spec
## Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
## that are not already set by the chart.
##
## The value of the field will be interpretted as a template.
##
# extraPodSpec:
# priorityClassName: 'my-priority-class'
extraPodSpec: {}

minecraftServer:
# This must be overridden, since we can't accept this for the user.
eula: "FALSE"
Expand Down
3 changes: 3 additions & 0 deletions charts/rcon-web-admin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- range $key, $value := .Values.extraPodSpec }}
{{ $key }}: {{ tpl $value $ }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/rcon-web-admin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ tolerations: []

affinity: {}

# Extra fields to set on the pod
#
# Fields set here will be added to the end of the Pod spec
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
# that are not already set by the chart.
#
# The value of the field will be interpretted as a template.
extraPodSpec: {}
# priorityClassName: 'my-priority-class'

rconWeb:
# Sets the initial user as an admin
isAdmin: false
Expand Down

0 comments on commit 09b29b3

Please sign in to comment.