Skip to content

Commit e67c285

Browse files
committed
Add namespaced manifests
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
1 parent d4843a4 commit e67c285

5 files changed

Lines changed: 481 additions & 0 deletions

File tree

File renamed without changes.

examples/memorystore/v1beta1/instancedesiredusercreatedendpoints.yaml renamed to examples/memorystore/cluster/v1beta1/instancedesiredusercreatedendpoints.yaml

File renamed without changes.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-FileCopyrightText: 2025 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
apiVersion: memorystore.gcp.m.upbound.io/v1beta1
6+
kind: Instance
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: memorystore/v1beta1/instance
10+
uptest.upbound.io/timeout: "3600"
11+
labels:
12+
testing.upbound.io/example-name: instance-basic
13+
name: instance-basic
14+
namespace: upbound-system
15+
spec:
16+
forProvider:
17+
deletionProtectionEnabled: false
18+
desiredAutoCreatedEndpoints:
19+
- networkSelector:
20+
matchLabels:
21+
testing.upbound.io/example-name: producer_net
22+
projectId: official-provider-testing
23+
location: us-central1
24+
maintenancePolicy:
25+
weeklyMaintenanceWindow:
26+
- day: MONDAY
27+
startTime:
28+
hours: 1
29+
minutes: 0
30+
nanos: 0
31+
seconds: 0
32+
shardCount: 1
33+
34+
---
35+
36+
apiVersion: compute.gcp.m.upbound.io/v1beta1
37+
kind: Network
38+
metadata:
39+
annotations:
40+
meta.upbound.io/example-id: memorystore/v1beta1/instance
41+
labels:
42+
testing.upbound.io/example-name: producer_net
43+
name: producer-net
44+
namespace: upbound-system
45+
spec:
46+
forProvider:
47+
autoCreateSubnetworks: false
48+
49+
---
50+
51+
apiVersion: compute.gcp.m.upbound.io/v1beta1
52+
kind: Subnetwork
53+
metadata:
54+
annotations:
55+
meta.upbound.io/example-id: memorystore/v1beta1/instance
56+
labels:
57+
testing.upbound.io/example-name: producer_subnet
58+
name: producer-subnet
59+
namespace: upbound-system
60+
spec:
61+
forProvider:
62+
ipCidrRange: 10.0.0.248/29
63+
networkSelector:
64+
matchLabels:
65+
testing.upbound.io/example-name: producer_net
66+
region: us-central1
67+
68+
---
69+
70+
apiVersion: networkconnectivity.gcp.m.upbound.io/v1beta1
71+
kind: ServiceConnectionPolicy
72+
metadata:
73+
annotations:
74+
meta.upbound.io/example-id: memorystore/v1beta1/instance
75+
labels:
76+
testing.upbound.io/example-name: default
77+
name: default
78+
namespace: upbound-system
79+
spec:
80+
forProvider:
81+
description: my basic service connection policy
82+
location: us-central1
83+
networkSelector:
84+
matchLabels:
85+
testing.upbound.io/example-name: producer_net
86+
pscConfig:
87+
subnetworksRefs:
88+
- name: producer-subnet
89+
serviceClass: gcp-memorystore
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
# SPDX-FileCopyrightText: 2025 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
apiVersion: memorystore.gcp.m.upbound.io/v1beta1
6+
kind: InstanceDesiredUserCreatedEndpoints
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
10+
uptest.upbound.io/timeout: "3600"
11+
upjet.upbound.io/manual-intervention: |
12+
This resource needs manually copy the service_attachment values of MemoryStore Instance to ForwardingRule connections.pscConnection.serviceAttachment.
13+
Two different index fields of the google_memorystore_instance resource must be copied to the same field type in two another items of a list.
14+
This is not supported for the XP MR references in terms of. By using the high-level abstractions of XP, this can be achieved.
15+
labels:
16+
testing.upbound.io/example-name: instance-user-conn
17+
name: instance-user-conn
18+
namespace: upbound-system
19+
spec:
20+
forProvider:
21+
region: us-central1
22+
desiredUserCreatedEndpoints:
23+
- connections:
24+
- pscConnection:
25+
forwardingRuleSelector:
26+
matchLabels:
27+
testing.upbound.io/example-name: forwarding_rule1_network1
28+
ipAddressSelector:
29+
matchLabels:
30+
testing.upbound.io/example-name: ip1_network1
31+
networkSelector:
32+
matchLabels:
33+
testing.upbound.io/example-name: network1
34+
pscConnectionIdSelector:
35+
matchLabels:
36+
testing.upbound.io/example-name: forwarding_rule1_network1
37+
serviceAttachment: ${google_memorystore_instance.instance-user-conn.psc_attachment_details[0].service_attachment}
38+
- pscConnection:
39+
forwardingRuleSelector:
40+
matchLabels:
41+
testing.upbound.io/example-name: forwarding_rule2_network1
42+
ipAddressSelector:
43+
matchLabels:
44+
testing.upbound.io/example-name: ip2_network1
45+
networkSelector:
46+
matchLabels:
47+
testing.upbound.io/example-name: network1
48+
pscConnectionIdSelector:
49+
matchLabels:
50+
testing.upbound.io/example-name: forwarding_rule2_network1
51+
serviceAttachment: ${google_memorystore_instance.instance-user-conn.psc_attachment_details[1].service_attachment}
52+
53+
---
54+
55+
apiVersion: compute.gcp.m.upbound.io/v1beta1
56+
kind: Address
57+
metadata:
58+
annotations:
59+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
60+
upjet.upbound.io/manual-intervention: "Root resource skipped"
61+
labels:
62+
testing.upbound.io/example-name: ip1_network1
63+
name: ip1-network1
64+
namespace: upbound-system
65+
spec:
66+
forProvider:
67+
addressType: INTERNAL
68+
purpose: GCE_ENDPOINT
69+
region: us-central1
70+
subnetworkSelector:
71+
matchLabels:
72+
testing.upbound.io/example-name: subnet_network1
73+
74+
---
75+
76+
apiVersion: compute.gcp.m.upbound.io/v1beta1
77+
kind: Address
78+
metadata:
79+
annotations:
80+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
81+
upjet.upbound.io/manual-intervention: "Root resource skipped"
82+
labels:
83+
testing.upbound.io/example-name: ip2_network1
84+
name: ip2-network1
85+
namespace: upbound-system
86+
spec:
87+
forProvider:
88+
addressType: INTERNAL
89+
purpose: GCE_ENDPOINT
90+
region: us-central1
91+
subnetworkSelector:
92+
matchLabels:
93+
testing.upbound.io/example-name: subnet_network1
94+
95+
---
96+
97+
apiVersion: compute.gcp.m.upbound.io/v1beta1
98+
kind: ForwardingRule
99+
metadata:
100+
annotations:
101+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
102+
upjet.upbound.io/manual-intervention: "Root resource skipped"
103+
labels:
104+
testing.upbound.io/example-name: forwarding_rule1_network1
105+
name: forwarding-rule1-network1
106+
namespace: upbound-system
107+
spec:
108+
forProvider:
109+
ipAddressSelector:
110+
matchLabels:
111+
testing.upbound.io/example-name: ip1_network1
112+
loadBalancingScheme: ""
113+
networkSelector:
114+
matchLabels:
115+
testing.upbound.io/example-name: network1
116+
region: us-central1
117+
target: ${google_memorystore_instance.instance-user-conn.psc_attachment_details[0].service_attachment}
118+
119+
---
120+
121+
apiVersion: compute.gcp.m.upbound.io/v1beta1
122+
kind: ForwardingRule
123+
metadata:
124+
annotations:
125+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
126+
upjet.upbound.io/manual-intervention: "Root resource skipped"
127+
labels:
128+
testing.upbound.io/example-name: forwarding_rule2_network1
129+
name: forwarding-rule2-network1
130+
namespace: upbound-system
131+
spec:
132+
forProvider:
133+
ipAddressSelector:
134+
matchLabels:
135+
testing.upbound.io/example-name: ip2_network1
136+
loadBalancingScheme: ""
137+
networkSelector:
138+
matchLabels:
139+
testing.upbound.io/example-name: network1
140+
region: us-central1
141+
target: ${google_memorystore_instance.instance-user-conn.psc_attachment_details[1].service_attachment}
142+
143+
---
144+
145+
apiVersion: compute.gcp.m.upbound.io/v1beta1
146+
kind: Network
147+
metadata:
148+
annotations:
149+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
150+
upjet.upbound.io/manual-intervention: "Root resource skipped"
151+
labels:
152+
testing.upbound.io/example-name: network1
153+
name: network1
154+
namespace: upbound-system
155+
spec:
156+
forProvider:
157+
autoCreateSubnetworks: false
158+
159+
---
160+
161+
apiVersion: compute.gcp.m.upbound.io/v1beta1
162+
kind: Subnetwork
163+
metadata:
164+
annotations:
165+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
166+
upjet.upbound.io/manual-intervention: "Root resource skipped"
167+
labels:
168+
testing.upbound.io/example-name: subnet_network1
169+
name: subnet-network1
170+
namespace: upbound-system
171+
spec:
172+
forProvider:
173+
ipCidrRange: 10.0.0.248/29
174+
networkSelector:
175+
matchLabels:
176+
testing.upbound.io/example-name: network1
177+
region: us-central1
178+
179+
---
180+
181+
apiVersion: memorystore.gcp.m.upbound.io/v1beta1
182+
kind: Instance
183+
metadata:
184+
annotations:
185+
meta.upbound.io/example-id: memorystore/v1beta1/instancedesiredusercreatedendpoints
186+
upjet.upbound.io/manual-intervention: "Root resource skipped"
187+
labels:
188+
testing.upbound.io/example-name: instance-user-conn
189+
name: instance-user-conn
190+
namespace: upbound-system
191+
spec:
192+
forProvider:
193+
deletionProtectionEnabled: false
194+
location: us-central1
195+
shardCount: 1

0 commit comments

Comments
 (0)