mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
add get alpha backend service into cloud provider
This commit is contained in:
parent
b188868fd9
commit
43f20bd57f
@ -38,6 +38,13 @@ func (gce *GCECloud) GetGlobalBackendService(name string) (*compute.BackendServi
|
|||||||
return v, mc.Observe(err)
|
return v, mc.Observe(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetAlphaGlobalBackendService retrieves alpha backend by name.
|
||||||
|
func (gce *GCECloud) GetAlphaGlobalBackendService(name string) (*computealpha.BackendService, error) {
|
||||||
|
mc := newBackendServiceMetricContextWithVersion("get", "", computeAlphaVersion)
|
||||||
|
v, err := gce.serviceAlpha.BackendServices.Get(gce.projectID, name).Do()
|
||||||
|
return v, mc.Observe(err)
|
||||||
|
}
|
||||||
|
|
||||||
// UpdateGlobalBackendService applies the given BackendService as an update to an existing service.
|
// UpdateGlobalBackendService applies the given BackendService as an update to an existing service.
|
||||||
func (gce *GCECloud) UpdateGlobalBackendService(bg *compute.BackendService) error {
|
func (gce *GCECloud) UpdateGlobalBackendService(bg *compute.BackendService) error {
|
||||||
mc := newBackendServiceMetricContext("update", "")
|
mc := newBackendServiceMetricContext("update", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user