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
0df6f5d8
Commit
0df6f5d8
authored
Jan 17, 2016
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kube-up: move yaml-quote from GCE & AWS to common
parent
146a9e60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
12 deletions
+9
-12
util.sh
cluster/aws/coreos/util.sh
+0
-3
common.sh
cluster/common.sh
+9
-0
util.sh
cluster/gce/util.sh
+0
-9
No files found.
cluster/aws/coreos/util.sh
View file @
0df6f5d8
...
@@ -53,6 +53,3 @@ function check-minion() {
...
@@ -53,6 +53,3 @@ function check-minion() {
echo
"working"
echo
"working"
}
}
function
yaml-quote
{
echo
"'
$(
echo
"
${
@
}
"
|
sed
-e
"s/'/''/g"
)
'"
}
cluster/common.sh
View file @
0df6f5d8
...
@@ -410,3 +410,12 @@ function stage-images() {
...
@@ -410,3 +410,12 @@ function stage-images() {
rm
-rf
"
${
temp_dir
}
"
rm
-rf
"
${
temp_dir
}
"
return
0
return
0
}
}
# Quote something appropriate for a yaml string.
#
# TODO(zmerlynn): Note that this function doesn't so much "quote" as
# "strip out quotes", and we really should be using a YAML library for
# this, but PyYAML isn't shipped by default, and *rant rant rant ... SIGH*
function
yaml-quote
{
echo
"'
$(
echo
"
${
@
}
"
|
sed
-e
"s/'/''/g"
)
'"
}
cluster/gce/util.sh
View file @
0df6f5d8
...
@@ -465,15 +465,6 @@ function add-instance-metadata-from-file {
...
@@ -465,15 +465,6 @@ function add-instance-metadata-from-file {
done
done
}
}
# Quote something appropriate for a yaml string.
#
# TODO(zmerlynn): Note that this function doesn't so much "quote" as
# "strip out quotes", and we really should be using a YAML library for
# this, but PyYAML isn't shipped by default, and *rant rant rant ... SIGH*
function
yaml-quote
{
echo
"'
$(
echo
"
${
@
}
"
|
sed
-e
"s/'/''/g"
)
'"
}
function
write-master-env
{
function
write-master-env
{
# If the user requested that the master be part of the cluster, set the
# If the user requested that the master be part of the cluster, set the
# environment variable to program the master kubelet to register itself.
# environment variable to program the master kubelet to register itself.
...
...
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