Skip to content

Commit cef74e8

Browse files
heartex/label-studio: PLT-687: Add deploymentAnnotations for rqworkers (#62)
1 parent 49ca668 commit cef74e8

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

heartex/label-studio/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Changelog
2+
3+
## 1.9.7
4+
### Improvements
5+
* Add deployment annotations for rq workers using `.Values.rqworker.deploymentAnnotations`.
6+
27
## 1.9.6
38
### Fixes
49
* Add `scheme` field to readinessProbe and livenessProbe for nginx container.

heartex/label-studio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ home: https://labelstud.io/
55
type: application
66
icon: https://raw.githubusercontent.com/heartexlabs/label-studio/master/images/logo.png
77
# Chart version
8-
version: 1.9.6
8+
version: 1.9.7
99
# Label Studio release version
1010
appVersion: "1.16.0"
1111
kubeVersion: ">= 1.14.0-0"

heartex/label-studio/templates/rqworker-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ apiVersion: apps/v1
55
kind: Deployment
66
metadata:
77
name: {{ include "ls-rqworker.fullname" $ }}-{{ $queue_name }}
8+
{{- with .Values.rqworker.deploymentAnnotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
labels:
913
app.kubernetes.io/name: {{ include "ls-rqworker.name" $ }}-{{ $queue_name }}
1014
{{- include "ls-rqworker.labels" $ | nindent 4 }}

heartex/label-studio/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@
831831
},
832832
"additionalProperties": true
833833
},
834+
"deploymentAnnotations": {
835+
"type": "object",
836+
"additionalProperties": true
837+
},
834838
"queues": {
835839
"type": "object",
836840
"properties": {

heartex/label-studio/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ rqworker:
414414
deploymentStrategy:
415415
type: Recreate
416416

417+
deploymentAnnotations: { }
418+
417419
queues:
418420
high:
419421
replicas: 1

0 commit comments

Comments
 (0)