Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#3148 from gemmahou/reference-r…
Browse files Browse the repository at this point in the history
…egional-tcp

test: Add test case for reference regional target tcp proxy in CFR
  • Loading branch information
google-oss-prow[bot] authored Dec 30, 2024
2 parents afaf658 + dd994d1 commit 974a6ea
Show file tree
Hide file tree
Showing 67 changed files with 4,206 additions and 89 deletions.
2 changes: 1 addition & 1 deletion dev/tasks/run-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [[ -z "${KUBEBUILDER_ASSETS:-}" ]]; then
fi

if [[ -z "${KCC_USE_DIRECT_RECONCILERS:-}" ]]; then
KCC_USE_DIRECT_RECONCILERS=ComputeForwardingRule,GKEHubFeatureMembership,SpannerInstance
KCC_USE_DIRECT_RECONCILERS=GKEHubFeatureMembership,SpannerInstance
fi
echo "Using direct controllers: $KCC_USE_DIRECT_RECONCILERS"
export KCC_USE_DIRECT_RECONCILERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-two"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeregionalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-two"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeregionalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-two"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: rule${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-two"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: rule${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-one"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ComputeForwardingRule
metadata:
labels:
label-one: "value-two"
annotations:
alpha.cnrm.cloud.google.com/reconciler: "direct"
name: computeglobalforwardingrule-${uniqueId}
spec:
description: "A global forwarding rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
annotations:
alpha.cnrm.cloud.google.com/reconciler: direct
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
finalizers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

404 Not Found
Cache-Control: private
Expand Down Expand Up @@ -455,15 +456,16 @@ X-Xss-Protection: 0

---

POST https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies?alt=json
POST https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}

{
"description": "test description",
"name": "computetargettcpproxy-${uniqueId}",
"proxyHeader": "NONE",
"service": "projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
"service": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
}

200 OK
Expand Down Expand Up @@ -494,8 +496,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&operation=${operationID}

200 OK
Cache-Control: private
Expand Down Expand Up @@ -526,9 +530,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

200 OK
Cache-Control: private
Expand All @@ -549,14 +554,15 @@ X-Xss-Protection: 0
"name": "computetargettcpproxy-${uniqueId}",
"proxyHeader": "NONE",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/computetargettcpproxy-${uniqueId}",
"service": "projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
"service": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
}

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

404 Not Found
Cache-Control: private
Expand Down Expand Up @@ -585,15 +591,16 @@ X-Xss-Protection: 0

---

POST https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies?alt=json
POST https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}

{
"description": "other test description",
"name": "computetargettcpproxy2-${uniqueId}",
"proxyHeader": "NONE",
"service": "projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
"service": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
}

200 OK
Expand Down Expand Up @@ -624,8 +631,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&operation=${operationID}

200 OK
Cache-Control: private
Expand Down Expand Up @@ -656,9 +665,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

200 OK
Cache-Control: private
Expand All @@ -679,7 +689,7 @@ X-Xss-Protection: 0
"name": "computetargettcpproxy2-${uniqueId}",
"proxyHeader": "NONE",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/computetargettcpproxy2-${uniqueId}",
"service": "projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
"service": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
}

---
Expand Down Expand Up @@ -1137,9 +1147,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

200 OK
Cache-Control: private
Expand All @@ -1160,14 +1171,15 @@ X-Xss-Protection: 0
"name": "computetargettcpproxy2-${uniqueId}",
"proxyHeader": "NONE",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/computetargettcpproxy2-${uniqueId}",
"service": "projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
"service": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
}

---

DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

200 OK
Cache-Control: private
Expand Down Expand Up @@ -1197,8 +1209,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&operation=${operationID}

200 OK
Cache-Control: private
Expand Down Expand Up @@ -1229,9 +1243,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

200 OK
Cache-Control: private
Expand All @@ -1252,14 +1267,15 @@ X-Xss-Protection: 0
"name": "computetargettcpproxy-${uniqueId}",
"proxyHeader": "NONE",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/computetargettcpproxy-${uniqueId}",
"service": "projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
"service": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}"
}

---

DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}?alt=json
DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/targetTcpProxies/${targetTcpProxyID}
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&target_tcp_proxy=${targetTcpProxyID}

200 OK
Cache-Control: private
Expand Down Expand Up @@ -1289,8 +1305,10 @@ X-Xss-Protection: 0

---

GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}?alt=json&prettyPrint=false
User-Agent: google-api-go-client/0.5 Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}
Content-Type: application/json
User-Agent: kcc/controller-manager
x-goog-request-params: project=${projectId}&operation=${operationID}

200 OK
Cache-Control: private
Expand Down
Loading

0 comments on commit 974a6ea

Please sign in to comment.