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
18c74de9
Commit
18c74de9
authored
Nov 10, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16986 from pmorie/gce-sc
Auto commit by PR queue bot
parents
6fbae33e
ff88cc4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
config-default.sh
cluster/gce/config-default.sh
+1
-1
util.sh
cluster/gce/util.sh
+1
-1
config.go
pkg/kubectl/cmd/config/config.go
+5
-0
No files found.
cluster/gce/config-default.sh
View file @
18c74de9
...
@@ -113,7 +113,7 @@ if [[ "${ENABLE_DAEMONSETS}" == "true" ]]; then
...
@@ -113,7 +113,7 @@ if [[ "${ENABLE_DAEMONSETS}" == "true" ]]; then
fi
fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,Se
curityContextDeny,Se
rviceAccount,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
...
...
cluster/gce/util.sh
View file @
18c74de9
...
@@ -713,7 +713,7 @@ function kube-up {
...
@@ -713,7 +713,7 @@ function kube-up {
# curl in mavericks is borked.
# curl in mavericks is borked.
secure
=
""
secure
=
""
if
which sw_vers
>
/dev/null
;
then
if
which sw_vers
>
&
/dev/null
;
then
if
[[
$(
sw_vers |
grep
ProductVersion |
awk
'{print $2}'
)
=
"10.9."
*
]]
;
then
if
[[
$(
sw_vers |
grep
ProductVersion |
awk
'{print $2}'
)
=
"10.9."
*
]]
;
then
secure
=
"--insecure"
secure
=
"--insecure"
fi
fi
...
...
pkg/kubectl/cmd/config/config.go
View file @
18c74de9
...
@@ -225,6 +225,7 @@ func ModifyConfig(configAccess ConfigAccess, newConfig clientcmdapi.Config, rela
...
@@ -225,6 +225,7 @@ func ModifyConfig(configAccess ConfigAccess, newConfig clientcmdapi.Config, rela
configToWrite
:=
getConfigFromFileOrDie
(
destinationFile
)
configToWrite
:=
getConfigFromFileOrDie
(
destinationFile
)
t
:=
*
cluster
t
:=
*
cluster
configToWrite
.
Clusters
[
key
]
=
&
t
configToWrite
.
Clusters
[
key
]
=
&
t
configToWrite
.
Clusters
[
key
]
.
LocationOfOrigin
=
destinationFile
configToWrite
.
Clusters
[
key
]
.
LocationOfOrigin
=
destinationFile
if
relativizePaths
{
if
relativizePaths
{
...
@@ -429,6 +430,10 @@ func getConfigFromFileOrDie(filename string) *clientcmdapi.Config {
...
@@ -429,6 +430,10 @@ func getConfigFromFileOrDie(filename string) *clientcmdapi.Config {
return
clientcmdapi
.
NewConfig
()
return
clientcmdapi
.
NewConfig
()
}
}
if
config
.
Clusters
==
nil
{
config
.
Clusters
=
map
[
string
]
*
clientcmdapi
.
Cluster
{}
}
return
config
return
config
}
}
...
...
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