questions.yaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. groups:
  2. - name: pgAdmin Configuration
  3. description: Configure pgAdmin
  4. - name: Network Configuration
  5. description: Configure Network for pgAdmin
  6. - name: Storage Configuration
  7. description: Configure Storage for pgAdmin
  8. - name: Resources Configuration
  9. description: Configure Resources for pgAdmin
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: pgadminConfig
  21. label: ""
  22. group: pgAdmin Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: adminEmail
  27. label: Admin Email
  28. description: The email address for the pgAdmin admin user.
  29. schema:
  30. type: string
  31. required: true
  32. default: ""
  33. - variable: adminPassword
  34. label: Admin Password
  35. description: The password for the pgAdmin admin user.
  36. schema:
  37. type: string
  38. required: true
  39. private: true
  40. default: ""
  41. - variable: additionalEnvs
  42. label: Additional Environment Variables
  43. description: Configure additional environment variables for pgAdmin.
  44. schema:
  45. type: list
  46. default: []
  47. items:
  48. - variable: env
  49. label: Environment Variable
  50. schema:
  51. type: dict
  52. attrs:
  53. - variable: name
  54. label: Name
  55. schema:
  56. type: string
  57. required: true
  58. - variable: value
  59. label: Value
  60. schema:
  61. type: string
  62. required: true
  63. - variable: pgadminNetwork
  64. label: ""
  65. group: Network Configuration
  66. schema:
  67. type: dict
  68. attrs:
  69. - variable: webPort
  70. label: Web Port
  71. description: The port for the pgAdmin Web UI.
  72. schema:
  73. type: int
  74. default: 30056
  75. min: 9000
  76. max: 65535
  77. required: true
  78. - variable: hostNetwork
  79. label: Host Network
  80. description: |
  81. Bind to the host network. It's recommended to keep this disabled.</br>
  82. schema:
  83. type: boolean
  84. default: false
  85. - variable: certificateID
  86. label: Certificate
  87. description: The certificate to use for pgAdmin
  88. schema:
  89. type: int
  90. "null": true
  91. $ref:
  92. - "definitions/certificate"
  93. - variable: pgadminStorage
  94. label: ""
  95. group: Storage Configuration
  96. schema:
  97. type: dict
  98. attrs:
  99. - variable: config
  100. label: pgAdmin Config Storage
  101. description: The path to store pgAdmin Configuration.
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: type
  106. label: Type
  107. description: |
  108. ixVolume: Is dataset created automatically by the system.</br>
  109. Host Path: Is a path that already exists on the system.
  110. schema:
  111. type: string
  112. required: true
  113. default: "ixVolume"
  114. enum:
  115. - value: "hostPath"
  116. description: Host Path (Path that already exists on the system)
  117. - value: "ixVolume"
  118. description: ixVolume (Dataset created automatically by the system)
  119. - variable: datasetName
  120. label: Dataset Name
  121. schema:
  122. type: string
  123. show_if: [["type", "=", "ixVolume"]]
  124. required: true
  125. hidden: true
  126. immutable: true
  127. default: "config"
  128. $ref:
  129. - "normalize/ixVolume"
  130. - variable: hostPath
  131. label: Host Path
  132. schema:
  133. type: hostpath
  134. show_if: [["type", "=", "hostPath"]]
  135. immutable: true
  136. required: true
  137. - variable: additionalStorages
  138. label: Additional Storage
  139. description: Additional storage for pgAdmin.
  140. schema:
  141. type: list
  142. default: []
  143. items:
  144. - variable: storageEntry
  145. label: Storage Entry
  146. schema:
  147. type: dict
  148. attrs:
  149. - variable: type
  150. label: Type
  151. description: |
  152. ixVolume: Is dataset created automatically by the system.</br>
  153. Host Path: Is a path that already exists on the system.
  154. schema:
  155. type: string
  156. required: true
  157. default: "ixVolume"
  158. enum:
  159. - value: "hostPath"
  160. description: Host Path (Path that already exists on the system)
  161. - value: "ixVolume"
  162. description: ixVolume (Dataset created automatically by the system)
  163. - variable: mountPath
  164. label: Mount Path
  165. description: The path inside the container to mount the storage.
  166. schema:
  167. type: path
  168. required: true
  169. - variable: hostPath
  170. label: Host Path
  171. description: The host path to use for storage.
  172. schema:
  173. type: hostpath
  174. show_if: [["type", "=", "hostPath"]]
  175. required: true
  176. - variable: datasetName
  177. label: Dataset Name
  178. description: The name of the dataset to use for storage.
  179. schema:
  180. type: string
  181. show_if: [["type", "=", "ixVolume"]]
  182. required: true
  183. immutable: true
  184. default: "storage_entry"
  185. $ref:
  186. - "normalize/ixVolume"
  187. - variable: resources
  188. group: Resources Configuration
  189. label: ""
  190. schema:
  191. type: dict
  192. attrs:
  193. - variable: limits
  194. label: Limits
  195. schema:
  196. type: dict
  197. attrs:
  198. - variable: cpu
  199. label: CPU
  200. description: CPU limit for pgAdmin.
  201. schema:
  202. type: string
  203. max_length: 6
  204. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  205. valid_chars_error: |
  206. Valid CPU limit formats are</br>
  207. - Plain Integer - eg. 1</br>
  208. - Float - eg. 0.5</br>
  209. - Milicpu - eg. 500m
  210. default: "4000m"
  211. required: true
  212. - variable: memory
  213. label: Memory
  214. description: Memory limit for pgAdmin.
  215. schema:
  216. type: string
  217. max_length: 12
  218. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  219. valid_chars_error: |
  220. Valid Memory limit formats are</br>
  221. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  222. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  223. - Plain Integer in bytes - eg. 1024</br>
  224. - Exponent - eg. 134e6
  225. default: "8Gi"
  226. required: true