mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-15 23:40:25 +00:00
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 ```