SGPoolingConfig.yaml 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. name: sgpoolconfigs.stackgres.io
  5. spec:
  6. group: stackgres.io
  7. scope: Namespaced
  8. names:
  9. kind: SGPoolingConfig
  10. listKind: SGPoolingConfigList
  11. plural: sgpoolconfigs
  12. singular: sgpoolconfig
  13. shortNames:
  14. - sgpoc
  15. - sgpoolingconfig
  16. - sgpoolingconfigs
  17. versions:
  18. - name: v1
  19. served: true
  20. storage: true
  21. schema:
  22. openAPIV3Schema:
  23. type: object
  24. required: ["metadata", "spec"]
  25. properties:
  26. metadata:
  27. type: object
  28. properties:
  29. name:
  30. type: string
  31. description: |
  32. Name of the Connection Pooling Configuration. The configuration may be referenced by zero or more SGClusters, and if so it would be referenced by its name. Following [Kubernetes naming conventions](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md), it must be an rfc1035/rfc1123 subdomain, that is, up to 253 characters consisting of one or more lowercase labels separated by `.`. Where each label is an alphanumeric (a-z, and 0-9) string, with the `-` character allowed anywhere except the first or last character.
  33. The name must be unique across all Connection Pooling configurations in the same namespace.
  34. spec:
  35. type: object
  36. properties:
  37. pgBouncer:
  38. type: object
  39. description: |
  40. Connection pooling configuration based on PgBouncer.
  41. properties:
  42. pgbouncer.ini:
  43. type: object
  44. description: |
  45. The `pgbouncer.ini` parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters.
  46. Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#generic-settings) for more information about supported parameters.
  47. properties:
  48. pgbouncer:
  49. type: object
  50. additionalProperties: true
  51. description: |
  52. The `pgbouncer.ini` (Section [pgbouncer]) parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters.
  53. Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#generic-settings) for more information about supported parameters
  54. databases:
  55. type: object
  56. additionalProperties:
  57. type: object
  58. additionalProperties: true
  59. description: |
  60. The `pgbouncer.ini` (Section [databases]) parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters.
  61. Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#section-databases) for more information about supported parameters.
  62. users:
  63. type: object
  64. additionalProperties:
  65. type: object
  66. additionalProperties: true
  67. description: |
  68. The `pgbouncer.ini` (Section [users]) parameters the configuration contains, represented as an object where the keys are valid names for the `pgbouncer.ini` configuration file parameters.
  69. Check [pgbouncer configuration](https://www.pgbouncer.org/config.html#section-users) for more information about supported parameters.
  70. status:
  71. type: object
  72. properties:
  73. pgBouncer:
  74. type: object
  75. description: |
  76. Connection pooling configuration status based on PgBouncer.
  77. properties:
  78. defaultParameters:
  79. type: object
  80. additionalProperties:
  81. type: string
  82. description: |
  83. The `pgbouncer.ini` default parameters parameters which are used if not set.
  84. required: ["defaultParameters"]