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

Support for additional cache paths. Made cache an optional flag. Cleanup #138

Merged
merged 4 commits into from
Aug 8, 2018

Conversation

adrianchifor
Copy link
Member

@adrianchifor adrianchifor commented Aug 1, 2018

  • Ability to add more folders to .kapitan_cache:
kapitan compile --cache --cache-paths path1 path2

or

cat > .kapitan
compile:
  cache: true
  cache-paths:
    - path1
    - path2

kapitan compile

@adrianchifor adrianchifor changed the title Support for additional cache paths. Cleanup Support for additional cache paths. Made cache an optional flag. Cleanup Aug 7, 2018
@@ -28,7 +28,7 @@ def setUp(self):
os.chdir(os.getcwd() + '/examples/kubernetes/')

def test_compile(self):
sys.argv = ["kapitan", "compile", "-f"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should have a test for the cache functionality as well.

Maybe 2 separate tests

  • kapitan compile
  • kapitan compile --cache

Copy link
Member Author

@adrianchifor adrianchifor Aug 7, 2018

Choose a reason for hiding this comment

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

Will write a test in another PR

@adrianchifor adrianchifor merged commit b34e373 into master Aug 8, 2018
@adrianchifor adrianchifor deleted the cache-updates branch August 8, 2018 20:43
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