forked from GoogleCloudPlatform/k8s-config-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle labels for psc forwarding rule
- Loading branch information
Showing
9 changed files
with
70 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,7 +559,6 @@ X-Xss-Protection: 0 | |
"id": "000000000000000000000", | ||
"kind": "compute#forwardingRule", | ||
"labelFingerprint": "abcdef0123A=", | ||
"loadBalancingScheme": "", | ||
"name": "rule${uniqueId}", | ||
"network": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/networks/${networkID}", | ||
"networkTier": "PREMIUM", | ||
|
@@ -585,7 +584,7 @@ x-goog-request-params: project=${projectId}&resource=rule${uniqueId} | |
"labelFingerprint": "abcdef0123A=", | ||
"labels": { | ||
"cnrm-test": "true", | ||
"label-one": "value-two", | ||
"label-one": "value-one", | ||
"managed-by-cnrm": "true" | ||
} | ||
} | ||
|
@@ -646,10 +645,9 @@ X-Xss-Protection: 0 | |
"labelFingerprint": "abcdef0123A=", | ||
"labels": { | ||
"cnrm-test": "true", | ||
"label-one": "value-two", | ||
"label-one": "value-one", | ||
"managed-by-cnrm": "true" | ||
}, | ||
"loadBalancingScheme": "", | ||
"name": "rule${uniqueId}", | ||
"network": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/networks/${networkID}", | ||
"networkTier": "PREMIUM", | ||
|
@@ -666,44 +664,20 @@ X-Xss-Protection: 0 | |
|
||
--- | ||
|
||
DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/${forwardingRuleID} | ||
POST https://compute.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/${forwardingRuleID}/setLabels | ||
Content-Type: application/json | ||
User-Agent: kcc/controller-manager | ||
x-goog-request-params: project=${projectId}&forwarding_rule=rule${uniqueId} | ||
|
||
200 OK | ||
Cache-Control: private | ||
Content-Type: application/json; charset=UTF-8 | ||
Server: ESF | ||
Vary: Origin | ||
Vary: X-Origin | ||
Vary: Referer | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: SAMEORIGIN | ||
X-Xss-Protection: 0 | ||
x-goog-request-params: project=${projectId}&resource=rule${uniqueId} | ||
|
||
{ | ||
"id": "000000000000000000000", | ||
"insertTime": "2024-04-01T12:34:56.123456Z", | ||
"kind": "compute#operation", | ||
"name": "${operationID}", | ||
"operationType": "deletePSCServiceEndpoint", | ||
"progress": 0, | ||
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}", | ||
"startTime": "2024-04-01T12:34:56.123456Z", | ||
"status": "RUNNING", | ||
"targetId": "${forwardingRulesId}", | ||
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/rule${uniqueId}", | ||
"user": "[email protected]" | ||
"labelFingerprint": "abcdef0123A=", | ||
"labels": { | ||
"cnrm-test": "true", | ||
"label-one": "value-two", | ||
"managed-by-cnrm": "true" | ||
} | ||
} | ||
|
||
--- | ||
|
||
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 | ||
Content-Type: application/json; charset=UTF-8 | ||
|
@@ -721,7 +695,7 @@ X-Xss-Protection: 0 | |
"insertTime": "2024-04-01T12:34:56.123456Z", | ||
"kind": "compute#operation", | ||
"name": "${operationID}", | ||
"operationType": "deletePSCServiceEndpoint", | ||
"operationType": "setLabels", | ||
"progress": 100, | ||
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}", | ||
"startTime": "2024-04-01T12:34:56.123456Z", | ||
|
@@ -733,9 +707,10 @@ X-Xss-Protection: 0 | |
|
||
--- | ||
|
||
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/addresses/${networkID}?alt=json | ||
GET https://compute.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/${forwardingRuleID} | ||
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}&forwarding_rule=rule${uniqueId} | ||
|
||
200 OK | ||
Cache-Control: private | ||
|
@@ -749,27 +724,39 @@ X-Frame-Options: SAMEORIGIN | |
X-Xss-Protection: 0 | ||
|
||
{ | ||
"address": "100.100.100.106", | ||
"addressType": "INTERNAL", | ||
"IPAddress": "8.8.8.8", | ||
"IPProtocol": "TCP", | ||
"creationTimestamp": "2024-04-01T12:34:56.123456Z", | ||
"description": "A global forwarding rule", | ||
"fingerprint": "abcdef0123A=", | ||
"id": "000000000000000000000", | ||
"kind": "compute#address", | ||
"kind": "compute#forwardingRule", | ||
"labelFingerprint": "abcdef0123A=", | ||
"labels": { | ||
"cnrm-test": "true", | ||
"label-one": "value-two", | ||
"managed-by-cnrm": "true" | ||
}, | ||
"name": "${networkID}", | ||
"network": "projects/${projectId}/global/networks/${networkID}", | ||
"purpose": "PRIVATE_SERVICE_CONNECT", | ||
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/addresses/${networkID}" | ||
"name": "rule${uniqueId}", | ||
"network": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/networks/${networkID}", | ||
"networkTier": "PREMIUM", | ||
"pscConnectionId": "111111111111", | ||
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/rule${uniqueId}", | ||
"serviceDirectoryRegistrations": [ | ||
{ | ||
"namespace": "goog-psc-${networkID}-${networkID}", | ||
"serviceDirectoryRegion": "us-central1" | ||
} | ||
], | ||
"target": "all-apis" | ||
} | ||
|
||
--- | ||
|
||
DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/addresses/${networkID}?alt=json | ||
DELETE https://compute.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/${forwardingRuleID} | ||
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}&forwarding_rule=rule${uniqueId} | ||
|
||
200 OK | ||
Cache-Control: private | ||
|
@@ -787,20 +774,22 @@ X-Xss-Protection: 0 | |
"insertTime": "2024-04-01T12:34:56.123456Z", | ||
"kind": "compute#operation", | ||
"name": "${operationID}", | ||
"operationType": "delete", | ||
"operationType": "deletePscForwardingRule", | ||
"progress": 0, | ||
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}", | ||
"startTime": "2024-04-01T12:34:56.123456Z", | ||
"status": "RUNNING", | ||
"targetId": "${addressesId}", | ||
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/addresses/${networkID}", | ||
"targetId": "${forwardingRulesId}", | ||
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/rule${uniqueId}", | ||
"user": "[email protected]" | ||
} | ||
|
||
--- | ||
|
||
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 | ||
|
@@ -819,12 +808,12 @@ X-Xss-Protection: 0 | |
"insertTime": "2024-04-01T12:34:56.123456Z", | ||
"kind": "compute#operation", | ||
"name": "${operationID}", | ||
"operationType": "delete", | ||
"operationType": "deletePscForwardingRule", | ||
"progress": 100, | ||
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/operations/${operationID}", | ||
"startTime": "2024-04-01T12:34:56.123456Z", | ||
"status": "DONE", | ||
"targetId": "${addressesId}", | ||
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/addresses/${networkID}", | ||
"targetId": "${forwardingRulesId}", | ||
"targetLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/forwardingRules/rule${uniqueId}", | ||
"user": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters