Repository: 2gis/k8s-handle

Issue:
skip-tags does not work
Hello,
it seems `--skip-tags` does not work. Steps to reproduce:
```
git clone git@github.com:2gis/k8s-handle-example.git
```
Edit config.yaml, add some tag
```
staging:
  templates:
  - template: configmap.yaml.j2
  - template: deployment.yaml.j2
  - template: service.yaml.j2
    tags: manual
```
Render is empty:
```
$ docker run --rm -v `pwd`:/tmp -w /tmp 2gis/k8s-handle k8s-handle render -s staging --skip-tags manual

                         _(_)_                          wWWWw   _
             @@@@       (_)@(_)   vVVVv     _     @@@@  (___) _(_)_
            @@()@@ wWWWw  (_)\    (___)   _(_)_  @@()@@   Y  (_)@(_)
             @@@@  (___)     `|/    Y    (_)@(_)  @@@@   \|/   (_)
              /      Y       \|    \|/    /(_)    \|      |/      |
           \ |     \ |/       | / \ | /  \|/       |/    \|      \|/
            \|//    \|///    \|//  \|/// \|///    \|//    |//    \|//
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

Discussion:

Patch:
diff --git a/k8s_handle/templating.py b/k8s_handle/templating.py
index 7f2d6b7..445a09e 100644
--- a/k8s_handle/templating.py
+++ b/k8s_handle/templating.py
@@ -195,7 +195,10 @@ class Renderer:
 
     @staticmethod
     def _evaluate_tags(tags, only_tags, skip_tags):
-        if only_tags is None and skip_tags is None:
-            return True
+        if only_tags and tags.isdisjoint(only_tags):
+            return False
 
-        return tags.isdisjoint(skip_tags or []) and not tags.isdisjoint(only_tags or tags)
+        if skip_tags and not tags.isdisjoint(skip_tags):
+            return False
+
+        return True


Test patch:
diff --git a/tests/test_templating.py b/tests/test_templating.py
index cd1ecfe..6a46a01 100644
--- a/tests/test_templating.py
+++ b/tests/test_templating.py
@@ -111,6 +111,9 @@ class TestTemplating(unittest.TestCase):
         self.assertFalse(r._evaluate_tags(tags, only_tags=['tag1'], skip_tags=['tag1']))
         self.assertFalse(r._evaluate_tags(tags, only_tags=None, skip_tags=['tag1']))
         self.assertTrue(r._evaluate_tags(tags, only_tags=None, skip_tags=['tag4']))
+        tags = set()
+        self.assertFalse(r._evaluate_tags(tags, only_tags=['tag4'], skip_tags=None))
+        self.assertTrue(r._evaluate_tags(tags, only_tags=None, skip_tags=['tag4']))
 
     def test_get_template_tags(self):
         r = templating.Renderer(os.path.join(os.path.dirname(__file__), 'templates_tests'))