|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.14.0 |
| 7 | + name: postgresqldatabases.postgresql.easymile.com |
| 8 | +spec: |
| 9 | + group: postgresql.easymile.com |
| 10 | + names: |
| 11 | + kind: PostgresqlDatabase |
| 12 | + listKind: PostgresqlDatabaseList |
| 13 | + plural: postgresqldatabases |
| 14 | + shortNames: |
| 15 | + - pgdb |
| 16 | + singular: postgresqldatabase |
| 17 | + scope: Namespaced |
| 18 | + versions: |
| 19 | + - additionalPrinterColumns: |
| 20 | + - description: Database name |
| 21 | + jsonPath: .status.database |
| 22 | + name: Database |
| 23 | + type: string |
| 24 | + - description: Schemas |
| 25 | + jsonPath: .status.schemas |
| 26 | + name: Schemas |
| 27 | + type: string |
| 28 | + - description: Extensions |
| 29 | + jsonPath: .status.extensions |
| 30 | + name: Extensions |
| 31 | + type: string |
| 32 | + - description: Status phase |
| 33 | + jsonPath: .status.phase |
| 34 | + name: Phase |
| 35 | + type: string |
| 36 | + - jsonPath: .metadata.creationTimestamp |
| 37 | + name: Age |
| 38 | + type: date |
| 39 | + name: v1alpha1 |
| 40 | + schema: |
| 41 | + openAPIV3Schema: |
| 42 | + description: PostgresqlDatabase is the Schema for the postgresqldatabases |
| 43 | + API. |
| 44 | + properties: |
| 45 | + apiVersion: |
| 46 | + description: |- |
| 47 | + APIVersion defines the versioned schema of this representation of an object. |
| 48 | + Servers should convert recognized schemas to the latest internal value, and |
| 49 | + may reject unrecognized values. |
| 50 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 51 | + type: string |
| 52 | + kind: |
| 53 | + description: |- |
| 54 | + Kind is a string value representing the REST resource this object represents. |
| 55 | + Servers may infer this from the endpoint the client submits requests to. |
| 56 | + Cannot be updated. |
| 57 | + In CamelCase. |
| 58 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 59 | + type: string |
| 60 | + metadata: |
| 61 | + type: object |
| 62 | + spec: |
| 63 | + description: PostgresqlDatabaseSpec defines the desired state of PostgresqlDatabase. |
| 64 | + properties: |
| 65 | + database: |
| 66 | + description: Database name |
| 67 | + minLength: 1 |
| 68 | + type: string |
| 69 | + dropOnDelete: |
| 70 | + description: Should drop database on Custom Resource deletion ? |
| 71 | + type: boolean |
| 72 | + engineConfiguration: |
| 73 | + description: Postgresql Engine Configuration link |
| 74 | + properties: |
| 75 | + name: |
| 76 | + description: Custom resource name |
| 77 | + type: string |
| 78 | + namespace: |
| 79 | + description: Custom resource namespace |
| 80 | + type: string |
| 81 | + required: |
| 82 | + - name |
| 83 | + type: object |
| 84 | + extensions: |
| 85 | + description: Extensions to enable |
| 86 | + properties: |
| 87 | + deleteWithCascade: |
| 88 | + description: Should drop with cascade ? |
| 89 | + type: boolean |
| 90 | + dropOnDelete: |
| 91 | + description: Should drop on delete ? |
| 92 | + type: boolean |
| 93 | + list: |
| 94 | + description: Modules list |
| 95 | + items: |
| 96 | + type: string |
| 97 | + type: array |
| 98 | + x-kubernetes-list-type: set |
| 99 | + type: object |
| 100 | + masterRole: |
| 101 | + description: |- |
| 102 | + Master role name will be used to create top group role. |
| 103 | + Database owner and users will be in this group role. |
| 104 | + type: string |
| 105 | + schemas: |
| 106 | + description: Schema to create in database |
| 107 | + properties: |
| 108 | + deleteWithCascade: |
| 109 | + description: Should drop with cascade ? |
| 110 | + type: boolean |
| 111 | + dropOnDelete: |
| 112 | + description: Should drop on delete ? |
| 113 | + type: boolean |
| 114 | + list: |
| 115 | + description: Modules list |
| 116 | + items: |
| 117 | + type: string |
| 118 | + type: array |
| 119 | + x-kubernetes-list-type: set |
| 120 | + type: object |
| 121 | + waitLinkedResourcesDeletion: |
| 122 | + description: Wait for linked resource to be deleted |
| 123 | + type: boolean |
| 124 | + required: |
| 125 | + - database |
| 126 | + - engineConfiguration |
| 127 | + type: object |
| 128 | + status: |
| 129 | + description: PostgresqlDatabaseStatus defines the observed state of PostgresqlDatabase. |
| 130 | + properties: |
| 131 | + database: |
| 132 | + description: Created database |
| 133 | + type: string |
| 134 | + extensions: |
| 135 | + description: Already extensions added |
| 136 | + items: |
| 137 | + type: string |
| 138 | + type: array |
| 139 | + x-kubernetes-list-type: set |
| 140 | + message: |
| 141 | + description: Human-readable message indicating details about current |
| 142 | + operator phase or error. |
| 143 | + type: string |
| 144 | + phase: |
| 145 | + description: Current phase of the operator |
| 146 | + type: string |
| 147 | + ready: |
| 148 | + description: True if all resources are in a ready state and all work |
| 149 | + is done. |
| 150 | + type: boolean |
| 151 | + roles: |
| 152 | + description: Already created roles for database |
| 153 | + properties: |
| 154 | + owner: |
| 155 | + type: string |
| 156 | + reader: |
| 157 | + type: string |
| 158 | + writer: |
| 159 | + type: string |
| 160 | + required: |
| 161 | + - owner |
| 162 | + - reader |
| 163 | + - writer |
| 164 | + type: object |
| 165 | + schemas: |
| 166 | + description: Already created schemas |
| 167 | + items: |
| 168 | + type: string |
| 169 | + type: array |
| 170 | + x-kubernetes-list-type: set |
| 171 | + required: |
| 172 | + - phase |
| 173 | + type: object |
| 174 | + type: object |
| 175 | + served: true |
| 176 | + storage: true |
| 177 | + subresources: |
| 178 | + status: {} |
0 commit comments