From cbc1e1c92b7b1b4fcef7f9d878c561784a2aeae0 Mon Sep 17 00:00:00 2001 From: simonebruzzechesse <60114646+simonebruzzechesse@users.noreply.github.com> Date: Sun, 4 Jul 2021 16:46:52 +0200 Subject: [PATCH 1/2] Added prettier configuration in .eslintrc file to automatically detect EOL in order to avoid failure on windows systems during build process --- client/.eslintrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/.eslintrc b/client/.eslintrc index e5bd28a..2323c0f 100644 --- a/client/.eslintrc +++ b/client/.eslintrc @@ -2,6 +2,11 @@ "extends": "react-app", "plugins": ["prettier"], "rules": { - "prettier/prettier": "error" + "prettier/prettier": [ + "error", + { + "endOfLine": "auto" + }, + ] } } \ No newline at end of file From 22e0db33fdb9cebe23723d300dda5364ef3c3c2b Mon Sep 17 00:00:00 2001 From: simonebruzzechesse <60114646+simonebruzzechesse@users.noreply.github.com> Date: Sun, 4 Jul 2021 16:48:37 +0200 Subject: [PATCH 2/2] Added NOT labels.goog-gke-node=* in compute tag_filter configuration to avoid listing VMs belonging to GKE node pools having the same tags specified for a given policy --- gcp/compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp/compute.py b/gcp/compute.py index 17bf9ba..de4e89c 100644 --- a/gcp/compute.py +++ b/gcp/compute.py @@ -29,7 +29,7 @@ def change_status(self, to_status, tagkey, tagvalue): Returns: """ - tag_filter = "labels." + tagkey + "=" + tagvalue + tag_filter = "labels." + tagkey + "=" + tagvalue + " NOT labels.goog-gke-node=*" logging.debug("Filter %s", filter) for zone in gcp.get_zones(): try: