|
| 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