runtime-image.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "$schema": "https://raw.githubusercontent.com/elyra-ai/elyra/master/elyra/metadata/schemas/meta-schema.json",
  3. "$id": "https://raw.githubusercontent.com/elyra-ai/elyra/master/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/v3.8.0/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. "allOf": [
  42. { "minLength": 1 },
  43. { "pattern": "^[^ \t]+" },
  44. { "pattern": "[^ \t]+$" }
  45. ]
  46. },
  47. "uihints": {
  48. "field_type": "tags"
  49. }
  50. },
  51. "image_name": {
  52. "title": "Image Name",
  53. "description": "The image name (including optional tag)",
  54. "type": "string",
  55. "minLength": 1,
  56. "uihints": {
  57. "placeholder": "registry/owner/image:tag",
  58. "category": "Source"
  59. }
  60. },
  61. "pull_policy": {
  62. "title": "Image Pull Policy",
  63. "description": "The pull policy to use when selecting this image",
  64. "type": "string",
  65. "enum": ["Always", "IfNotPresent", "Never"],
  66. "uihints": {
  67. "field_type": "dropdown",
  68. "category": "Source"
  69. }
  70. },
  71. "pull_secret": {
  72. "title": "Image Pull Secret",
  73. "description": "Kubernetes secret name containing the container registry credentials, if anonymous pull access is forbidden.",
  74. "type": "string",
  75. "pattern": "^[a-z0-9][a-z0-9-.]*[a-z0-9]$",
  76. "maxLength": 253,
  77. "uihints": {
  78. "category": "Source",
  79. "secure": true
  80. }
  81. }
  82. },
  83. "required": ["image_name"]
  84. }
  85. },
  86. "required": ["schema_name", "display_name", "metadata"]
  87. }