mirror of https://github.com/k3s-io/k3s
Expose the generate stub for compute API
This allows clients such as Ingress to begin migration to the newly generated stubs.pull/6/head
parent
6afa03fcb8
commit
2514774707
|
@ -229,6 +229,11 @@ func (g *GCECloud) ComputeServices() *Services {
|
|||
return &Services{g.service, g.serviceAlpha, g.serviceBeta}
|
||||
}
|
||||
|
||||
// Compute returns the generated stubs for the compute API.
|
||||
func (g *GCECloud) Compute() cloud.Cloud {
|
||||
return g.c
|
||||
}
|
||||
|
||||
// newGCECloud creates a new instance of GCECloud.
|
||||
func newGCECloud(config io.Reader) (gceCloud *GCECloud, err error) {
|
||||
var cloudConfig *CloudConfig
|
||||
|
|
Loading…
Reference in New Issue