Skip to content

Commit

Permalink
Add ability to specify additional labels for controller and extension…
Browse files Browse the repository at this point in the history
… pods (#4057)

* Add helm values for adding labels to controller and extensions pods

* Update site documentation for helm installation of agones operator to include label values for controller and extensions

* Hide changes of controller and extensions helm values documnetation under feature shortcode
  • Loading branch information
R4oulDuk3 authored Dec 7, 2024
1 parent 171def9 commit dc6d4a0
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 1 deletion.
3 changes: 3 additions & 0 deletions install/helm/agones/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ spec:
app: {{ template "agones.name" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.agones.controller.labels }}
{{- toYaml .Values.agones.controller.labels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.agones.controller.topologySpreadConstraints }}
topologySpreadConstraints:
Expand Down
3 changes: 3 additions & 0 deletions install/helm/agones/templates/extensions-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
app: {{ template "agones.name" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.agones.extensions.labels }}
{{- toYaml .Values.agones.extensions.labels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.agones.extensions.topologySpreadConstraints }}
topologySpreadConstraints:
Expand Down
2 changes: 2 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ agones:
# cpu: 1
# memory: 256Mi
nodeSelector: {}
labels: {}
annotations: {}
tolerations:
- key: "agones.dev/agones-system"
Expand Down Expand Up @@ -105,6 +106,7 @@ agones:
# memory: 256Mi
nodeSelector: {}
annotations: {}
labels: {}
# Determines if the Agones extensions should operate in hostNetwork mode.
#
# This setting is necessary for certain managed Kubernetes clusters (e.g., AWS EKS) that use custom
Expand Down
Loading

0 comments on commit dc6d4a0

Please sign in to comment.