From e8711deaf88ea1640907b646234a145cd3c444cb Mon Sep 17 00:00:00 2001 From: hieptranquoc Date: Thu, 1 Feb 2018 13:01:16 +0700 Subject: [PATCH] @#31 | add k8s resource --- .idea/kubernetes-stack-cookbook.iml | 16 + .idea/misc.xml | 4 + .idea/modules.xml | 8 + .idea/workspace.xml | 304 ++++++++++++++++ .kitchen.dokken.yml | 21 +- .kitchen.yml | 45 ++- .travis.yml | 30 +- CONTRIBUTING.md | 1 + CONTRIBUTORS.md | 2 +- README.md | 101 +++++- TESTING.md | 1 + attributes/default.rb | 37 +- .../kubernetes-stack-cookbook/metadata.rb | 1 + dev-setup/vagrant_config_default.json | 3 +- libraries/helpers.rb | 51 +++ libraries/matcher.rb | 4 + metadata.rb | 2 + resources/gcloud.rb | 340 +++++++++++------- resources/helm.rb | 222 +++++++++--- resources/kubectl.rb | 193 +++++++--- resources/minikube.rb | 265 ++++++++++++++ spec/unit/resources/install_gcloud_spec.rb | 20 +- spec/unit/resources/install_helm_spec.rb | 20 +- spec/unit/resources/install_kubectl_spec.rb | 20 +- spec/unit/resources/install_minikube_spec.rb | 81 +++++ .../kubernetes-stack-test/metadata.rb | 1 + .../kubernetes-stack-test/recipes/default.rb | 2 + .../kubernetes-stack-test/recipes/docker.rb | 30 ++ .../kubernetes-stack-test/recipes/install.rb | 13 + .../recipes/install_gcloud_for_chefspec.rb | 6 +- .../recipes/install_helm_for_chefspec.rb | 4 +- .../recipes/install_kubectl_for_chefspec.rb | 6 +- .../recipes/install_minikube_for_chefspec.rb | 6 + .../recipes/uninstall.rb | 8 +- .../gcloud_install_specific_version_test.rb | 2 +- .../kubectl_install_specific_version_test.rb | 2 +- .../minikube/minikube_install_default_test.rb | 55 +++ .../minikube_install_specific_version_test.rb | 22 ++ .../smoke/minikube/minikube_uninstall_test.rb | 20 ++ 39 files changed, 1588 insertions(+), 381 deletions(-) create mode 100644 .idea/kubernetes-stack-cookbook.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/workspace.xml create mode 100644 CONTRIBUTING.md create mode 100644 TESTING.md create mode 100644 libraries/helpers.rb create mode 100644 resources/minikube.rb create mode 100644 spec/unit/resources/install_minikube_spec.rb create mode 100644 test/fixtures/cookbooks/kubernetes-stack-test/recipes/docker.rb create mode 100644 test/fixtures/cookbooks/kubernetes-stack-test/recipes/install_minikube_for_chefspec.rb create mode 100644 test/smoke/minikube/minikube_install_default_test.rb create mode 100644 test/smoke/minikube/minikube_install_specific_version_test.rb create mode 100644 test/smoke/minikube/minikube_uninstall_test.rb diff --git a/.idea/kubernetes-stack-cookbook.iml b/.idea/kubernetes-stack-cookbook.iml new file mode 100644 index 0000000..f8b023f --- /dev/null +++ b/.idea/kubernetes-stack-cookbook.iml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..de6e841 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..01001c1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..9db6edb --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +