Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#1215 from hkundag/gilb
Browse files Browse the repository at this point in the history
change ComputeForwardingRule subnetworkRef to use self_link
  • Loading branch information
google-oss-prow[bot] authored Feb 8, 2024
2 parents b045288 + 6d10947 commit 60543cf
Show file tree
Hide file tree
Showing 13 changed files with 385 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ spec:
- external
properties:
external:
description: 'Allowed value: The `name` field of a `ComputeSubnetwork`
description: 'Allowed value: The `selfLink` field of a `ComputeSubnetwork`
resource.'
type: string
name:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
addressType: INTERNAL
location: us-central1
ipVersion: IPV4
purpose: SHARED_LOADBALANCER_VIP
subnetworkRef:
name: computeforwardingrule-dep-global-internal-http-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeBackendService
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
healthChecks:
- healthCheckRef:
name: computeforwardingrule-dep-global-internal-http-proxy
loadBalancingScheme: INTERNAL_MANAGED
location: global
protocol: HTTP
backend:
- balancingMode: UTILIZATION
group:
instanceGroupRef:
name: computeforwardingrule-dep-global-internal-http-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
name: computeforwardingrule-sample-global-internal-http-proxy
spec:
target:
targetHTTPProxyRef:
name: computeforwardingrule-dep-global-internal-http-proxy
ipAddress:
addressRef:
name: computeforwardingrule-dep-global-internal-http-proxy
ipProtocol: "TCP"
loadBalancingScheme: INTERNAL_MANAGED
location: global
networkRef:
name: computeforwardingrule-dep-global-internal-http-proxy
subnetworkRef:
name: computeforwardingrule-dep-global-internal-http-proxy
portRange: '80-80'
allowGlobalAccess: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeHealthCheck
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
httpHealthCheck:
port: 80
location: global
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeInstanceGroup
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
zone: us-central1-a
networkRef:
name: computeforwardingrule-dep-global-internal-http-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
ipCidrRange: 10.2.0.0/28
region: us-central1
networkRef:
name: computeforwardingrule-dep-global-internal-http-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy-proxy
spec:
ipCidrRange: 10.3.0.0/26
region: us-central1
purpose: GLOBAL_MANAGED_PROXY
role: ACTIVE
networkRef:
name: computeforwardingrule-dep-global-internal-http-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeTargetHTTPProxy
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
urlMapRef:
name: computeforwardingrule-dep-global-internal-http-proxy
location: global
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeURLMap
metadata:
name: computeforwardingrule-dep-global-internal-http-proxy
spec:
defaultService:
backendServiceRef:
name: computeforwardingrule-dep-global-internal-http-proxy
location: global
2 changes: 2 additions & 0 deletions config/servicemappings/compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ spec:
kind: ComputeSubnetwork
version: v1beta1
group: compute.cnrm.cloud.google.com
targetField: self_link
- key: backendServiceRef
tfField: backend_service
description: |-
Expand Down Expand Up @@ -672,6 +673,7 @@ spec:
kind: ComputeSubnetwork
version: v1beta1
group: compute.cnrm.cloud.google.com
targetField: self_link
containers:
- type: project
tfField: project
Expand Down
Loading

0 comments on commit 60543cf

Please sign in to comment.