...
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: sqlusers.sql.cnrm.cloud.google.com
27spec:
28 group: sql.cnrm.cloud.google.com
29 names:
30 categories:
31 - gcp
32 kind: SQLUser
33 plural: sqlusers
34 shortNames:
35 - gcpsqluser
36 - gcpsqlusers
37 singular: sqluser
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 host:
75 description: Immutable. The host the user can connect from. This is
76 only supported for MySQL instances. Don't set this field for PostgreSQL
77 instances. Can be an IP address. Changing this forces a new resource
78 to be created.
79 type: string
80 instanceRef:
81 oneOf:
82 - not:
83 required:
84 - external
85 required:
86 - name
87 - not:
88 anyOf:
89 - required:
90 - name
91 - required:
92 - namespace
93 required:
94 - external
95 properties:
96 external:
97 description: 'Allowed value: The `name` field of a `SQLInstance`
98 resource.'
99 type: string
100 name:
101 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
102 type: string
103 namespace:
104 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
105 type: string
106 type: object
107 password:
108 description: |-
109 The password for the user. Can be updated. For Postgres instances this is a Required field, unless type is set to
110 either CLOUD_IAM_USER or CLOUD_IAM_SERVICE_ACCOUNT.
111 oneOf:
112 - not:
113 required:
114 - valueFrom
115 required:
116 - value
117 - not:
118 required:
119 - value
120 required:
121 - valueFrom
122 properties:
123 value:
124 description: Value of the field. Cannot be used if 'valueFrom'
125 is specified.
126 type: string
127 valueFrom:
128 description: Source for the field's value. Cannot be used if 'value'
129 is specified.
130 properties:
131 secretKeyRef:
132 description: Reference to a value with the given key in the
133 given Secret in the resource's namespace.
134 properties:
135 key:
136 description: Key that identifies the value to be extracted.
137 type: string
138 name:
139 description: Name of the Secret to extract a value from.
140 type: string
141 required:
142 - name
143 - key
144 type: object
145 type: object
146 type: object
147 passwordPolicy:
148 properties:
149 allowedFailedAttempts:
150 description: Number of failed attempts allowed before the user
151 get locked.
152 type: integer
153 enableFailedAttemptsCheck:
154 description: If true, the check that will lock user after too
155 many failed login attempts will be enabled.
156 type: boolean
157 enablePasswordVerification:
158 description: If true, the user must specify the current password
159 before changing the password. This flag is supported only for
160 MySQL.
161 type: boolean
162 passwordExpirationDuration:
163 description: Password expiration duration with one week grace
164 period.
165 type: string
166 status:
167 items:
168 properties:
169 locked:
170 description: If true, user does not have login privileges.
171 type: boolean
172 passwordExpirationTime:
173 description: Password expiration duration with one week
174 grace period.
175 type: string
176 type: object
177 type: array
178 type: object
179 resourceID:
180 description: Immutable. Optional. The name of the resource. Used for
181 creation and acquisition. When unset, the value of `metadata.name`
182 is used as the default.
183 type: string
184 type:
185 description: |-
186 Immutable. The user type. It determines the method to authenticate the user during login.
187 The default is the database's built-in user type. Flags include "BUILT_IN", "CLOUD_IAM_USER", or "CLOUD_IAM_SERVICE_ACCOUNT".
188 type: string
189 required:
190 - instanceRef
191 type: object
192 status:
193 properties:
194 conditions:
195 description: Conditions represent the latest available observation
196 of the resource's current state.
197 items:
198 properties:
199 lastTransitionTime:
200 description: Last time the condition transitioned from one status
201 to another.
202 type: string
203 message:
204 description: Human-readable message indicating details about
205 last transition.
206 type: string
207 reason:
208 description: Unique, one-word, CamelCase reason for the condition's
209 last transition.
210 type: string
211 status:
212 description: Status is the status of the condition. Can be True,
213 False, Unknown.
214 type: string
215 type:
216 description: Type is the type of the condition.
217 type: string
218 type: object
219 type: array
220 observedGeneration:
221 description: ObservedGeneration is the generation of the resource
222 that was most recently observed by the Config Connector controller.
223 If this is equal to metadata.generation, then that means that the
224 current reported status reflects the most recent desired state of
225 the resource.
226 type: integer
227 sqlServerUserDetails:
228 items:
229 properties:
230 disabled:
231 description: If the user has been disabled.
232 type: boolean
233 serverRoles:
234 description: The server roles for this user in the database.
235 items:
236 type: string
237 type: array
238 type: object
239 type: array
240 type: object
241 required:
242 - spec
243 type: object
244 served: true
245 storage: true
246 subresources:
247 status: {}
248status:
249 acceptedNames:
250 kind: ""
251 plural: ""
252 conditions: []
253 storedVersions: []
View as plain text