Skip to content

Commit

Permalink
fix(chart): pod labels and annotations for patch-scaledobjects (#2274)
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
  • Loading branch information
VietND96 committed May 30, 2024
1 parent f2280e9 commit d5398b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@ kind: Job
metadata:
name: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
namespace: {{ .Release.Namespace }}
annotations:
{{- with $.Values.autoscaling.patchObjectFinalizers.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
deploymentName: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
annotations: &patch_objects_job_annotations
{{- with $.Values.autoscaling.patchObjectFinalizers.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels: &patch_objects_job_labels
app: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
app.kubernetes.io/name: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
{{- include "seleniumGrid.commonLabels" $ | nindent 4 }}
{{- with $.Values.customLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with $.Values.customLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
template:
metadata:
labels: *patch_objects_job_labels
annotations: *patch_objects_job_annotations
name: {{ template "seleniumGrid.keda.patchObjectsJob.fullname" $ }}
spec:
activeDeadlineSeconds: {{ $.Values.autoscaling.patchObjectFinalizers.activeDeadlineSeconds }}
Expand Down
6 changes: 0 additions & 6 deletions tests/charts/ci/base-resources-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
components:
router:
livenessProbe:
failureThreshold: 6
resources:
requests:
cpu: 100m
Expand All @@ -10,8 +8,6 @@ components:
cpu: 500m
memory: 2500Mi
distributor:
livenessProbe:
failureThreshold: 6
resources:
requests:
cpu: "1"
Expand Down Expand Up @@ -45,8 +41,6 @@ components:
memory: 512Mi

hub:
livenessProbe:
failureThreshold: 6
resources:
requests:
cpu: "1"
Expand Down

0 comments on commit d5398b7

Please sign in to comment.