...
Text file
src/edge-infra.dev/test/fixtures/crds/gcp/compute.cnrm.cloud.google.com_computeregionnetworkendpointgroups.yaml
1---
2apiVersion: apiextensions.k8s.io/v1
3kind: CustomResourceDefinition
4metadata:
5 annotations:
6 controller-gen.kubebuilder.io/version: (unknown)
7 name: computeregionnetworkendpointgroups.compute.cnrm.cloud.google.com
8spec:
9 group: compute.cnrm.cloud.google.com
10 names:
11 kind: ComputeRegionNetworkEndpointGroup
12 listKind: ComputeRegionNetworkEndpointGroupList
13 plural: computeregionnetworkendpointgroups
14 singular: computeregionnetworkendpointgroup
15 scope: Namespaced
16 versions:
17 - name: v1beta1
18 schema:
19 openAPIV3Schema:
20 description: ComputeRegionNetworkEndpointGroup 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 cloudFunction:
43 description: |-
44 Immutable. Only valid when networkEndpointType is "SERVERLESS".
45 Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set.
46 properties:
47 functionRef:
48 description: |-
49 Immutable. A user-defined name of the Cloud Function.
50 The function name is case-sensitive and must be 1-63 characters long.
51 Example value: "func1".
52 properties:
53 external:
54 description: The external name of the referenced resource
55 type: string
56 kind:
57 description: Kind of the referent.
58 type: string
59 name:
60 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
61 type: string
62 namespace:
63 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
64 type: string
65 type: object
66 urlMask:
67 description: |-
68 Immutable. A template to parse function field from a request URL. URL mask allows
69 for routing to multiple Cloud Functions without having to create
70 multiple Network Endpoint Groups and backend services.
71
72
73 For example, request URLs "mydomain.com/function1" and "mydomain.com/function2"
74 can be backed by the same Serverless NEG with URL mask "/". The URL mask
75 will parse them to { function = "function1" } and { function = "function2" } respectively.
76 type: string
77 type: object
78 cloudRun:
79 description: |-
80 Immutable. Only valid when networkEndpointType is "SERVERLESS".
81 Only one of cloud_run, app_engine, cloud_function or serverless_deployment may be set.
82 properties:
83 serviceRef:
84 description: |-
85 Immutable. Cloud Run service is the main resource of Cloud Run.
86 The service must be 1-63 characters long, and comply with RFC1035.
87 Example value: "run-service".
88 properties:
89 external:
90 description: The external name of the referenced resource
91 type: string
92 kind:
93 description: Kind of the referent.
94 type: string
95 name:
96 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
97 type: string
98 namespace:
99 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
100 type: string
101 type: object
102 tag:
103 description: |-
104 Immutable. Cloud Run tag represents the "named-revision" to provide
105 additional fine-grained traffic routing information.
106 The tag must be 1-63 characters long, and comply with RFC1035.
107 Example value: "revision-0010".
108 type: string
109 urlMask:
110 description: |-
111 Immutable. A template to parse service and tag fields from a request URL.
112 URL mask allows for routing to multiple Run services without having
113 to create multiple network endpoint groups and backend services.
114
115
116 For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2"
117 an be backed by the same Serverless Network Endpoint Group (NEG) with
118 URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" }
119 and { service="bar2", tag="foo2" } respectively.
120 type: string
121 type: object
122 description:
123 description: |-
124 Immutable. An optional description of this resource. Provide this property when
125 you create the resource.
126 type: string
127 networkEndpointType:
128 description: 'Immutable. Type of network endpoints in this network
129 endpoint group. Defaults to SERVERLESS Default value: "SERVERLESS"
130 Possible values: ["SERVERLESS", "PRIVATE_SERVICE_CONNECT"].'
131 type: string
132 networkRef:
133 description: |-
134 Immutable. This field is only used for PSC.
135 The URL of the network to which all network endpoints in the NEG belong. Uses
136 "default" project network if unspecified.
137 properties:
138 external:
139 description: The external name of the referenced resource
140 type: string
141 kind:
142 description: Kind of the referent.
143 type: string
144 name:
145 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
146 type: string
147 namespace:
148 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
149 type: string
150 type: object
151 pscTargetService:
152 description: |-
153 Immutable. The target service url used to set up private service connection to
154 a Google API or a PSC Producer Service Attachment.
155 type: string
156 region:
157 description: Immutable. A reference to the region where the Serverless
158 NEGs Reside.
159 type: string
160 resourceID:
161 description: Immutable. Optional. The name of the resource. Used for
162 creation and acquisition. When unset, the value of `metadata.name`
163 is used as the default.
164 type: string
165 subnetworkRef:
166 description: |-
167 Immutable. This field is only used for PSC.
168 Optional URL of the subnetwork to which all network endpoints in the NEG belong.
169 properties:
170 external:
171 description: The external name of the referenced resource
172 type: string
173 kind:
174 description: Kind of the referent.
175 type: string
176 name:
177 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
178 type: string
179 namespace:
180 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
181 type: string
182 type: object
183 required:
184 - region
185 type: object
186 status:
187 properties:
188 conditions:
189 description: |-
190 Conditions represent the latest available observations of the
191 ComputeRegionNetworkEndpointGroup's current state.
192 items:
193 properties:
194 lastTransitionTime:
195 description: Last time the condition transitioned from one status
196 to another.
197 type: string
198 message:
199 description: Human-readable message indicating details about
200 last transition.
201 type: string
202 reason:
203 description: |-
204 Unique, one-word, CamelCase reason for the condition's last
205 transition.
206 type: string
207 status:
208 description: Status is the status of the condition. Can be True,
209 False, Unknown.
210 type: string
211 type:
212 description: Type is the type of the condition.
213 type: string
214 type: object
215 type: array
216 observedGeneration:
217 description: ObservedGeneration is the generation of the resource
218 that was most recently observed by the Config Connector controller.
219 If this is equal to metadata.generation, then that means that the
220 current reported status reflects the most recent desired state of
221 the resource.
222 type: integer
223 selfLink:
224 type: string
225 type: object
226 type: object
227 served: true
228 storage: true
View as plain text