values.schema.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "$schema": "http://json-schema.org/schema#",
  3. "type": "object",
  4. "properties": {
  5. "architecture": {
  6. "type": "string",
  7. "title": "Redis architecture",
  8. "form": true,
  9. "description": "Allowed values: `standalone` or `replication`",
  10. "enum": ["standalone", "replication"]
  11. },
  12. "auth": {
  13. "type": "object",
  14. "title": "Authentication configuration",
  15. "form": true,
  16. "properties": {
  17. "enabled": {
  18. "type": "boolean",
  19. "form": true,
  20. "title": "Use password authentication"
  21. },
  22. "password": {
  23. "type": "string",
  24. "title": "Redis password",
  25. "form": true,
  26. "description": "Defaults to a random 10-character alphanumeric string if not set",
  27. "hidden": {
  28. "value": false,
  29. "path": "auth/enabled"
  30. }
  31. }
  32. }
  33. },
  34. "master": {
  35. "type": "object",
  36. "title": "Master replicas settings",
  37. "form": true,
  38. "properties": {
  39. "kind": {
  40. "type": "string",
  41. "title": "Workload Kind",
  42. "form": true,
  43. "description": "Allowed values: `Deployment` or `StatefulSet`",
  44. "enum": ["Deployment", "StatefulSet"]
  45. },
  46. "persistence": {
  47. "type": "object",
  48. "title": "Persistence for master replicas",
  49. "form": true,
  50. "properties": {
  51. "enabled": {
  52. "type": "boolean",
  53. "form": true,
  54. "title": "Enable persistence",
  55. "description": "Enable persistence using Persistent Volume Claims"
  56. },
  57. "size": {
  58. "type": "string",
  59. "title": "Persistent Volume Size",
  60. "form": true,
  61. "render": "slider",
  62. "sliderMin": 1,
  63. "sliderMax": 100,
  64. "sliderUnit": "Gi",
  65. "hidden": {
  66. "value": false,
  67. "path": "master/persistence/enabled"
  68. }
  69. }
  70. }
  71. }
  72. }
  73. },
  74. "replica": {
  75. "type": "object",
  76. "title": "Redis replicas settings",
  77. "form": true,
  78. "hidden": {
  79. "value": "standalone",
  80. "path": "architecture"
  81. },
  82. "properties": {
  83. "replicaCount": {
  84. "type": "integer",
  85. "form": true,
  86. "title": "Number of Redis replicas"
  87. },
  88. "persistence": {
  89. "type": "object",
  90. "title": "Persistence for Redis replicas",
  91. "form": true,
  92. "properties": {
  93. "enabled": {
  94. "type": "boolean",
  95. "form": true,
  96. "title": "Enable persistence",
  97. "description": "Enable persistence using Persistent Volume Claims"
  98. },
  99. "size": {
  100. "type": "string",
  101. "title": "Persistent Volume Size",
  102. "form": true,
  103. "render": "slider",
  104. "sliderMin": 1,
  105. "sliderMax": 100,
  106. "sliderUnit": "Gi",
  107. "hidden": {
  108. "value": false,
  109. "path": "replica/persistence/enabled"
  110. }
  111. }
  112. }
  113. }
  114. }
  115. },
  116. "volumePermissions": {
  117. "type": "object",
  118. "properties": {
  119. "enabled": {
  120. "type": "boolean",
  121. "form": true,
  122. "title": "Enable Init Containers",
  123. "description": "Use an init container to set required folder permissions on the data volume before mounting it in the final destination"
  124. }
  125. }
  126. },
  127. "metrics": {
  128. "type": "object",
  129. "form": true,
  130. "title": "Prometheus metrics details",
  131. "properties": {
  132. "enabled": {
  133. "type": "boolean",
  134. "title": "Create Prometheus metrics exporter",
  135. "description": "Create a side-car container to expose Prometheus metrics",
  136. "form": true
  137. },
  138. "serviceMonitor": {
  139. "type": "object",
  140. "properties": {
  141. "enabled": {
  142. "type": "boolean",
  143. "title": "Create Prometheus Operator ServiceMonitor",
  144. "description": "Create a ServiceMonitor to track metrics using Prometheus Operator",
  145. "form": true,
  146. "hidden": {
  147. "value": false,
  148. "path": "metrics/enabled"
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }