Skip to content

Commit 9f63684

Browse files
committed
feat: label-studio构建脚本
1 parent 2f0d76f commit 9f63684

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

deployment/helm/label-studio/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ spec:
2121
spec:
2222
containers:
2323
- name: label-studio
24+
{{- if .Values.global.imageRegistry }}
25+
image: "{{ .Values.global.imageRegistry | trimSuffix "/" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
26+
{{- else }}
2427
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
28+
{{- end }}
2529
imagePullPolicy: {{ .Values.image.pullPolicy }}
2630
args: ["label-studio-uwsgi"]
2731
env:

deployment/helm/label-studio/templates/postgres.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ spec:
3131
spec:
3232
containers:
3333
- name: postgres
34+
{{- if .Values.global.imageRegistry }}
35+
image: "{{ .Values.global.imageRegistry | trimSuffix "/" }}/{{ .Values.postgres.image.repository }}:{{ .Values.postgres.image.tag }}"
36+
{{- else }}
3437
image: "{{ .Values.postgres.image.repository }}:{{ .Values.postgres.image.tag }}"
38+
{{- end }}
3539
imagePullPolicy: {{ .Values.postgres.image.pullPolicy }}
3640
env:
3741
- name: POSTGRES_HOST_AUTH_METHOD

deployment/helm/label-studio/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ fullnameOverride: label-studio
44

55
replicaCount: 1
66

7+
global:
8+
imageRegistry: ""
9+
710
image:
811
repository: heartexlabs/label-studio
912
tag: "latest"

0 commit comments

Comments
 (0)