Skip to content

Commit

Permalink
[heartex/label-studio] Allow deployment annotations to be added. (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
gawbul authored Jun 13, 2024
1 parent d8bb933 commit cc8538c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions heartex/label-studio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

*

## 1.4.9
### Improvements
* Add support for deployment annotations using .Values.app.deploymentAnnotations

### Fixes
## 1.4.7
### Fixes
Expand Down
2 changes: 1 addition & 1 deletion heartex/label-studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ home: https://labelstud.io/
type: application
icon: https://raw.githubusercontent.com/heartexlabs/label-studio/master/images/logo.png
# Chart version
version: 1.4.8
version: 1.4.9
# Label Studio release version
appVersion: "1.12.1"
kubeVersion: ">= 1.14.0-0"
Expand Down
1 change: 1 addition & 0 deletions heartex/label-studio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ directory.
|------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|--------------------------|
| `app.args` | Override default container args (useful when using custom images) | `["label-studio-uwsgi"]` |
| `app.deploymentStrategy.type` | Deployment strategy type | `RollingUpdate` |
| `app.deploymentAnnotations` | Deployment annotations | `{}` |
| `app.replicas` | Amount of app pod replicas | `1` |
| `app.NameOverride` | String to partially override release template name | `""` |
| `app.FullnameOverride` | String to fully override release template name | `""` |
Expand Down
4 changes: 4 additions & 0 deletions heartex/label-studio/templates/app-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "ls-app.fullname" . }}
{{- with .Values.app.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "ls-app.labels" . | nindent 4 }}
{{- if .Values.app.labels }}
Expand Down
4 changes: 4 additions & 0 deletions heartex/label-studio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@
},
"additionalProperties": true
},
"deploymentAnnotations": {
"type": "object",
"additionalProperties": true
},
"replicas": {
"type": "integer"
},
Expand Down
2 changes: 2 additions & 0 deletions heartex/label-studio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ app:
deploymentStrategy:
type: RollingUpdate

deploymentAnnotations: { }

replicas: 1

NameOverride: ""
Expand Down

0 comments on commit cc8538c

Please sign in to comment.