Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Merge branch 'elastic:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
framsouza authored Feb 8, 2022
2 parents 06dcbbd + 5b4f789 commit bb75c11
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
15 changes: 7 additions & 8 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"upstream": "elastic/helm-charts",
"all": true,
"prFilter": "label:need-backport",
"sourcePRLabels": [
"backported"
],
"targetBranchChoices": [
"6.8",
"7.16",
"7.x"
"7.17"
],
"all": true,
"prFilter": "label:need-backport",
"targetPRLabels": [
"backport"
],
"sourcePRLabels": [
"backported"
]
"upstream": "elastic/helm-charts"
}
3 changes: 3 additions & 0 deletions apm-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
labels:
app: apm-server
release: {{ .Release.Name | quote }}
{{- range $key, $value := .Values.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
Expand Down
4 changes: 3 additions & 1 deletion apm-server/tests/apmserver_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def test_adding_pod_labels():
"""
r = helm_template(config)
assert (
r["deployment"][name]["metadata"]["labels"]["app.kubernetes.io/name"]
r["deployment"][name]["spec"]["template"]["metadata"]["labels"][
"app.kubernetes.io/name"
]
== "apm-server"
)

Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.maxUnavailable }}
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.service.enabled -}}
---
kind: Service
apiVersion: v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.tests.enabled -}}
---
apiVersion: v1
kind: Pod
metadata:
Expand Down

0 comments on commit bb75c11

Please sign in to comment.