...
Text file
src/edge-infra.dev/test/fixtures/crds/gcp/compute.cnrm.cloud.google.com_computeregionperinstanceconfigs.yaml
1---
2apiVersion: apiextensions.k8s.io/v1
3kind: CustomResourceDefinition
4metadata:
5 annotations:
6 controller-gen.kubebuilder.io/version: (unknown)
7 name: computeregionperinstanceconfigs.compute.cnrm.cloud.google.com
8spec:
9 group: compute.cnrm.cloud.google.com
10 names:
11 kind: ComputeRegionPerInstanceConfig
12 listKind: ComputeRegionPerInstanceConfigList
13 plural: computeregionperinstanceconfigs
14 singular: computeregionperinstanceconfig
15 scope: Namespaced
16 versions:
17 - name: v1alpha1
18 schema:
19 openAPIV3Schema:
20 description: ComputeRegionPerInstanceConfig is the Schema for the compute
21 API
22 properties:
23 apiVersion:
24 description: |-
25 APIVersion defines the versioned schema of this representation of an object.
26 Servers should convert recognized schemas to the latest internal value, and
27 may reject unrecognized values.
28 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29 type: string
30 kind:
31 description: |-
32 Kind is a string value representing the REST resource this object represents.
33 Servers may infer this from the endpoint the client submits requests to.
34 Cannot be updated.
35 In CamelCase.
36 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37 type: string
38 metadata:
39 type: object
40 spec:
41 properties:
42 minimalAction:
43 description: |-
44 The minimal action to perform on the instance during an update.
45 Default is 'NONE'. Possible values are:
46 * REPLACE
47 * RESTART
48 * REFRESH
49 * NONE.
50 type: string
51 mostDisruptiveAllowedAction:
52 description: |-
53 The most disruptive action to perform on the instance during an update.
54 Default is 'REPLACE'. Possible values are:
55 * REPLACE
56 * RESTART
57 * REFRESH
58 * NONE.
59 type: string
60 preservedState:
61 description: The preserved state for this instance.
62 properties:
63 disk:
64 description: Stateful disks for the instance.
65 items:
66 properties:
67 deleteRule:
68 description: |-
69 A value that prescribes what should happen to the stateful disk when the VM instance is deleted.
70 The available options are 'NEVER' and 'ON_PERMANENT_INSTANCE_DELETION'.
71 'NEVER' - detach the disk when the VM is deleted, but do not delete the disk.
72 'ON_PERMANENT_INSTANCE_DELETION' will delete the stateful disk when the VM is permanently
73 deleted from the instance group. Default value: "NEVER" Possible values: ["NEVER", "ON_PERMANENT_INSTANCE_DELETION"].
74 type: string
75 deviceName:
76 description: A unique device name that is reflected into
77 the /dev/ tree of a Linux operating system running within
78 the instance.
79 type: string
80 mode:
81 description: 'The mode of the disk. Default value: "READ_WRITE"
82 Possible values: ["READ_ONLY", "READ_WRITE"].'
83 type: string
84 source:
85 description: |-
86 The URI of an existing persistent disk to attach under the specified device-name in the format
87 'projects/project-id/zones/zone/disks/disk-name'.
88 type: string
89 required:
90 - deviceName
91 - source
92 type: object
93 type: array
94 externalIp:
95 description: Preserved external IPs defined for this instance.
96 This map is keyed with the name of the network interface.
97 items:
98 properties:
99 autoDelete:
100 description: 'These stateful IPs will never be released
101 during autohealing, update or VM instance recreate operations.
102 This flag is used to configure if the IP reservation should
103 be deleted after it is no longer used by the group, e.g.
104 when the given instance or the whole group is deleted.
105 Default value: "NEVER" Possible values: ["NEVER", "ON_PERMANENT_INSTANCE_DELETION"].'
106 type: string
107 interfaceName:
108 type: string
109 ipAddress:
110 description: Ip address representation.
111 properties:
112 address:
113 description: The URL of the reservation for this IP
114 address.
115 type: string
116 type: object
117 required:
118 - interfaceName
119 type: object
120 type: array
121 internalIp:
122 description: Preserved internal IPs defined for this instance.
123 This map is keyed with the name of the network interface.
124 items:
125 properties:
126 autoDelete:
127 description: 'These stateful IPs will never be released
128 during autohealing, update or VM instance recreate operations.
129 This flag is used to configure if the IP reservation should
130 be deleted after it is no longer used by the group, e.g.
131 when the given instance or the whole group is deleted.
132 Default value: "NEVER" Possible values: ["NEVER", "ON_PERMANENT_INSTANCE_DELETION"].'
133 type: string
134 interfaceName:
135 type: string
136 ipAddress:
137 description: Ip address representation.
138 properties:
139 address:
140 description: The URL of the reservation for this IP
141 address.
142 type: string
143 type: object
144 required:
145 - interfaceName
146 type: object
147 type: array
148 metadata:
149 additionalProperties:
150 type: string
151 description: Preserved metadata defined for this instance. This
152 is a list of key->value pairs.
153 type: object
154 type: object
155 projectRef:
156 description: The project that this resource belongs to.
157 properties:
158 external:
159 description: The external name of the referenced resource
160 type: string
161 kind:
162 description: Kind of the referent.
163 type: string
164 name:
165 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
166 type: string
167 namespace:
168 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
169 type: string
170 type: object
171 region:
172 description: Immutable. Region where the containing instance group
173 manager is located.
174 type: string
175 regionInstanceGroupManagerRef:
176 properties:
177 external:
178 description: The external name of the referenced resource
179 type: string
180 kind:
181 description: Kind of the referent.
182 type: string
183 name:
184 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
185 type: string
186 namespace:
187 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
188 type: string
189 type: object
190 removeInstanceStateOnDestroy:
191 description: |-
192 When true, deleting this config will immediately remove any specified state from the underlying instance.
193 When false, deleting this config will *not* immediately remove any state from the underlying instance.
194 State will be removed on the next instance recreation or update.
195 type: boolean
196 resourceID:
197 description: Immutable. Optional. The name of the resource. Used for
198 creation and acquisition. When unset, the value of `metadata.name`
199 is used as the default.
200 type: string
201 required:
202 - projectRef
203 - region
204 - regionInstanceGroupManagerRef
205 type: object
206 status:
207 properties:
208 conditions:
209 description: |-
210 Conditions represent the latest available observations of the
211 ComputeRegionPerInstanceConfig's current state.
212 items:
213 properties:
214 lastTransitionTime:
215 description: Last time the condition transitioned from one status
216 to another.
217 type: string
218 message:
219 description: Human-readable message indicating details about
220 last transition.
221 type: string
222 reason:
223 description: |-
224 Unique, one-word, CamelCase reason for the condition's last
225 transition.
226 type: string
227 status:
228 description: Status is the status of the condition. Can be True,
229 False, Unknown.
230 type: string
231 type:
232 description: Type is the type of the condition.
233 type: string
234 type: object
235 type: array
236 observedGeneration:
237 description: ObservedGeneration is the generation of the resource
238 that was most recently observed by the Config Connector controller.
239 If this is equal to metadata.generation, then that means that the
240 current reported status reflects the most recent desired state of
241 the resource.
242 type: integer
243 type: object
244 type: object
245 served: true
246 storage: true
View as plain text