Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a constraint for minimal required kitchen version #1193

Open
coredump opened this issue Feb 13, 2017 · 1 comment
Open

Add a constraint for minimal required kitchen version #1193

coredump opened this issue Feb 13, 2017 · 1 comment

Comments

@coredump
Copy link

Description

Currently there's no way on .kitchen.yml to specify what version is the lowest required one to run the tests/tools correctly.
That causes issues where new functionality are added to kitchen and used in the YAML but are ignored or return errors because someone is trying to run it on a kitchen version that doesn't support the new stuff.

Kitchen Version

Test Kitchen version 1.15.0

ChefDK Version

Chef Development Kit Version: 1.3.6
chef-client version: 12.18.31
delivery version: master (0b746cafed65a9ea1a79de3cc546e7922de9187c)
berks version: 2017-02-13T12:28:45.811234 8804] 2017-02-13T12:28:45.811394 8804] 2017-02-13T12:28:45.811504 8804] 2017-02-13T12:28:45.811603 8804] 2017-02-13T12:28:45.852202 8804] 2017-02-13T12:28:45.852492 8804] 5.6.0
kitchen version: 1.15.0
chef -v  3.01s user 0.71s

Platform Version

MacOS 10.11.6

Replication Case

  • Create a kitchen YAML config using the policyfile directive under provisioner.
  • Run the config using test-kitchen version 1.6.0

Kitchen will ignore policyfiles and try to converge an empty run list.

@cheeseplus
Copy link

I think this would be fairly non-invasive and could just be a warning. Something like:

---
kitchen_min_version: 1.14.0

@tas50 tas50 added this to To do in 2021 Work via automation Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants