Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add podAnnotations to Helm templates for injecting user-specified pod. #1589

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ spec:
annotations:
{{- include "prometheus.annotations" (dict "port" .Values.evaluator.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- if .Values.evaluator.podAnnotations }}
{{- toYaml .Values.evaluator.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: evaluator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
annotations:
{{- include "prometheus.annotations" (dict "port" .Values.function.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- if .Values.function.podAnnotations }}
{{- toYaml .Values.function.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: matchfunction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ function:
replicas: 3
portType: ClusterIP
image: openmatch-mmf-go-soloduel
podAnnotations: {}

evaluator:
enabled: false
replicas: 3
portType: ClusterIP
image: openmatch-default-evaluator
podAnnotations: {}

evaluatorConfigs:
# We use harness to implement the MMFs. MMF itself only requires one configmap but harness expects two,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- include "prometheus.annotations" (dict "port" .Values.scaleBackend.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- if .Values.scaleBackend.podAnnotations }}
{{- toYaml .Values.scaleBackend.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: scaleBackend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- include "prometheus.annotations" (dict "port" .Values.scaleFrontend.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- if .Values.scaleFrontend.podAnnotations }}
{{- toYaml .Values.scaleFrontend.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: scaleFrontend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ scaleFrontend:
httpPort: 51509
replicas: 1
image: openmatch-scale-frontend
podAnnotations: {}

scaleBackend:
hostName:
httpPort: 51509
replicas: 1
image: openmatch-scale-backend
podAnnotations: {}

configs:
default:
Expand Down
3 changes: 3 additions & 0 deletions install/helm/open-match/templates/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- include "prometheus.annotations" (dict "port" .Values.backend.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- if .Values.backend.podAnnotations }}
{{- toYaml .Values.backend.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: backend
Expand Down
3 changes: 3 additions & 0 deletions install/helm/open-match/templates/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- include "prometheus.annotations" (dict "port" .Values.frontend.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- if .Values.frontend.podAnnotations }}
{{- toYaml .Values.frontend.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: frontend
Expand Down
3 changes: 3 additions & 0 deletions install/helm/open-match/templates/query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- include "prometheus.annotations" (dict "port" .Values.query.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- if .Values.query.podAnnotations }}
{{- toYaml .Values.query.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: query
Expand Down
3 changes: 3 additions & 0 deletions install/helm/open-match/templates/swaggerui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
namespace: {{ .Release.Namespace }}
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- if .Values.swaggerui.podAnnotations }}
{{- toYaml .Values.swaggerui.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: swaggerui
Expand Down
3 changes: 3 additions & 0 deletions install/helm/open-match/templates/synchronizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ spec:
annotations:
{{- include "openmatch.chartmeta" . | nindent 8 }}
{{- include "prometheus.annotations" (dict "port" .Values.synchronizer.httpPort "prometheus" .Values.global.telemetry.prometheus) | nindent 8 }}
{{- if .Values.synchronizer.podAnnotations }}
{{- toYaml .Values.synchronizer.podAnnotations | nindent 8 }}
{{- end }}
labels:
app: {{ template "openmatch.name" . }}
component: synchronizer
Expand Down
11 changes: 11 additions & 0 deletions install/helm/open-match/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,50 +43,61 @@
#
# # Specifies the image name to be used in a Kubernetes pod for `query` compoenent.
# image: openmatch-query
#
# # Specifies annotations to be used in a Kubernetes pod for `query` compoenent.
# podAnnotations:
# key1: value1
swaggerui: &swaggerui
hostName:
httpPort: 51500
portType: ClusterIP
replicas: 1
image: openmatch-swaggerui
podAnnotations: {}
query: &query
hostName:
grpcPort: 50503
httpPort: 51503
portType: ClusterIP
replicas: 3
image: openmatch-query
podAnnotations: {}
frontend: &frontend
hostName:
grpcPort: 50504
httpPort: 51504
portType: ClusterIP
replicas: 3
image: openmatch-frontend
podAnnotations: {}
backend: &backend
hostName:
grpcPort: 50505
httpPort: 51505
portType: ClusterIP
replicas: 3
image: openmatch-backend
podAnnotations: {}
synchronizer: &synchronizer
hostName:
grpcPort: 50506
httpPort: 51506
portType: ClusterIP
replicas: 1
image: openmatch-synchronizer
podAnnotations: {}
evaluator: &evaluator
hostName:
grpcPort: 50508
httpPort: 51508
replicas: 3
podAnnotations: {}
function: &function
hostName:
grpcPort: 50502
httpPort: 51502
replicas: 3
podAnnotations: {}

# Specifies the location and name of the Open Match application-level config volumes.
# Used in template: `openmatch.volumemounts.configs` and `openmatch.volumes.configs` under `templates/_helpers.tpl` file.
Expand Down
11 changes: 11 additions & 0 deletions install/helm/open-match/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,50 +43,61 @@
#
# # Specifies the image name to be used in a Kubernetes pod for `query` compoenent.
# image: openmatch-query
#
# # Specifies annotations to be used in a Kubernetes pod for `query` compoenent.
# podAnnotations:
# key1: value1
swaggerui: &swaggerui
hostName:
httpPort: 51500
portType: ClusterIP
replicas: 1
image: openmatch-swaggerui
podAnnotations: {}
query: &query
hostName:
grpcPort: 50503
httpPort: 51503
portType: ClusterIP
replicas: 3
image: openmatch-query
podAnnotations: {}
frontend: &frontend
hostName:
grpcPort: 50504
httpPort: 51504
portType: ClusterIP
replicas: 3
image: openmatch-frontend
podAnnotations: {}
backend: &backend
hostName:
grpcPort: 50505
httpPort: 51505
portType: ClusterIP
replicas: 3
image: openmatch-backend
podAnnotations: {}
synchronizer: &synchronizer
hostName:
grpcPort: 50506
httpPort: 51506
portType: ClusterIP
replicas: 1
image: openmatch-synchronizer
podAnnotations: {}
evaluator: &evaluator
hostName:
grpcPort: 50508
httpPort: 51508
replicas: 3
podAnnotations: {}
function: &function
hostName:
grpcPort: 50502
httpPort: 51502
replicas: 3
podAnnotations: {}

# Specifies the location and name of the Open Match application-level config volumes.
# Used in template: `openmatch.volumemounts.configs` and `openmatch.volumes.configs` under `templates/_helpers.tpl` file.
Expand Down