questions.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Nextcloud Configuration"
  5. description: "Configuration details for Nextcloud workload"
  6. questions:
  7. # Image related
  8. - variable: image
  9. description: "Docker Image Details"
  10. label: "Docker Image"
  11. group: "Container Images"
  12. schema:
  13. type: dict
  14. required: true
  15. attrs:
  16. - variable: repository
  17. description: "Docker image repository"
  18. label: "Image repository"
  19. schema:
  20. type: string
  21. default: "nextcloud"
  22. required: true
  23. - variable: tag
  24. description: "Tag to use for specified image"
  25. label: "Image Tag"
  26. schema:
  27. type: string
  28. default: "latest"
  29. - variable: pullPolicy
  30. description: "Docker Image Pull Policy"
  31. label: "Image Pull Policy"
  32. schema:
  33. type: string
  34. default: "IfNotPresent"
  35. enum:
  36. - value: "IfNotPresent"
  37. description: "Only pull image if not present on host"
  38. - value: "Always"
  39. description: "Always pull image even if present on host"
  40. - value: "Never"
  41. description: "Never pull image even if it's not present on host"
  42. - variable: nextcloud
  43. description: "Nextcloud configuration details"
  44. label: "Nextcloud Configuration"
  45. group: "Nextcloud Configuration"
  46. schema:
  47. type: dict
  48. required: true
  49. attrs:
  50. - variable: host
  51. description: "Nextcloud host to create application URLs"
  52. label: "Nextcloud host"
  53. schema:
  54. type: string
  55. default: "nextcloud.kube.home"
  56. - variable: username
  57. label: "Username"
  58. schema:
  59. type: string
  60. default: "admin"
  61. required: true
  62. - variable: password
  63. label: "Password"
  64. schema:
  65. type: string
  66. private: true
  67. default: "changeme"
  68. required: true
  69. - variable: datadir
  70. label: "Nextcloud data directory"
  71. schema:
  72. type: path
  73. default: "/var/www/html/data"
  74. required: true
  75. - variable: strategy
  76. label: "Nextcloud update strategy"
  77. schema:
  78. type: string
  79. default: "Recreate"
  80. enum:
  81. - value: "RollingUpdate"
  82. description: "Create new pods and then kill old ones"
  83. - value: "Recreate"
  84. description: "Kill existing pods before creating new ones"
  85. - variable: service
  86. description: "Nextcloud Service Configuration"
  87. label: "Nextcloud Service Configuration"
  88. group: "Nextcloud Configuration"
  89. schema:
  90. type: dict
  91. required: true
  92. attrs:
  93. - variable: nodePort
  94. label: "Node Port to use for Nextcloud"
  95. schema:
  96. type: int
  97. min: 9000
  98. max: 65535
  99. default: 9000
  100. required: true