Change kubeconfig file location 96/83896/2
authorJack Lucas <jflucas@research.att.com>
Mon, 1 Apr 2019 22:00:19 +0000 (18:00 -0400)
committerJack Lucas <jflucas@research.att.com>
Tue, 2 Apr 2019 14:52:35 +0000 (10:52 -0400)
By putting kubeconfig in its own directory, we make
sure updates to the underlying configMap become
visible to the plugin without restarting CM.

Issue-ID: DCAEGEN2-1136
Change-Id: Ifbc5bed31cdcf285b1cf845427679f631eaa4645
Signed-off-by: Jack Lucas <jflucas@research.att.com>
k8s/ChangeLog.md
k8s/k8s-node-type.yaml
k8s/k8sclient/k8sclient.py
k8s/pom.xml
k8s/setup.py

index 2511802..ee209ee 100644 (file)
@@ -5,6 +5,12 @@ 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.4.12]
+ Change location of kubeconfig file for multi-cluster support.  Put the
+ file in a subdirectory so that the k8s volume mount does not require a
+ "subPath" parameter, so that updates to the ConfigMap hosting the kubeconfig
+ will be visible to the plugin without restarting Cloudify Manager.
+
 ## [1.4.11]
  change v['container']['mode'] to v['container'].get('mode') to allow for
  the 'mode' value to be absent from v['container']
index f47a2bc..b51a23f 100644 (file)
@@ -25,7 +25,7 @@ plugins:
   k8s:
     executor: 'central_deployment_agent'
     package_name: k8splugin
-    package_version: 1.4.11
+    package_version: 1.4.12
 
 data_types:
 
index 3a02efd..f8a9ecc 100644 (file)
@@ -28,7 +28,7 @@ PROBE_DEFAULT_PERIOD = 15
 PROBE_DEFAULT_TIMEOUT = 1
 
 # Location of k8s cluster config file ("kubeconfig")
-K8S_CONFIG_PATH="/opt/onap/kubeconfig"
+K8S_CONFIG_PATH="/opt/onap/kube/kubeconfig"
 
 # Regular expression for interval/timeout specification
 INTERVAL_SPEC = re.compile("^([0-9]+)(s|m|h)?$")
index 22db83c..6a12eac 100644 (file)
@@ -28,7 +28,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
   <groupId>org.onap.dcaegen2.platform.plugins</groupId>
   <artifactId>k8s</artifactId>
   <name>k8s-plugin</name>
-  <version>1.4.10-SNAPSHOT</version>
+  <version>1.4.12-SNAPSHOT</version>
   <url>http://maven.apache.org</url>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
index bfe213c..c8fd2ef 100644 (file)
@@ -23,7 +23,7 @@ from setuptools import setup
 setup(
     name='k8splugin',
     description='Cloudify plugin for containerized components deployed using Kubernetes',
-    version="1.4.11",
+    version="1.4.12",
     author='J. F. Lucas, Michael Hwang, Tommy Carpenter',
     packages=['k8splugin','k8sclient','msb','configure'],
     zip_safe=False,