Skip to content

Added K8S 1.8-11.x and the missing -strict#8

Closed
consideRatio wants to merge 6 commits intogarethr:masterfrom
consideRatio:strict-pr
Closed

Added K8S 1.8-11.x and the missing -strict#8
consideRatio wants to merge 6 commits intogarethr:masterfrom
consideRatio:strict-pr

Conversation

@consideRatio
Copy link
Copy Markdown

@garethr thank you for the work you have done with this and kubeval! It made me catch a sneaky bug that took a long time to find. I hope to use kubeval with an even more satisfactory feeling using these updates.

This PR

  1. Added fresh versions
    • v1.11.0
    • v1.10.5
    • v1.9.9
    • v1.8.14
  2. Complemented versions lacking -strict directories
  3. Updated master fully
  4. I added tooling to avoid running old stuff once again pointlessly (recreate=false in build.sh)

@consideRatio
Copy link
Copy Markdown
Author

@hiddeco thanks for paving the way, your PR functioned as documentation on how to contribute for me =D

Comment thread build.sh Outdated
openapi2jsonschema -o "${version}-standalone" --kubernetes --stand-alone "${schema}"
fi

if [ "${recreate}" = true ] || [ ! -d -o "${version}-local" ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an extra -o here that is incorrect.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh woops - I tested what would happen with this this mistake of including -o and realized that this means that whatever I ran with recreate=false with a non-existing ...-local directory were never created.

I'll make sure to fix this, and generate potentially missing ...-local directories.


# the empirical test I made to determine what adding -o caused
mkdir test
if [ ! -d -o "test" ]; then echo "1"; fi
if [ ! -d "test" ]; then echo "2"; fi
if [ ! -d -o "testNoExistance" ]; then echo "3"; fi
if [ ! -d "testNoExistance" ]; then echo "4"; fi
# output was "4" only

@consideRatio
Copy link
Copy Markdown
Author

Thanks @willthames for reviewing the changes I made to the generation script.

I had generated all the ...-local folders were before I introduced these conditionals with this bug causing non-existing -local folders to not be generated - in other words: no harm was done.

@willthames
Copy link
Copy Markdown

willthames commented Jul 11, 2018

@consideRatio - yeah, I noticed because I wanted to generate -local-strict and copied the -local step and then wondered why nothing happened :)

@garethr
Copy link
Copy Markdown
Owner

garethr commented Apr 3, 2019

Apologies for taking an age to get back to this, I've not had much time to maintain in a while unfortunately. I've done a bulk update of versions today, and have some plans afoot to move this into a standalone org and get more folks involved as maintainers. I'll ping when I have more details in case you might still be interested.

@garethr garethr closed this Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants