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