From b10bd92fc39633dbfffba2e5bd5c4630baf880e6 Mon Sep 17 00:00:00 2001 From: Miroslav Los Date: Wed, 18 Dec 2019 18:28:59 +0100 Subject: 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 Issue-ID: DCAEGEN2-2006 Change-Id: I13a091de9207bab1c7d4eee3179263c5d994ffbf --- k8s/ChangeLog.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'k8s/ChangeLog.md') diff --git a/k8s/ChangeLog.md b/k8s/ChangeLog.md index 9690e15..f56bd96 100644 --- a/k8s/ChangeLog.md +++ b/k8s/ChangeLog.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.7.2] +* DCAEGEN2-2006 Reduce code complexity + The k8sclient.k8sclient.deploy function parameter 'resources' is now an optional + keyword argument, i.e. it must be passed named and not as a positional argument. + ## [1.7.1] * DCAEGEN2-1988 Customize python import for kubernetes plugin -- cgit 1.2.3-korg