Files
kubernetes/pkg
Kubernetes Submit Queue c968d99ee5 Merge pull request #62516 from nicksardo/expand-id
Automatic merge from submit-queue (batch tested with PRs 62060, 62516). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

[GCE] Add new formats to resource parser and self link creator

**What this PR does / why we need it**:
- Expands the set of parse-able strings for resource IDs, while also simplifying the code. Note that these are acceptable values for some fields in GCP API.
  - global/networks/my-network
  - regions/us-central1/subnetworks/my-sub
  - zones/us-central1-a/instances/my-hacker-instance
- Fixes the SelfLink function to return links for regions and zones:
  - https://www.googleapis.com/compute/v1/projects/proj4/regions/us-central1
- Generates helper functions to create a ResourceID for each resource
- Generates a unit test that ensures all links can be generated and all generated links can be parsed.
- Fixes an ILB test which creates a malformed URL.

**Special notes for your reviewer**:
/assign rramkumar1

**Release note**:
```release-note
NONE
```
2018-05-02 18:12:06 -07:00
..
2018-05-01 07:51:17 -04:00
2018-02-16 13:43:01 -08:00
2018-04-25 09:47:14 -07:00
2018-04-26 08:27:49 -04:00
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-04-11 18:35:24 +02:00
2018-02-16 13:43:01 -08:00
2018-03-13 17:20:16 +08:00