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/k8s-node-type.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'k8s/k8s-node-type.yaml') diff --git a/k8s/k8s-node-type.yaml b/k8s/k8s-node-type.yaml index 4c7f0d3..352acce 100644 --- a/k8s/k8s-node-type.yaml +++ b/k8s/k8s-node-type.yaml @@ -1,5 +1,6 @@ # ================================================================================ # Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2020 Pantheon.tech. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +23,7 @@ plugins: k8s: executor: 'central_deployment_agent' package_name: k8splugin - package_version: 1.7.1 + package_version: 1.7.2 data_types: -- cgit 1.2.3-korg