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

Commit ded806b

Browse files
committed
label studio x-onyxia
1 parent 9ab9d25 commit ded806b

File tree

2 files changed

+61
-31
lines changed

2 files changed

+61
-31
lines changed

charts/label-studio/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type: application
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 2.1.0
23+
version: 2.2.0
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

charts/label-studio/values.schema.json

+60-30
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"default": "changeme",
1313
"x-form": {
1414
"value": "{{project.password}}"
15+
},
16+
"x-onyxia": {
17+
"overwriteDefaultWith": "{{project.password}}"
1518
}
1619
},
1720
"username": {
@@ -20,45 +23,62 @@
2023
"default": "username",
2124
"x-form": {
2225
"value": "{{user.email}}"
26+
},
27+
"x-onyxia": {
28+
"overwriteDefaultWith": "{{user.email}}"
2329
}
2430
},
2531
"allowlist": {
26-
"type": "object",
27-
"description": "IP protection",
28-
"properties": {
29-
"enabled": {
30-
"type": "boolean",
31-
"title": "Enable IP protection",
32-
"description": "Only the configured set of IPs will be able to reach the service",
33-
"default": true,
34-
"x-form": {
35-
"value": "{{region.defaultIpProtection}}"
36-
}
32+
"type": "object",
33+
"description": "IP protection",
34+
"properties": {
35+
"enabled": {
36+
"type": "boolean",
37+
"title": "Enable IP protection",
38+
"description": "Only the configured set of IPs will be able to reach the service",
39+
"default": true,
40+
"x-form": {
41+
"value": "{{region.defaultIpProtection}}"
42+
},
43+
"x-onyxia": {
44+
"overwriteDefaultWith": "region.defaultIpProtection"
45+
}
46+
},
47+
"ip": {
48+
"type": "string",
49+
"description": "the allow list of IP is whitespace",
50+
"title": "Allowed IP",
51+
"default": "0.0.0.0/0",
52+
"x-form": {
53+
"value": "{{user.ip}}"
54+
},
55+
"x-onyxia": {
56+
"overwriteDefaultWith": "{{user.ip}}"
3757
},
38-
"ip": {
39-
"type": "string",
40-
"description": "the white list of IP is whitespace",
41-
"title": "Whitelist of IP",
42-
"x-form": {
43-
"value": "{{user.ip}}"
44-
}
58+
"hidden": {
59+
"value": false,
60+
"path": "security/allowlist/enabled"
4561
}
4662
}
63+
}
4764
},
4865
"networkPolicy": {
49-
"type": "object",
50-
"description": "Define access policy to the service",
51-
"properties": {
52-
"enabled": {
53-
"type": "boolean",
54-
"title": "Enable network policy",
55-
"description": "Only pod from the same namespace will be allowed",
56-
"default": true,
57-
"x-form": {
58-
"value": "{{region.defaultNetworkPolicy}}"
59-
}
66+
"type": "object",
67+
"description": "Define access policy to the service",
68+
"properties": {
69+
"enabled": {
70+
"type": "boolean",
71+
"title": "Enable network policy",
72+
"description": "Only pod from the same namespace will be allowed",
73+
"default": true,
74+
"x-form": {
75+
"value": "{{region.defaultNetworkPolicy}}"
76+
},
77+
"x-onyxia": {
78+
"overwriteDefaultWith": "region.defaultNetworkPolicy"
6079
}
6180
}
81+
}
6282
}
6383
}
6484
},
@@ -73,7 +93,11 @@
7393
"title": "Hostname",
7494
"x-form": {
7595
"value": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
76-
}
96+
},
97+
"x-onyxia": {
98+
"hidden": true,
99+
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
100+
}
77101
}
78102
}
79103
},
@@ -93,6 +117,9 @@
93117
"default": "admin",
94118
"x-form": {
95119
"value": "{{project.id}}"
120+
},
121+
"x-onyxia": {
122+
"overwriteDefaultWith": "{{project.id}}"
96123
}
97124
},
98125
"postgresqlPassword": {
@@ -101,6 +128,9 @@
101128
"default": "changeme",
102129
"x-form": {
103130
"value": "{{project.password}}"
131+
},
132+
"x-onyxia": {
133+
"overwriteDefaultWith": "{{project.password}}"
104134
}
105135
},
106136
"postgresqlDatabase": {

0 commit comments

Comments
 (0)