k3s/cluster/kube-push.sh

38 lines
1.1 KiB
Bash
Raw Normal View History

2014-06-06 23:40:48 +00:00
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
2014-06-06 23:40:48 +00:00
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Push a new release to the cluster.
#
# This will find the release tar, cause it to be downloaded, unpacked, installed
# and enacted.
set -o errexit
set -o nounset
set -o pipefail
2014-06-06 23:40:48 +00:00
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/cluster/kube-env.sh"
source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
2014-06-06 23:40:48 +00:00
echo "Updating cluster using provider: $KUBERNETES_PROVIDER"
2014-06-06 23:40:48 +00:00
verify-prereqs
2014-07-25 00:50:19 +00:00
kube-push
2014-06-06 23:40:48 +00:00
"${KUBE_ROOT}/cluster/validate-cluster.sh"
2014-07-29 04:42:53 +00:00
echo "Done"