summaryrefslogtreecommitdiffstats
path: root/k8s/k8splugin/tasks.py
diff options
context:
space:
mode:
authorMiroslav Los <miroslav.los@pantheon.tech>2019-12-09 18:20:59 +0100
committerMiroslav Los <miroslav.los@pantheon.tech>2019-12-12 17:46:28 +0100
commit4435e8803a6844245d2529cae840a3d55d84c296 (patch)
tree495b8e368934755342190ab6047109c467304243 /k8s/k8splugin/tasks.py
parent4682668e697b71bbc1be4133cb66fad0df1b735b (diff)
Customize python import for kubernetes plugin
Cloudify manager fails to find the plugin without this helper. The original code, cloudify-python-importer, is unmaintained. It is just one module, licensed under Apache2.0 as well. It also needs a python3 fix, hence the module code is added here. Note that what the modification does should not be necessary, and a proper root cause and fix needs to be found eventually. Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech> Issue-ID: DCAEGEN2-1988 Change-Id: I28274dff902204362d7f5b6f97ac3381ff8b5411
Diffstat (limited to 'k8s/k8splugin/tasks.py')
-rw-r--r--k8s/k8splugin/tasks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/k8s/k8splugin/tasks.py b/k8s/k8splugin/tasks.py
index 956fff2..2bfd3e1 100644
--- a/k8s/k8splugin/tasks.py
+++ b/k8s/k8splugin/tasks.py
@@ -21,6 +21,9 @@
# Lifecycle interface calls for containerized components
+# Needed by Cloudify Manager to load google.auth for the Kubernetes python client
+from . import cloudify_importer
+
import time, copy
import json
from cloudify import ctx