|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | +annotations: |
| 5 | +controller-gen.kubebuilder.io/version: v0.9.0 |
| 6 | +creationTimestamp: null |
| 7 | +labels: |
| 8 | +app.kubernetes.io/name: pgo |
| 9 | +app.kubernetes.io/version: 5.6.0 |
| 10 | +name: crunchybridgeclusters.postgres-operator.crunchydata.com |
| 11 | +spec: |
| 12 | +group: postgres-operator.crunchydata.com |
| 13 | +names: |
| 14 | +kind: CrunchyBridgeCluster |
| 15 | +listKind: CrunchyBridgeClusterList |
| 16 | +plural: crunchybridgeclusters |
| 17 | +singular: crunchybridgecluster |
| 18 | +scope: Namespaced |
| 19 | +versions: |
| 20 | + - name: v1beta1 |
| 21 | +schema: |
| 22 | +openAPIV3Schema: |
| 23 | +description: CrunchyBridgeCluster is the Schema for the crunchybridgeclusters |
| 24 | +API |
| 25 | +properties: |
| 26 | +apiVersion: |
| 27 | +description: 'APIVersion defines the versioned schema of this representation |
| 28 | + of an object. Servers should convert recognized schemas to the latest |
| 29 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 30 | +type: string |
| 31 | +kind: |
| 32 | +description: 'Kind is a string value representing the REST resource this |
| 33 | + object represents. Servers may infer this from the endpoint the client |
| 34 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 35 | +type: string |
| 36 | +metadata: |
| 37 | +type: object |
| 38 | +spec: |
| 39 | +description: CrunchyBridgeClusterSpec defines the desired state of CrunchyBridgeCluster |
| 40 | +to be managed by Crunchy Data Bridge |
| 41 | +properties: |
| 42 | +clusterName: |
| 43 | +description: The name of the cluster --- According to Bridge API/GUI |
| 44 | +errors, "Field name should be between 5 and 50 characters in length, |
| 45 | +containing only unicode characters, unicode numbers, hyphens, spaces, |
| 46 | +or underscores, and starting with a character", and ending with |
| 47 | +a character or number. |
| 48 | +maxLength: 50 |
| 49 | +minLength: 5 |
| 50 | +pattern: ^[A-Za-z][A-Za-z0-9\-_ ]*[A-Za-z0-9]$ |
| 51 | +type: string |
| 52 | +isHa: |
| 53 | +description: Whether the cluster is high availability, meaning that |
| 54 | +it has a secondary it can fail over to quickly in case the primary |
| 55 | +becomes unavailable. |
| 56 | +type: boolean |
| 57 | +isProtected: |
| 58 | +description: Whether the cluster is protected. Protected clusters |
| 59 | +can't be destroyed until their protected flag is removed |
| 60 | +type: boolean |
| 61 | +majorVersion: |
| 62 | +description: The ID of the cluster's major Postgres version. Currently |
| 63 | +Bridge offers 13-16 |
| 64 | +maximum: 16 |
| 65 | +minimum: 13 |
| 66 | +type: integer |
| 67 | +metadata: |
| 68 | +description: Metadata contains metadata for custom resources |
| 69 | +properties: |
| 70 | +annotations: |
| 71 | +additionalProperties: |
| 72 | +type: string |
| 73 | +type: object |
| 74 | +labels: |
| 75 | +additionalProperties: |
| 76 | +type: string |
| 77 | +type: object |
| 78 | +type: object |
| 79 | +plan: |
| 80 | +description: The ID of the cluster's plan. Determines instance, CPU, |
| 81 | +and memory. |
| 82 | +type: string |
| 83 | +provider: |
| 84 | +description: The cloud provider where the cluster is located. Currently |
| 85 | +Bridge offers aws, azure, and gcp only |
| 86 | +enum: |
| 87 | + - aws |
| 88 | + - azure |
| 89 | + - gcp |
| 90 | +type: string |
| 91 | +x-kubernetes-validations: |
| 92 | + - message: immutable |
| 93 | +rule: self == oldSelf |
| 94 | +region: |
| 95 | +description: The provider region where the cluster is located. |
| 96 | +type: string |
| 97 | +x-kubernetes-validations: |
| 98 | + - message: immutable |
| 99 | +rule: self == oldSelf |
| 100 | +roles: |
| 101 | +description: Roles for which to create Secrets that contain their |
| 102 | +credentials which are retrieved from the Bridge API. An empty list |
| 103 | +creates no role secrets. Removing a role from this list does NOT |
| 104 | +drop the role nor revoke their access, but it will delete that role's |
| 105 | +secret from the kube cluster. |
| 106 | +items: |
| 107 | +properties: |
| 108 | +name: |
| 109 | +description: 'Name of the role within Crunchy Bridge. More info: |
| 110 | + https://docs.crunchybridge.com/concepts/users' |
| 111 | +type: string |
| 112 | +secretName: |
| 113 | +description: The name of the Secret that will hold the role |
| 114 | +credentials. |
| 115 | +maxLength: 253 |
| 116 | +pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ |
| 117 | +type: string |
| 118 | +required: |
| 119 | + - name |
| 120 | + - secretName |
| 121 | +type: object |
| 122 | +type: array |
| 123 | +x-kubernetes-list-map-keys: |
| 124 | + - name |
| 125 | +x-kubernetes-list-type: map |
| 126 | +secret: |
| 127 | +description: The name of the secret containing the API key and team |
| 128 | +id |
| 129 | +type: string |
| 130 | +storage: |
| 131 | +anyOf: |
| 132 | + - type: integer |
| 133 | + - type: string |
| 134 | +description: The amount of storage available to the cluster in gigabytes. |
| 135 | +The amount must be an integer, followed by Gi (gibibytes) or G (gigabytes) |
| 136 | +to match Kubernetes conventions. If the amount is given in Gi, we |
| 137 | +round to the nearest G value. The minimum value allowed by Bridge |
| 138 | +is 10 GB. The maximum value allowed by Bridge is 65535 GB. |
| 139 | +pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
| 140 | +x-kubernetes-int-or-string: true |
| 141 | +required: |
| 142 | + - clusterName |
| 143 | + - isHa |
| 144 | + - majorVersion |
| 145 | + - plan |
| 146 | + - provider |
| 147 | + - region |
| 148 | + - storage |
| 149 | +type: object |
| 150 | +status: |
| 151 | +description: CrunchyBridgeClusterStatus defines the observed state of |
| 152 | +CrunchyBridgeCluster |
| 153 | +properties: |
| 154 | +conditions: |
| 155 | +description: conditions represent the observations of postgres cluster's |
| 156 | +current state. |
| 157 | +items: |
| 158 | +description: "Condition contains details for one aspect of the current |
| 159 | + state of this API Resource. --- This struct is intended for direct |
| 160 | + use as an array at the field path .status.conditions. For example, |
| 161 | + type FooStatus struct{// Represents the observations of a foo's |
| 162 | + current state. // Known .status.conditions.type are: \"Available\", |
| 163 | +\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge |
| 164 | + // +listType=map // +listMapKey=type Conditions []metav1.Condition |
| 165 | + `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" |
| 166 | + protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }" |
| 167 | +properties: |
| 168 | +lastTransitionTime: |
| 169 | +description: lastTransitionTime is the last time the condition |
| 170 | +transitioned from one status to another. This should be when |
| 171 | +the underlying condition changed. If that is not known, then |
| 172 | +using the time when the API field changed is acceptable. |
| 173 | +format: date-time |
| 174 | +type: string |
| 175 | +message: |
| 176 | +description: message is a human readable message indicating |
| 177 | +details about the transition. This may be an empty string. |
| 178 | +maxLength: 32768 |
| 179 | +type: string |
| 180 | +observedGeneration: |
| 181 | +description: observedGeneration represents the .metadata.generation |
| 182 | +that the condition was set based upon. For instance, if .metadata.generation |
| 183 | +is currently 12, but the .status.conditions[x].observedGeneration |
| 184 | +is 9, the condition is out of date with respect to the current |
| 185 | +state of the instance. |
| 186 | +format: int64 |
| 187 | +minimum: 0 |
| 188 | +type: integer |
| 189 | +reason: |
| 190 | +description: reason contains a programmatic identifier indicating |
| 191 | +the reason for the condition's last transition. Producers |
| 192 | +of specific condition types may define expected values and |
| 193 | +meanings for this field, and whether the values are considered |
| 194 | +a guaranteed API. The value should be a CamelCase string. |
| 195 | +This field may not be empty. |
| 196 | +maxLength: 1024 |
| 197 | +minLength: 1 |
| 198 | +pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 199 | +type: string |
| 200 | +status: |
| 201 | +description: status of the condition, one of True, False, Unknown. |
| 202 | +enum: |
| 203 | + - "True" |
| 204 | + - "False" |
| 205 | + - Unknown |
| 206 | +type: string |
| 207 | +type: |
| 208 | +description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 209 | +--- Many .condition.type values are consistent across resources |
| 210 | +like Available, but because arbitrary conditions can be useful |
| 211 | +(see .node.status.conditions), the ability to deconflict is |
| 212 | +important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| 213 | +maxLength: 316 |
| 214 | +pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ |
| 215 | +type: string |
| 216 | +required: |
| 217 | + - lastTransitionTime |
| 218 | + - message |
| 219 | + - reason |
| 220 | + - status |
| 221 | + - type |
| 222 | +type: object |
| 223 | +type: array |
| 224 | +x-kubernetes-list-map-keys: |
| 225 | + - type |
| 226 | +x-kubernetes-list-type: map |
| 227 | +host: |
| 228 | +description: The Hostname of the postgres cluster in Bridge, provided |
| 229 | +by Bridge API and null until then. |
| 230 | +type: string |
| 231 | +id: |
| 232 | +description: The ID of the postgres cluster in Bridge, provided by |
| 233 | +Bridge API and null until then. |
| 234 | +type: string |
| 235 | +isHa: |
| 236 | +description: Whether the cluster is high availability, meaning that |
| 237 | +it has a secondary it can fail over to quickly in case the primary |
| 238 | +becomes unavailable. |
| 239 | +type: boolean |
| 240 | +isProtected: |
| 241 | +description: Whether the cluster is protected. Protected clusters |
| 242 | +can't be destroyed until their protected flag is removed |
| 243 | +type: boolean |
| 244 | +majorVersion: |
| 245 | +description: The cluster's major Postgres version. |
| 246 | +type: integer |
| 247 | +name: |
| 248 | +description: The name of the cluster in Bridge. |
| 249 | +type: string |
| 250 | +observedGeneration: |
| 251 | +description: observedGeneration represents the .metadata.generation |
| 252 | +on which the status was based. |
| 253 | +format: int64 |
| 254 | +minimum: 0 |
| 255 | +type: integer |
| 256 | +ongoingUpgrade: |
| 257 | +description: The cluster upgrade as represented by Bridge |
| 258 | +items: |
| 259 | +properties: |
| 260 | +flavor: |
| 261 | +type: string |
| 262 | +starting_from: |
| 263 | +type: string |
| 264 | +state: |
| 265 | +type: string |
| 266 | +required: |
| 267 | + - flavor |
| 268 | + - starting_from |
| 269 | + - state |
| 270 | +type: object |
| 271 | +type: array |
| 272 | +plan: |
| 273 | +description: The ID of the cluster's plan. Determines instance, CPU, |
| 274 | +and memory. |
| 275 | +type: string |
| 276 | +responses: |
| 277 | +description: Most recent, raw responses from Bridge API |
| 278 | +type: object |
| 279 | +x-kubernetes-preserve-unknown-fields: true |
| 280 | +state: |
| 281 | +description: State of cluster in Bridge. |
| 282 | +type: string |
| 283 | +storage: |
| 284 | +anyOf: |
| 285 | + - type: integer |
| 286 | + - type: string |
| 287 | +description: The amount of storage available to the cluster. |
| 288 | +pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
| 289 | +x-kubernetes-int-or-string: true |
| 290 | +type: object |
| 291 | +type: object |
| 292 | +served: true |
| 293 | +storage: true |
| 294 | +subresources: |
| 295 | +status: {} |
0 commit comments