database.iwanhae.kr_postgresqls.yaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ---
  2. apiVersion: apiextensions.k8s.io/v1
  3. kind: CustomResourceDefinition
  4. metadata:
  5. annotations:
  6. controller-gen.kubebuilder.io/version: v0.13.0
  7. name: postgresqls.database.iwanhae.kr
  8. spec:
  9. group: database.iwanhae.kr
  10. names:
  11. kind: PostgreSQL
  12. listKind: PostgreSQLList
  13. plural: postgresqls
  14. singular: postgresql
  15. scope: Namespaced
  16. versions:
  17. - additionalPrinterColumns:
  18. - jsonPath: .status.listenOn.node
  19. name: Node
  20. type: string
  21. - jsonPath: .status.listenOn.host
  22. name: Host
  23. type: string
  24. - jsonPath: .status.listenOn.port
  25. name: Port
  26. type: number
  27. - jsonPath: .status.status
  28. name: Status
  29. type: string
  30. name: v1
  31. schema:
  32. openAPIV3Schema:
  33. description: PostgreSQL is the Schema for the postgresqls API
  34. properties:
  35. apiVersion:
  36. description: 'APIVersion defines the versioned schema of this representation
  37. of an object. Servers should convert recognized schemas to the latest
  38. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  39. type: string
  40. kind:
  41. description: 'Kind is a string value representing the REST resource this
  42. object represents. Servers may infer this from the endpoint the client
  43. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  44. type: string
  45. metadata:
  46. type: object
  47. spec:
  48. description: PostgreSQLSpec defines the desired state of PostgreSQL
  49. properties:
  50. database:
  51. description: Autogenerated name for default Database
  52. type: string
  53. password:
  54. description: Password for authentication
  55. type: string
  56. user:
  57. description: Username for authentication
  58. type: string
  59. version:
  60. description: Version of Postgres to deploy. [16.0]
  61. type: string
  62. required:
  63. - database
  64. - password
  65. - user
  66. - version
  67. type: object
  68. status:
  69. description: PostgreSQLStatus defines the observed state of PostgreSQL
  70. properties:
  71. conditions:
  72. properties:
  73. pod:
  74. type: string
  75. service:
  76. type: string
  77. type: object
  78. listenOn:
  79. properties:
  80. host:
  81. type: string
  82. node:
  83. type: string
  84. port:
  85. format: int32
  86. type: integer
  87. type: object
  88. status:
  89. type: string
  90. type: object
  91. type: object
  92. served: true
  93. storage: true
  94. subresources:
  95. status: {}