mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
kube-up: move yaml-quote from GCE & AWS to common
This commit is contained in:
parent
146a9e6075
commit
0df6f5d8c5
@ -53,6 +53,3 @@ function check-minion() {
|
||||
echo "working"
|
||||
}
|
||||
|
||||
function yaml-quote {
|
||||
echo "'$(echo "${@}" | sed -e "s/'/''/g")'"
|
||||
}
|
||||
|
@ -410,3 +410,12 @@ function stage-images() {
|
||||
rm -rf "${temp_dir}"
|
||||
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")'"
|
||||
}
|
||||
|
@ -465,15 +465,6 @@ function add-instance-metadata-from-file {
|
||||
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 {
|
||||
# If the user requested that the master be part of the cluster, set the
|
||||
# environment variable to program the master kubelet to register itself.
|
||||
|
Loading…
Reference in New Issue
Block a user