Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from amine-bs/master
Browse files Browse the repository at this point in the history
edit label-studio
  • Loading branch information
fcomte authored Oct 22, 2022
2 parents d77735f + 9e009da commit 15dae8a
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/label-studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.2.1
version: 2.2.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
11 changes: 11 additions & 0 deletions charts/label-studio/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,24 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.service.image.repository }}:{{ .Values.service.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.service.image.pullPolicy }}

envFrom:
{{- if .Values.s3.enabled }}
- configMapRef:
name: {{ include "library-chart.configMapNameS3" . }}
{{- end }}

env:
- name: LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK
value: "true"
- name: LABEL_STUDIO_USERNAME
value: {{ .Values.security.username }}
- name: LABEL_STUDIO_PASSWORD
value: {{ .Values.security.password }}
- name: S3_ENDPOINT
value: "https://{{ .Values.s3.endpoint }}"
- name: S3-region
value: {{ .Values.s3.defaultRegion }}
ports:
- name: http
containerPort: 8080
Expand Down
81 changes: 81 additions & 0 deletions charts/label-studio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,87 @@
}
}
}
},
"s3": {
"description": "Configuration of temporary identity",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Add S3 temporary identity inside your environment",
"default": true
},
"accessKeyId": {
"description": "AWS Access Key",
"type": "string",
"x-form": {
"value": "{{s3.AWS_ACCESS_KEY_ID}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{s3.AWS_ACCESS_KEY_ID}}"
},
"hidden": {
"value": false,
"path": "s3/enabled"
}
},
"endpoint": {
"description": "AWS S3 Endpoint",
"type": "string",
"x-form": {
"value": "{{s3.AWS_S3_ENDPOINT}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{s3.AWS_S3_ENDPOINT}}"
},
"hidden": {
"value": false,
"path": "s3/enabled"
}
},
"defaultRegion": {
"description": "AWS S3 default region",
"type": "string",
"x-form": {
"value": "{{s3.AWS_DEFAULT_REGION}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{s3.AWS_DEFAULT_REGION}}"
},
"hidden": {
"value": false,
"path": "s3/enabled"
}
},
"secretAccessKey": {
"description": "AWS S3 secret access key",
"type": "string",
"x-form": {
"value": "{{s3.AWS_SECRET_ACCESS_KEY}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{s3.AWS_SECRET_ACCESS_KEY}}"
},
"hidden": {
"value": false,
"path": "s3/enabled"
}
},
"sessionToken": {
"description": "AWS S3 session Token",
"type": "string",
"x-form": {
"value": "{{s3.AWS_SESSION_TOKEN}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{s3.AWS_SESSION_TOKEN}}"
},
"hidden": {
"value": false,
"path": "s3/enabled"
}
}
}
},
"ingress": {
"type": "object",
Expand Down
12 changes: 12 additions & 0 deletions charts/label-studio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ service:
liveness:
enabled : "true"

s3:
# Specifies whether a config map should be created
enabled: false
# The name of the configmap to use.
# If not set and create is true, a name is generated using the fullname template
configMapName: ""
accessKeyId: ""
endpoint: "minio.lab.sspcloud.fr"
defaultRegion: "us-east-1"
secretAccessKey: ""
sessionToken: ""

security:
password: changeme
username: username
Expand Down

0 comments on commit 15dae8a

Please sign in to comment.