Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7aa9a460
Commit
7aa9a460
authored
Sep 29, 2017
by
Erik McClenney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge conflicts.
parent
15816b38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
gce.go
pkg/cloudprovider/providers/gce/gce.go
+1
-6
No files found.
pkg/cloudprovider/providers/gce/gce.go
View file @
7aa9a460
...
@@ -21,11 +21,8 @@ import (
...
@@ -21,11 +21,8 @@ import (
"io"
"io"
"net/http"
"net/http"
"regexp"
"regexp"
<<<<<<<
master
"runtime"
"runtime"
=======
"strconv"
"strconv"
>>>>>>>
master
"strings"
"strings"
"sync"
"sync"
"time"
"time"
...
@@ -348,19 +345,17 @@ func generateCloudConfig(configFile *ConfigFile) (cloudConfig *CloudConfig, err
...
@@ -348,19 +345,17 @@ func generateCloudConfig(configFile *ConfigFile) (cloudConfig *CloudConfig, err
// If no tokenSource is specified, uses oauth2.DefaultTokenSource.
// If no tokenSource is specified, uses oauth2.DefaultTokenSource.
// If managedZones is nil / empty all zones in the region will be managed.
// If managedZones is nil / empty all zones in the region will be managed.
func
CreateGCECloud
(
config
*
CloudConfig
)
(
*
GCECloud
,
error
)
{
func
CreateGCECloud
(
config
*
CloudConfig
)
(
*
GCECloud
,
error
)
{
<<<<<<<
master
// Remove any pre-release version and build metadata from the semver, leaving only the MAJOR.MINOR.PATCH portion.
// Remove any pre-release version and build metadata from the semver, leaving only the MAJOR.MINOR.PATCH portion.
// See http://semver.org/.
// See http://semver.org/.
version
:=
strings
.
TrimLeft
(
strings
.
Split
(
strings
.
Split
(
version
.
Get
()
.
GitVersion
,
"-"
)[
0
],
"+"
)[
0
],
"v"
)
version
:=
strings
.
TrimLeft
(
strings
.
Split
(
strings
.
Split
(
version
.
Get
()
.
GitVersion
,
"-"
)[
0
],
"+"
)[
0
],
"v"
)
// Create a user-agent header append string to supply to the Google API clients, to identify Kubernetes as the origin of the GCP API calls.
// Create a user-agent header append string to supply to the Google API clients, to identify Kubernetes as the origin of the GCP API calls.
userAgent
:=
fmt
.
Sprintf
(
"Kubernetes/%s (%s %s)"
,
version
,
runtime
.
GOOS
,
runtime
.
GOARCH
)
userAgent
:=
fmt
.
Sprintf
(
"Kubernetes/%s (%s %s)"
,
version
,
runtime
.
GOOS
,
runtime
.
GOARCH
)
=======
// Use ProjectID for NetworkProjectID, if it wasn't explicitly set.
// Use ProjectID for NetworkProjectID, if it wasn't explicitly set.
if
config
.
NetworkProjectID
==
""
{
if
config
.
NetworkProjectID
==
""
{
config
.
NetworkProjectID
=
config
.
ProjectID
config
.
NetworkProjectID
=
config
.
ProjectID
}
}
>>>>>>>
master
client
,
err
:=
newOauthClient
(
config
.
TokenSource
)
client
,
err
:=
newOauthClient
(
config
.
TokenSource
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment