Don't allow node group information in GKE
This commit is contained in:
parent
81e9226d17
commit
36148b02b8
|
|
@ -64,6 +64,10 @@ type GceCloudProvider struct {
|
||||||
|
|
||||||
// BuildGceCloudProvider builds CloudProvider implementation for GCE.
|
// BuildGceCloudProvider builds CloudProvider implementation for GCE.
|
||||||
func BuildGceCloudProvider(gceManager *GceManager, specs []string) (*GceCloudProvider, error) {
|
func BuildGceCloudProvider(gceManager *GceManager, specs []string) (*GceCloudProvider, error) {
|
||||||
|
if gceManager.mode == ModeGKE && len(specs) != 0 {
|
||||||
|
return nil, fmt.Errorf("GKE gets nodegroup specification via API, command line specs are not allowed")
|
||||||
|
}
|
||||||
|
|
||||||
gce := &GceCloudProvider{
|
gce := &GceCloudProvider{
|
||||||
gceManager: gceManager,
|
gceManager: gceManager,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue