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
401985bf
Commit
401985bf
authored
Mar 08, 2016
by
Joe Finney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move KUBERNETES_PROVIDER setting into cluster/kube-util.sh.
parent
e8fda8c9
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
19 additions
and
42 deletions
+19
-42
upgrade.sh
cluster/gce/upgrade.sh
+0
-1
kube-down.sh
cluster/kube-down.sh
+0
-1
kube-env.sh
cluster/kube-env.sh
+0
-8
kube-push.sh
cluster/kube-push.sh
+0
-1
kube-up.sh
cluster/kube-up.sh
+0
-1
kube-util.sh
cluster/kube-util.sh
+9
-8
kubectl.sh
cluster/kubectl.sh
+0
-1
log-dump.sh
cluster/log-dump.sh
+0
-1
kube-up.sh
cluster/rackspace/kube-up.sh
+1
-2
test-e2e.sh
cluster/test-e2e.sh
+1
-1
build-release.sh
hack/e2e-internal/build-release.sh
+1
-2
e2e-cluster-size.sh
hack/e2e-internal/e2e-cluster-size.sh
+1
-2
e2e-down.sh
hack/e2e-internal/e2e-down.sh
+1
-2
e2e-push.sh
hack/e2e-internal/e2e-push.sh
+1
-2
e2e-status.sh
hack/e2e-internal/e2e-status.sh
+1
-2
e2e-up.sh
hack/e2e-internal/e2e-up.sh
+1
-2
e2e-upgrade.sh
hack/e2e-internal/e2e-upgrade.sh
+1
-2
ginkgo-e2e.sh
hack/ginkgo-e2e.sh
+1
-3
No files found.
cluster/gce/upgrade.sh
View file @
401985bf
...
...
@@ -28,7 +28,6 @@ if [[ "${KUBERNETES_PROVIDER:-gce}" != "gce" ]]; then
fi
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
function
usage
()
{
...
...
cluster/kube-down.sh
View file @
401985bf
...
...
@@ -26,7 +26,6 @@ if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
fi
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
echo
"Bringing down cluster using provider:
$KUBERNETES_PROVIDER
"
...
...
cluster/kube-env.sh
View file @
401985bf
...
...
@@ -14,14 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Set the default provider of Kubernetes cluster to know where to load provider-specific scripts
# You can override the default provider by exporting the KUBERNETES_PROVIDER
# variable in your bashrc
#
# The valid values: 'gce', 'gke', 'aws', 'vagrant', 'vsphere', 'libvirt-coreos', 'juju'
KUBERNETES_PROVIDER
=
${
KUBERNETES_PROVIDER
:-
gce
}
# Some useful colors.
if
[[
-z
"
${
color_start
-
}
"
]]
;
then
declare
-r
color_start
=
"
\0
33["
...
...
cluster/kube-push.sh
View file @
401985bf
...
...
@@ -29,7 +29,6 @@ if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
fi
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
function
usage
()
{
...
...
cluster/kube-up.sh
View file @
401985bf
...
...
@@ -31,7 +31,6 @@ if [ -f "${KUBE_ROOT}/cluster/env.sh" ]; then
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
fi
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
...
...
cluster/kube-util.sh
View file @
401985bf
...
...
@@ -14,9 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# A library of helper functions that each provider hosting Kubernetes must implement to use cluster/kube-*.sh scripts.
# This script contains skeletons of helper functions that each provider hosting
# Kubernetes must implement to use cluster/kube-*.sh scripts.
# It sets KUBERNETES_PROVIDER to its default value (gce) if it is unset, and
# then sources cluster/${KUBERNETES_PROVIDER}/util.sh.
KUBE
_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE
RNETES_PROVIDER
=
"
${
KUBERNETES_PROVIDER
:-
gce
}
"
# Must ensure that the following ENV vars are set
function
detect-master
{
...
...
@@ -91,10 +94,8 @@ function test-teardown {
echo
"TODO: test-teardown"
1>&2
}
# Providers util.sh scripts should define functions that override the above default functions impls
if
[
-n
"
${
KUBERNETES_PROVIDER
}
"
]
;
then
PROVIDER_UTILS
=
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
if
[
-f
${
PROVIDER_UTILS
}
]
;
then
source
"
${
PROVIDER_UTILS
}
"
fi
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
PROVIDER_UTILS
=
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
if
[
-f
${
PROVIDER_UTILS
}
]
;
then
source
"
${
PROVIDER_UTILS
}
"
fi
cluster/kubectl.sh
View file @
401985bf
...
...
@@ -31,7 +31,6 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
# Get the absolute path of the directory component of a file, i.e. the
...
...
cluster/log-dump.sh
View file @
401985bf
...
...
@@ -24,7 +24,6 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
:
${
KUBE_CONFIG_FILE
:
=
"config-test.sh"
}
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
readonly
report_dir
=
"
${
1
:-
_artifacts
}
"
...
...
cluster/rackspace/kube-up.sh
View file @
401985bf
...
...
@@ -23,8 +23,7 @@
# exit on any error
set
-e
source
$(
dirname
$0
)
/../kube-env.sh
source
$(
dirname
$0
)
/../
$KUBERNETES_PROVIDER
/util.sh
source
$(
dirname
$0
)
/../kube-util.sh
echo
"Starting cluster using provider:
$KUBERNETES_PROVIDER
"
...
...
cluster/test-e2e.sh
View file @
401985bf
...
...
@@ -22,7 +22,7 @@ set -o nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/cluster/kube-
env
.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-
util
.sh"
echo
"Testing cluster with provider:
${
KUBERNETES_PROVIDER
}
"
1>&2
...
...
hack/e2e-internal/build-release.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/e2e-internal/e2e-cluster-size.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/e2e-internal/e2e-down.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/e2e-internal/e2e-push.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/e2e-internal/e2e-status.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/e2e-internal/e2e-up.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/e2e-internal/e2e-upgrade.sh
View file @
401985bf
...
...
@@ -25,8 +25,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-env.sh"
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
prepare-e2e
...
...
hack/ginkgo-e2e.sh
View file @
401985bf
...
...
@@ -38,7 +38,7 @@ e2e_test=$(kube::util::find-binary "e2e.test")
export
KUBECTL KUBE_CONFIG_FILE
source
"
${
KUBE_ROOT
}
/cluster/kube-
env
.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-
util
.sh"
# ---- Do cloud-provider-specific setup
if
[[
-n
"
${
KUBERNETES_CONFORMANCE_TEST
:-}
"
]]
;
then
...
...
@@ -53,8 +53,6 @@ if [[ -n "${KUBERNETES_CONFORMANCE_TEST:-}" ]]; then
else
echo
"Setting up for KUBERNETES_PROVIDER=
\"
${
KUBERNETES_PROVIDER
}
\"
."
source
"
${
KUBE_ROOT
}
/cluster/
${
KUBERNETES_PROVIDER
}
/util.sh"
prepare-e2e
detect-master
>
/dev/null
...
...
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