Skip to content

Commit

Permalink
forwardingrule logs: realGCP with TF controller
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Sep 18, 2024
1 parent 733eb5b commit e22c4ad
Show file tree
Hide file tree
Showing 12 changed files with 209 additions and 384 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ metadata:
annotations:
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
cnrm.cloud.google.com/state-into-spec: absent
finalizers:
- cnrm.cloud.google.com/finalizer
- cnrm.cloud.google.com/deletion-defender
generation: 2
generation: 3
labels:
cnrm-test: "true"
label-one: value-one
Expand All @@ -22,6 +23,7 @@ spec:
networkRef:
name: default
portRange: "80"
resourceID: computeglobalforwardingrule-${uniqueId}
target:
targetHTTPProxyRef:
name: computetargethttpproxy-2-${uniqueId}
Expand All @@ -32,8 +34,6 @@ status:
reason: UpToDate
status: "True"
type: Ready
creationTimestamp: "1970-01-01T00:00:00Z"
externalRef: //compute.googleapis.com/projects/${projectId}/global/forwardingrules/computeglobalforwardingrule-${uniqueId}
labelFingerprint: abcdef0123A=
observedGeneration: 2
observedGeneration: 3
selfLink: https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/computeglobalforwardingrule-${uniqueId}
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "RUNNING",
"targetId": "6892156816374335225",
"targetId": "8040709866794777225",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -598,7 +598,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "DONE",
"targetId": "6892156816374335225",
"targetId": "8040709866794777225",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -695,7 +695,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "RUNNING",
"targetId": "5318909071783855822",
"targetId": "3909463378338773661",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -727,7 +727,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "DONE",
"targetId": "5318909071783855822",
"targetId": "3909463378338773661",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -762,10 +762,9 @@ X-Xss-Protection: 0

---

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

404 Not Found
Cache-Control: private
Expand Down Expand Up @@ -794,10 +793,9 @@ X-Xss-Protection: 0

---

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

{
"IPAddress": "8.8.8.8",
Expand Down Expand Up @@ -842,10 +840,8 @@ X-Xss-Protection: 0

---

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

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

---

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

200 OK
Cache-Control: private
Expand All @@ -903,19 +898,18 @@ X-Xss-Protection: 0
"labelFingerprint": "abcdef0123A=",
"loadBalancingScheme": "INTERNAL_SELF_MANAGED",
"name": "computeglobalforwardingrule-${uniqueId}",
"network": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/networks/${networkID}",
"network": "https://www.googleapis.com/compute/beta/projects/${projectId}/global/networks/${networkID}",
"networkTier": "PREMIUM",
"portRange": "80-80",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/computeglobalforwardingrule-${uniqueId}",
"target": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}"
"target": "https://www.googleapis.com/compute/beta/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}"
}

---

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

{
"labelFingerprint": "abcdef0123A=",
Expand Down Expand Up @@ -955,10 +949,9 @@ X-Xss-Protection: 0

---

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

200 OK
Cache-Control: private
Expand Down Expand Up @@ -987,19 +980,18 @@ X-Xss-Protection: 0
},
"loadBalancingScheme": "INTERNAL_SELF_MANAGED",
"name": "computeglobalforwardingrule-${uniqueId}",
"network": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/networks/${networkID}",
"network": "https://www.googleapis.com/compute/beta/projects/${projectId}/global/networks/${networkID}",
"networkTier": "PREMIUM",
"portRange": "80-80",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/computeglobalforwardingrule-${uniqueId}",
"target": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}"
"target": "https://www.googleapis.com/compute/beta/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}"
}

---

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

{
"target": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}"
Expand Down Expand Up @@ -1033,10 +1025,8 @@ X-Xss-Protection: 0

---

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

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

---

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

200 OK
Cache-Control: private
Expand Down Expand Up @@ -1099,19 +1088,18 @@ X-Xss-Protection: 0
},
"loadBalancingScheme": "INTERNAL_SELF_MANAGED",
"name": "computeglobalforwardingrule-${uniqueId}",
"network": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/networks/${networkID}",
"network": "https://www.googleapis.com/compute/beta/projects/${projectId}/global/networks/${networkID}",
"networkTier": "PREMIUM",
"portRange": "80-80",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/computeglobalforwardingrule-${uniqueId}",
"target": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}"
"target": "https://www.googleapis.com/compute/beta/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}"
}

---

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

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

---

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

200 OK
Cache-Control: private
Expand Down Expand Up @@ -1228,7 +1214,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "RUNNING",
"targetId": "5318909071783855822",
"targetId": "3909463378338773661",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -1260,7 +1246,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "DONE",
"targetId": "5318909071783855822",
"targetId": "3909463378338773661",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-2-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -1320,7 +1306,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "RUNNING",
"targetId": "6892156816374335225",
"targetId": "8040709866794777225",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}",
"user": "[email protected]"
}
Expand Down Expand Up @@ -1352,7 +1338,7 @@ X-Xss-Protection: 0
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}",
"startTime": "2024-04-01T12:34:56.123456Z",
"status": "DONE",
"targetId": "6892156816374335225",
"targetId": "8040709866794777225",
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetHttpProxies/computetargethttpproxy-${uniqueId}",
"user": "[email protected]"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ metadata:
annotations:
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/project-id: ${projectId}
cnrm.cloud.google.com/state-into-spec: absent
finalizers:
- cnrm.cloud.google.com/finalizer
- cnrm.cloud.google.com/deletion-defender
generation: 2
generation: 3
labels:
cnrm-test: "true"
label-one: value-two
Expand All @@ -30,6 +31,7 @@ spec:
name: default
networkTier: PREMIUM
portRange: "80"
resourceID: computeglobalforwardingrule-${uniqueId}
target:
targetHTTPProxyRef:
name: computetargethttpproxy-2-${uniqueId}
Expand All @@ -40,8 +42,6 @@ status:
reason: UpToDate
status: "True"
type: Ready
creationTimestamp: "1970-01-01T00:00:00Z"
externalRef: //compute.googleapis.com/projects/${projectId}/global/forwardingrules/computeglobalforwardingrule-${uniqueId}
labelFingerprint: abcdef0123A=
observedGeneration: 2
observedGeneration: 3
selfLink: https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/computeglobalforwardingrule-${uniqueId}
Loading

0 comments on commit e22c4ad

Please sign in to comment.