Address k8s plugin code smells reported by sonar 45/100045/4
authorMiroslav Los <miroslav.los@pantheon.tech>
Wed, 18 Dec 2019 17:28:59 +0000 (18:28 +0100)
committerMiroslav Los <miroslav.los@pantheon.tech>
Fri, 17 Jan 2020 18:02:50 +0000 (19:02 +0100)
commitb10bd92fc39633dbfffba2e5bd5c4630baf880e6
treea58da0e1a1b53869553cb94f8619d97daf0bca09
parent0208d99f681e2a0f00a4f0cd8e7a45f41ea67c1a
Address k8s plugin code smells reported by sonar

Make 'resources' argument to k8sclient.k8sclient.deploy an
optional kwarg, update its uses and document it.
Split off code reported complex from deploy into functions.
Tweak a nested if in tasks.

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: DCAEGEN2-2006
Change-Id: I13a091de9207bab1c7d4eee3179263c5d994ffbf
k8s/ChangeLog.md
k8s/k8s-node-type.yaml
k8s/k8sclient/k8sclient.py
k8s/k8splugin/tasks.py
k8s/pom.xml
k8s/setup.py
k8s/tests/common.py