...
1# Copyright 2020 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: apiextensions.k8s.io/v1
16kind: CustomResourceDefinition
17metadata:
18 annotations:
19 cnrm.cloud.google.com/version: 1.106.0
20 creationTimestamp: null
21 labels:
22 cnrm.cloud.google.com/managed-by-kcc: "true"
23 cnrm.cloud.google.com/stability-level: stable
24 cnrm.cloud.google.com/system: "true"
25 cnrm.cloud.google.com/tf2crd: "true"
26 name: spannerdatabases.spanner.cnrm.cloud.google.com
27spec:
28 group: spanner.cnrm.cloud.google.com
29 names:
30 categories:
31 - gcp
32 kind: SpannerDatabase
33 plural: spannerdatabases
34 shortNames:
35 - gcpspannerdatabase
36 - gcpspannerdatabases
37 singular: spannerdatabase
38 scope: Namespaced
39 versions:
40 - additionalPrinterColumns:
41 - jsonPath: .metadata.creationTimestamp
42 name: Age
43 type: date
44 - description: When 'True', the most recent reconcile of the resource succeeded
45 jsonPath: .status.conditions[?(@.type=='Ready')].status
46 name: Ready
47 type: string
48 - description: The reason for the value in 'Ready'
49 jsonPath: .status.conditions[?(@.type=='Ready')].reason
50 name: Status
51 type: string
52 - description: The last transition time for the value in 'Status'
53 jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
54 name: Status Age
55 type: date
56 name: v1beta1
57 schema:
58 openAPIV3Schema:
59 properties:
60 apiVersion:
61 description: 'apiVersion defines the versioned schema of this representation
62 of an object. Servers should convert recognized schemas to the latest
63 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
64 type: string
65 kind:
66 description: 'kind is a string value representing the REST resource this
67 object represents. Servers may infer this from the endpoint the client
68 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
69 type: string
70 metadata:
71 type: object
72 spec:
73 properties:
74 databaseDialect:
75 description: |-
76 Immutable. The dialect of the Cloud Spanner Database.
77 If it is not provided, "GOOGLE_STANDARD_SQL" will be used. Possible values: ["GOOGLE_STANDARD_SQL", "POSTGRESQL"].
78 type: string
79 ddl:
80 description: |-
81 An optional list of DDL statements to run inside the newly created
82 database. Statements can create tables, indexes, etc. These statements
83 execute atomically with the creation of the database: if there is an
84 error in any statement, the database is not created.
85 items:
86 type: string
87 type: array
88 encryptionConfig:
89 description: Immutable. Encryption configuration for the database.
90 properties:
91 kmsKeyRef:
92 description: |-
93 Fully qualified name of the KMS key to use to encrypt this database. This key
94 must exist in the same location as the Spanner Database.
95 oneOf:
96 - not:
97 required:
98 - external
99 required:
100 - name
101 - not:
102 anyOf:
103 - required:
104 - name
105 - required:
106 - namespace
107 required:
108 - external
109 properties:
110 external:
111 description: 'Allowed value: The `selfLink` field of a `KMSCryptoKey`
112 resource.'
113 type: string
114 name:
115 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
116 type: string
117 namespace:
118 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
119 type: string
120 type: object
121 required:
122 - kmsKeyRef
123 type: object
124 instanceRef:
125 description: The instance to create the database on.
126 oneOf:
127 - not:
128 required:
129 - external
130 required:
131 - name
132 - not:
133 anyOf:
134 - required:
135 - name
136 - required:
137 - namespace
138 required:
139 - external
140 properties:
141 external:
142 description: 'Allowed value: The `name` field of a `SpannerInstance`
143 resource.'
144 type: string
145 name:
146 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
147 type: string
148 namespace:
149 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
150 type: string
151 type: object
152 resourceID:
153 description: Immutable. Optional. The name of the resource. Used for
154 creation and acquisition. When unset, the value of `metadata.name`
155 is used as the default.
156 type: string
157 versionRetentionPeriod:
158 description: |-
159 The retention period for the database. The retention period must be between 1 hour
160 and 7 days, and can be specified in days, hours, minutes, or seconds. For example,
161 the values 1d, 24h, 1440m, and 86400s are equivalent. Default value is 1h.
162 If this property is used, you must avoid adding new DDL statements to 'ddl' that
163 update the database's version_retention_period.
164 type: string
165 required:
166 - instanceRef
167 type: object
168 status:
169 properties:
170 conditions:
171 description: Conditions represent the latest available observation
172 of the resource's current state.
173 items:
174 properties:
175 lastTransitionTime:
176 description: Last time the condition transitioned from one status
177 to another.
178 type: string
179 message:
180 description: Human-readable message indicating details about
181 last transition.
182 type: string
183 reason:
184 description: Unique, one-word, CamelCase reason for the condition's
185 last transition.
186 type: string
187 status:
188 description: Status is the status of the condition. Can be True,
189 False, Unknown.
190 type: string
191 type:
192 description: Type is the type of the condition.
193 type: string
194 type: object
195 type: array
196 observedGeneration:
197 description: ObservedGeneration is the generation of the resource
198 that was most recently observed by the Config Connector controller.
199 If this is equal to metadata.generation, then that means that the
200 current reported status reflects the most recent desired state of
201 the resource.
202 type: integer
203 state:
204 description: An explanation of the status of the database.
205 type: string
206 type: object
207 required:
208 - spec
209 type: object
210 served: true
211 storage: true
212 subresources:
213 status: {}
214status:
215 acceptedNames:
216 kind: ""
217 plural: ""
218 conditions: []
219 storedVersions: []
View as plain text