job.values.schema.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "$schema": "http://json-schema.org/schema#",
  3. "type": "object",
  4. "properties": {
  5. "replicaCount": {
  6. "type": "integer",
  7. "minimum": 1,
  8. "default": 1
  9. },
  10. "container": {
  11. "type": "object",
  12. "properties": {
  13. "port": {
  14. "type": "integer",
  15. "default": 80
  16. },
  17. "command": {
  18. "type": "string"
  19. },
  20. "env": {
  21. "type": "object",
  22. "properties": {
  23. "normal": {
  24. "type": "object",
  25. "additionalProperties": {
  26. "type": "string"
  27. }
  28. }
  29. }
  30. }
  31. }
  32. },
  33. "schedule": {
  34. "type": "object",
  35. "properties": {
  36. "enabled": {
  37. "type": "boolean",
  38. "default": false
  39. },
  40. "value": {
  41. "type": "string",
  42. "default": "*/5 * * * *"
  43. },
  44. "successfulHistory": {
  45. "type": "integer",
  46. "default": 20
  47. },
  48. "failedHistory": {
  49. "type": "integer",
  50. "default": 20
  51. }
  52. }
  53. },
  54. "resources": {
  55. "type": "object",
  56. "properties": {
  57. "requests": {
  58. "type": "object",
  59. "properties": {
  60. "cpu": {
  61. "type": "string",
  62. "pattern": "^\\d+(m){0,1}$"
  63. },
  64. "memory": {
  65. "type": "string",
  66. "pattern": "^\\d+(Ki|Mi|Gi)$"
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }