Skip to content

Commit

Permalink
Upgrade to kind v0.6.1 (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
  • Loading branch information
davidkarlsen authored and unguiculus committed Dec 20, 2019
1 parent 64a7508 commit ad1f32e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For more information, reference the GitHub Help Documentation for [Creating a wo

For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)

- `version`: The kind version to use (default: `v0.5.1`)
- `version`: The kind version to use (default: `v0.6.1`)
- `config`: The path to the kind config file
- `node-image`: The Docker image for the cluster nodes
- `name`: The name of the cluster to create (default: `chart-testing`)
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branding:
icon: box
inputs:
version:
description: "The kind version to use (default: v0.5.1)"
description: "The kind version to use (default: v0.6.1)"
config:
description: "The path to the kind config file"
node_image:
Expand Down
12 changes: 2 additions & 10 deletions kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ set -o errexit
set -o nounset
set -o pipefail

DEFAULT_KIND_VERSION=v0.5.1
DEFAULT_KIND_VERSION=v0.6.1
DEFAULT_CLUSTER_NAME=chart-testing

show_help() {
cat << EOF
Usage: $(basename "$0") <options>
-h, --help Display help
-v, --version The kind version to use (default: v0.5.1)"
-v, --version The kind version to use (default: v0.6.1)"
-c, --config The path to the kind config file"
-i, --node-image The Docker image for the cluster nodes"
-n, --cluster-name The name of the cluster to create (default: chart-testing)"
Expand All @@ -53,7 +53,6 @@ main() {
install_kind
install_kubectl
create_kind_cluster
set_kubeconfig

if [[ -n "$install_local_path_provisioner" ]]; then
install_local_path_provisioner
Expand Down Expand Up @@ -172,13 +171,6 @@ create_kind_cluster() {
kind "${args[@]}"
}

set_kubeconfig() {
local kubeconfig_path
kubeconfig_path=$(kind get kubeconfig-path "--name=$cluster_name")

mv "$kubeconfig_path" "$HOME/.kube/config"
}

install_local_path_provisioner() {
echo 'Installing local-path provisioner...'
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
Expand Down

0 comments on commit ad1f32e

Please sign in to comment.