mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	update e2e for GCE ApiEndpoint support
This commit is contained in:
		| @@ -80,7 +80,8 @@ func setupProviderConfig() error { | ||||
| 		if !framework.TestContext.CloudConfig.MultiZone { | ||||
| 			managedZones = []string{zone} | ||||
| 		} | ||||
| 		cloudConfig.Provider, err = gcecloud.CreateGCECloud(framework.TestContext.CloudConfig.ProjectID, | ||||
| 		cloudConfig.Provider, err = gcecloud.CreateGCECloud(framework.TestContext.CloudConfig.ApiEndpoint, | ||||
| 			framework.TestContext.CloudConfig.ProjectID, | ||||
| 			region, zone, managedZones, "" /* networkUrl */, "" /* subnetworkUrl */, nil, /* nodeTags */ | ||||
| 			"" /* nodeInstancePerfix */, nil /* tokenSource */, false /* useMetadataServer */) | ||||
| 		if err != nil { | ||||
|   | ||||
| @@ -133,6 +133,7 @@ type NodeTestContextType struct { | ||||
| } | ||||
|  | ||||
| type CloudConfig struct { | ||||
| 	ApiEndpoint       string | ||||
| 	ProjectID         string | ||||
| 	Zone              string | ||||
| 	MultiZone         bool | ||||
| @@ -203,6 +204,7 @@ func RegisterClusterFlags() { | ||||
| 	// TODO: Flags per provider?  Rename gce-project/gce-zone? | ||||
| 	cloudConfig := &TestContext.CloudConfig | ||||
| 	flag.StringVar(&cloudConfig.MasterName, "kube-master", "", "Name of the kubernetes master. Only required if provider is gce or gke") | ||||
| 	flag.StringVar(&cloudConfig.ApiEndpoint, "gce-api-endpoint", "", "The GCE ApiEndpoint being used, if applicable") | ||||
| 	flag.StringVar(&cloudConfig.ProjectID, "gce-project", "", "The GCE project being used, if applicable") | ||||
| 	flag.StringVar(&cloudConfig.Zone, "gce-zone", "", "GCE zone being used, if applicable") | ||||
| 	flag.BoolVar(&cloudConfig.MultiZone, "gce-multizone", false, "If true, start GCE cloud provider with multizone support.") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user