...
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: computereservations.compute.cnrm.cloud.google.com
27spec:
28 group: compute.cnrm.cloud.google.com
29 names:
30 categories:
31 - gcp
32 kind: ComputeReservation
33 plural: computereservations
34 shortNames:
35 - gcpcomputereservation
36 - gcpcomputereservations
37 singular: computereservation
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 description:
75 description: Immutable. An optional description of this resource.
76 type: string
77 resourceID:
78 description: Immutable. Optional. The name of the resource. Used for
79 creation and acquisition. When unset, the value of `metadata.name`
80 is used as the default.
81 type: string
82 specificReservation:
83 description: Reservation for instances with specific machine shapes.
84 properties:
85 count:
86 description: The number of resources that are allocated.
87 type: integer
88 inUseCount:
89 description: How many instances are in use.
90 type: integer
91 instanceProperties:
92 description: Immutable. The instance properties for the reservation.
93 properties:
94 guestAccelerators:
95 description: Immutable. Guest accelerator type and count.
96 items:
97 properties:
98 acceleratorCount:
99 description: |-
100 Immutable. The number of the guest accelerator cards exposed to
101 this instance.
102 type: integer
103 acceleratorType:
104 description: |-
105 Immutable. The full or partial URL of the accelerator type to
106 attach to this instance. For example:
107 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'
108
109 If you are creating an instance template, specify only the accelerator name.
110 type: string
111 required:
112 - acceleratorCount
113 - acceleratorType
114 type: object
115 type: array
116 localSsds:
117 description: |-
118 Immutable. The amount of local ssd to reserve with each instance. This
119 reserves disks of type 'local-ssd'.
120 items:
121 properties:
122 diskSizeGb:
123 description: Immutable. The size of the disk in base-2
124 GB.
125 type: integer
126 interface:
127 description: 'Immutable. The disk interface to use for
128 attaching this disk. Default value: "SCSI" Possible
129 values: ["SCSI", "NVME"].'
130 type: string
131 required:
132 - diskSizeGb
133 type: object
134 type: array
135 machineType:
136 description: Immutable. The name of the machine type to reserve.
137 type: string
138 minCpuPlatform:
139 description: |-
140 Immutable. The minimum CPU platform for the reservation. For example,
141 '"Intel Skylake"'. See
142 the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones)
143 for information on available CPU platforms.
144 type: string
145 required:
146 - machineType
147 type: object
148 required:
149 - count
150 - instanceProperties
151 type: object
152 specificReservationRequired:
153 description: |-
154 Immutable. When set to true, only VMs that target this reservation by name can
155 consume this reservation. Otherwise, it can be consumed by VMs with
156 affinity for any reservation. Defaults to false.
157 type: boolean
158 zone:
159 description: Immutable. The zone where the reservation is made.
160 type: string
161 required:
162 - specificReservation
163 - zone
164 type: object
165 status:
166 properties:
167 commitment:
168 description: |-
169 Full or partial URL to a parent commitment. This field displays for
170 reservations that are tied to a commitment.
171 type: string
172 conditions:
173 description: Conditions represent the latest available observation
174 of the resource's current state.
175 items:
176 properties:
177 lastTransitionTime:
178 description: Last time the condition transitioned from one status
179 to another.
180 type: string
181 message:
182 description: Human-readable message indicating details about
183 last transition.
184 type: string
185 reason:
186 description: Unique, one-word, CamelCase reason for the condition's
187 last transition.
188 type: string
189 status:
190 description: Status is the status of the condition. Can be True,
191 False, Unknown.
192 type: string
193 type:
194 description: Type is the type of the condition.
195 type: string
196 type: object
197 type: array
198 creationTimestamp:
199 description: Creation timestamp in RFC3339 text format.
200 type: string
201 observedGeneration:
202 description: ObservedGeneration is the generation of the resource
203 that was most recently observed by the Config Connector controller.
204 If this is equal to metadata.generation, then that means that the
205 current reported status reflects the most recent desired state of
206 the resource.
207 type: integer
208 selfLink:
209 type: string
210 status:
211 description: The status of the reservation.
212 type: string
213 type: object
214 required:
215 - spec
216 type: object
217 served: true
218 storage: true
219 subresources:
220 status: {}
221status:
222 acceptedNames:
223 kind: ""
224 plural: ""
225 conditions: []
226 storedVersions: []
View as plain text