runtime-image.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "$schema": "https://raw.githubusercontent.com/elyra-ai/elyra/main/elyra/metadata/schemas/meta-schema.json",
  3. "$id": "https://raw.githubusercontent.com/elyra-ai/elyra/main/elyra/metadata/schemas/runtime-image.json",
  4. "title": "Runtime Image",
  5. "name": "runtime-image",
  6. "schemaspace": "runtime-images",
  7. "schemaspace_id": "119c9740-d73f-48c6-a97a-599d3acaf41d",
  8. "uihints": {
  9. "icon": "elyra:container",
  10. "title": "Runtime Images",
  11. "reference_url": "https://elyra.readthedocs.io/en/latest/user_guide/runtime-image-conf.html"
  12. },
  13. "properties": {
  14. "schema_name": {
  15. "title": "Schema Name",
  16. "description": "The schema associated with this instance",
  17. "type": "string",
  18. "const": "runtime-image"
  19. },
  20. "display_name": {
  21. "title": "Display Name",
  22. "description": "The display name of the Runtime Image",
  23. "type": "string",
  24. "minLength": 1
  25. },
  26. "metadata": {
  27. "description": "Additional data specific to this Runtime Image",
  28. "type": "object",
  29. "properties": {
  30. "description": {
  31. "title": "Description",
  32. "description": "The description of this Runtime Image instance",
  33. "type": "string"
  34. },
  35. "tags": {
  36. "title": "Tags",
  37. "description": "Tags for categorizing runtime images",
  38. "uniqueItems": true,
  39. "type": "array",
  40. "items": {
  41. "minLength": 1,
  42. "pattern": "^[^ \t]+([ \t]+[^ \t]+)*$"
  43. },
  44. "uihints": {
  45. "ui:field": "tags"
  46. }
  47. },
  48. "image_name": {
  49. "title": "Image Name",
  50. "description": "The image name (including optional tag)",
  51. "type": "string",
  52. "minLength": 1,
  53. "uihints": {
  54. "ui:placeholder": "registry/owner/image:tag",
  55. "category": "Source"
  56. }
  57. },
  58. "pull_policy": {
  59. "title": "Image Pull Policy",
  60. "description": "The pull policy to use when selecting this image",
  61. "type": "string",
  62. "enum": ["Always", "IfNotPresent", "Never"],
  63. "uihints": {
  64. "category": "Source"
  65. }
  66. },
  67. "pull_secret": {
  68. "title": "Image Pull Secret",
  69. "description": "Kubernetes secret name containing the container registry credentials, if anonymous pull access is forbidden.",
  70. "type": "string",
  71. "pattern": "^[a-z0-9][a-z0-9-.]*[a-z0-9]$",
  72. "maxLength": 253,
  73. "uihints": {
  74. "category": "Source",
  75. "ui:field": "password"
  76. }
  77. }
  78. },
  79. "required": ["image_name"]
  80. }
  81. },
  82. "required": ["schema_name", "display_name", "metadata"]
  83. }