coderanger / kitchen-kubernetes

A Test Kitchen driver for testing on top of a Kubernetes cluster.
Apache License 2.0
29 stars 10 forks source link

Add support for the latest kitchen version #11

Open ghost opened 5 years ago

ghost commented 5 years ago

ChefDK version 4.0.60 (latest version at the time of writing) comes with a newer version of kitchen.

$ kitchen --version
Test Kitchen version 2.2.5

The current gemspec doesn't support this version, resulting in the driver not being loaded.

spec.add_dependency 'test-kitchen', '~> 1.18'

Changing this to the following allowed the driver to be loaded, and after some testing there doesn't seem to be an issue with the newer version of the kitchen.

spec.add_dependency 'test-kitchen', '>= 1.18'

I've tried making a pull request, but I'm having issues with creating a branch (permissions?!). So my request is to add support for the latest version of the kitchen as well as the previous versions. The change shouldn't be that difficult, I've found that I only needed to change these 2 files:

I couldn't find other places for this change.

ghost commented 5 years ago

I've created a pull request for this issue:

https://github.com/coderanger/kitchen-kubernetes/pull/12