mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Fixed: agent selector label
This commit is contained in:
parent
4e3169c033
commit
10ac567bf9
@ -45,6 +45,21 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels (agentk8sglue)
|
||||||
|
*/}}
|
||||||
|
{{- define "agentk8sglue.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "clearmlAgent.chart" . }}
|
||||||
|
{{ include "agentk8sglue.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- if $.Values.agentk8sglue.labels }}
|
||||||
|
{{ toYaml $.Values.agentk8sglue.labels }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common annotations
|
Common annotations
|
||||||
*/}}
|
*/}}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "clearmlAgent.fullname" . }}
|
name: {{ include "clearmlAgent.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "clearmlAgent.labels" . | nindent 4 }}
|
{{- include "agentk8sglue.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- include "clearmlAgent.annotations" . | nindent 4 }}
|
{{- include "clearmlAgent.annotations" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
@ -17,7 +17,7 @@ spec:
|
|||||||
checksum/config: {{ printf "%s" .Values | sha256sum }}
|
checksum/config: {{ printf "%s" .Values | sha256sum }}
|
||||||
{{- include "clearmlAgent.annotations" . | nindent 8 }}
|
{{- include "clearmlAgent.annotations" . | nindent 8 }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "clearmlAgent.labels" . | nindent 8 }}
|
{{- include "agentk8sglue.labels" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.imageCredentials.enabled }}
|
{{- if .Values.imageCredentials.enabled }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user