Skip to content

Commit

Permalink
Use default selector
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Jan 27, 2025
1 parent d7df814 commit f445c49
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
14 changes: 0 additions & 14 deletions charts/studio/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{- define "studio-datachain-worker-job.labels" -}}
helm.sh/chart: {{ include "studio.chart" . }}
{{ include "studio-datachain-worker-job.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{- define "studio-worker.labels" -}}
helm.sh/chart: {{ include "studio.chart" . }}
{{ include "studio-worker.selectorLabels" . }}
Expand Down Expand Up @@ -144,11 +135,6 @@ app.kubernetes.io/name: studio-datachain-worker
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "studio-datachain-worker-job.selectorLabels" -}}
app.kubernetes.io/name: studio-datachain-worker-job
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "studio-ui.selectorLabels" -}}
app.kubernetes.io/name: studio-ui
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
5 changes: 0 additions & 5 deletions charts/studio/templates/job-studio-datachain-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ metadata:
{{- include "studio-datachain-worker.labels" . | nindent 4 }}
spec:
suspend: true # this Job will never run; it's a template to create new Jobs
selector:
matchLabels:
{{- include "studio-datachain-worker-job.selectorLabels" . | nindent 6 }}
activeDeadlineSeconds: {{ (.Values.studioDatachainWorkerJobTemplate).activeDeadlineSeconds }}
ttlSecondsAfterFinished: {{ (.Values.studioDatachainWorkerJobTemplate).ttlSecondsAfterFinished }}
backoffLimit: {{ (.Values.studioDatachainWorkerJobTemplate).backoffLimit }}
Expand All @@ -18,8 +15,6 @@ spec:
{{- with (.Values.studioDatachainWorkerJobTemplate).podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "studio-datachain-worker-job.selectorLabels" . | nindent 8 }}
spec:
restartPolicy: Never
{{- with .Values.imagePullSecrets }}
Expand Down

0 comments on commit f445c49

Please sign in to comment.