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

Commit

Permalink
label studio x-onyxia
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte committed Jul 14, 2022
1 parent 9ab9d25 commit ded806b
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 31 deletions.
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.1.0
version: 2.2.0

# 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
90 changes: 60 additions & 30 deletions charts/label-studio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"default": "changeme",
"x-form": {
"value": "{{project.password}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
},
"username": {
Expand All @@ -20,45 +23,62 @@
"default": "username",
"x-form": {
"value": "{{user.email}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{user.email}}"
}
},
"allowlist": {
"type": "object",
"description": "IP protection",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enable IP protection",
"description": "Only the configured set of IPs will be able to reach the service",
"default": true,
"x-form": {
"value": "{{region.defaultIpProtection}}"
}
"type": "object",
"description": "IP protection",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enable IP protection",
"description": "Only the configured set of IPs will be able to reach the service",
"default": true,
"x-form": {
"value": "{{region.defaultIpProtection}}"
},
"x-onyxia": {
"overwriteDefaultWith": "region.defaultIpProtection"
}
},
"ip": {
"type": "string",
"description": "the allow list of IP is whitespace",
"title": "Allowed IP",
"default": "0.0.0.0/0",
"x-form": {
"value": "{{user.ip}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{user.ip}}"
},
"ip": {
"type": "string",
"description": "the white list of IP is whitespace",
"title": "Whitelist of IP",
"x-form": {
"value": "{{user.ip}}"
}
"hidden": {
"value": false,
"path": "security/allowlist/enabled"
}
}
}
},
"networkPolicy": {
"type": "object",
"description": "Define access policy to the service",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enable network policy",
"description": "Only pod from the same namespace will be allowed",
"default": true,
"x-form": {
"value": "{{region.defaultNetworkPolicy}}"
}
"type": "object",
"description": "Define access policy to the service",
"properties": {
"enabled": {
"type": "boolean",
"title": "Enable network policy",
"description": "Only pod from the same namespace will be allowed",
"default": true,
"x-form": {
"value": "{{region.defaultNetworkPolicy}}"
},
"x-onyxia": {
"overwriteDefaultWith": "region.defaultNetworkPolicy"
}
}
}
}
}
},
Expand All @@ -73,7 +93,11 @@
"title": "Hostname",
"x-form": {
"value": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
}
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}.{{k8s.domain}}"
}
}
}
},
Expand All @@ -93,6 +117,9 @@
"default": "admin",
"x-form": {
"value": "{{project.id}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{project.id}}"
}
},
"postgresqlPassword": {
Expand All @@ -101,6 +128,9 @@
"default": "changeme",
"x-form": {
"value": "{{project.password}}"
},
"x-onyxia": {
"overwriteDefaultWith": "{{project.password}}"
}
},
"postgresqlDatabase": {
Expand Down

0 comments on commit ded806b

Please sign in to comment.