Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions onyxia-api/src/main/resources/schemas/ide/customImage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Use a custom image instead",
"type": "boolean",
"default": false
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Use a custom image instead",
"type": "boolean",
"default": false
}
37 changes: 18 additions & 19 deletions onyxia-api/src/main/resources/schemas/ide/extraenv.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Environment variables",
"description": "environment variables available within your service",
"type": "array",
"default": [],
"items": {
"title": "",
"type": "object",
"properties": {
"name": {
"type": "string",
"default": "CHANGE_ME",
"pattern": "^[^ ]+$"
},
"value": {
"type": "string",
"default": ""
}
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Environment variables available within your service",
"type": "array",
"default": [],
"items": {
"title": "",
"type": "object",
"properties": {
"name": {
"type": "string",
"default": "CHANGE_ME",
"pattern": "^[a-zA-Z0-9_]+$"
},
"value": {
"type": "string",
"default": ""
}
}
}
}
}
175 changes: 88 additions & 87 deletions onyxia-api/src/main/resources/schemas/ide/git.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,90 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GIT",
"description": "Git user configuration",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Add git config inside your environment",
"default": true
},
"name": {
"type": "string",
"description": "user name for git",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.name}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"email": {
"type": "string",
"description": "user email for git",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.email}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"cache": {
"type": "string",
"description": "duration in seconds of the credentials cache duration",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.credentials_cache_duration}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"token": {
"type": "string",
"description": "personal access token",
"default": "",
"render": "password",
"x-onyxia": {
"overwriteDefaultWith": "{{git.token}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"repository": {
"type": "string",
"description": "Repository url",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.project}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"branch": {
"type": "string",
"description": "Branch automatically checked out",
"default": "",
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
}
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Git access",
"type": "object",
"properties": {
"enabled": {
"title": "Enable git access from within the service",
"type": "boolean",
"default": true
},
"name": {
"title": "User name",
"type": "string",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.name}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"email": {
"title": "User email",
"type": "string",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.email}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"cache": {
"title": "Credentials caching duration",
"description": "(in seconds)",
"type": "string",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.credentials_cache_duration}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"token": {
"title": "Personal Access Token",
"type": "string",
"default": "",
"render": "password",
"x-onyxia": {
"overwriteDefaultWith": "{{git.token}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"repository": {
"title": "Project repository",
"description": "cloned in service",
"type": "string",
"default": "",
"x-onyxia": {
"overwriteDefaultWith": "{{git.project}}"
},
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
},
"branch": {
"title": "Specific branch to use",
"type": "string",
"default": "",
"hidden": {
"value": false,
"path": "enabled",
"isPathRelative": true
}
}
}
}
}
132 changes: 70 additions & 62 deletions onyxia-api/src/main/resources/schemas/ide/ingress.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,72 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Ingress",
"description": "Ingress parameters",
"type": "object",
"properties": {
"enabled": {
"description": "Enable Ingress",
"type": "boolean",
"default": true,
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "k8s.ingress"
}
},
"hostname": {
"type": "string",
"form": true,
"title": "Hostname",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-0.{{k8s.domain}}"
}
},
"userHostname": {
"type": "string",
"form": true,
"title": "Hostname",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-user.{{k8s.domain}}"
}
},
"ingressClassName": {
"type": "string",
"form": true,
"title": "ingressClassName",
"default": "",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{k8s.ingressClassName}}"
}
},
"useCertManager": {
"type": "boolean",
"description": "Whether CertManager should be used to generate a certificate",
"default": false,
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "k8s.useCertManager"
}
},
"certManagerClusterIssuer":{
"type": "string",
"description": "certManager cluster issuer",
"title": "CertManager Cluster Issuer",
"default": "",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "k8s.certManagerClusterIssuer"
}
}
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Ingress Details",
"type": "object",
"form": true,
"properties": {
"enabled": {
"description": "Enable Ingress",
"type": "boolean",
"default": true,
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "k8s.ingress"
}
},
"hostname": {
"type": "string",
"form": true,
"title": "Hostname",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-0.{{k8s.domain}}"
}
},
"userHostname": {
"type": "string",
"form": true,
"title": "Hostname",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{project.id}}-{{k8s.randomSubdomain}}-user.{{k8s.domain}}"
}
},
"ingressClassName": {
"type": "string",
"form": true,
"title": "ingressClassName",
"default": "",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{k8s.ingressClassName}}"
}
},
"useCertManager": {
"type": "boolean",
"description": "Whether CertManager should be used to generate a certificate",
"default": false,
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "k8s.useCertManager"
}
},
"certManagerClusterIssuer": {
"type": "string",
"description": "certManager cluster issuer",
"title": "CertManager Cluster Issuer",
"default": "",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "k8s.certManagerClusterIssuer"
}
},
"useTlsSecret": {
"type": "boolean",
"description": "Whether you want to use the specified secretName in ingress tls",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}
}
Loading
Loading