Label k8s Deployments for healthcheck 62/112762/3
authorJack Lucas <jflos@sonoris.net>
Wed, 16 Sep 2020 18:01:01 +0000 (14:01 -0400)
committerJack Lucas <jflos@sonoris.net>
Thu, 17 Sep 2020 16:36:25 +0000 (12:36 -0400)
Issue-ID: DCAEGEN2-2433
Signed-off-by: Jack Lucas <jflos@sonoris.net>
Change-Id: I12b5ca5d0c70d7c8d42c1ec1ce88841d2cf25cd7

24 files changed:
k8s/k8sclient/k8sclient.py
k8s/k8splugin_types.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-appconfig.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-bad.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-dr-sub.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-dmaap-mr-pub.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-env.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-lifecycle-inputs.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-loc.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-log.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-nodeport.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-noports.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-override.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-policy-loc.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-policy-no-notify.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-policy.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-script-bad.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-script.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-tls-client.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-tls-server.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc-udp.yaml
k8s/plugin_testing_blueprints/blueprints/nginx-svc.yaml
k8s/pom.xml
k8s/setup.py

index a41d32d..68feaec 100644 (file)
@@ -4,6 +4,7 @@
 # Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
 # Copyright (c) 2020 Pantheon.tech. All rights reserved.
 # Copyright (c) 2020 Nokia. All rights reserved.
+# Copyright (c) 2020 J. F. Lucas.  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.
@@ -216,7 +217,7 @@ def _create_deployment_object(component_name,
     deployment = client.V1Deployment(
         api_version="apps/v1",
         kind="Deployment",
-        metadata=client.V1ObjectMeta(name=deployment_name),
+        metadata=client.V1ObjectMeta(name=deployment_name, labels=labels),
         spec=spec
     )
 
index f6c518b..d216e31 100644 (file)
@@ -2,6 +2,7 @@
 # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
 # Copyright (c) 2020 Pantheon.tech. All rights reserved.
 # Copyright (c) 2020 Nokia. All rights reserved.
+# Copyright (c) 2020 J. F. Lucas.  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.
@@ -23,7 +24,7 @@ plugins:
   k8s:
     executor: 'central_deployment_agent'
     package_name: k8splugin
-    package_version: 3.4.1
+    package_version: 3.4.2
 
 data_types:
 
index 4373680..d11db0e 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index 2b51650..8219608 100644 (file)
@@ -9,7 +9,7 @@ description: >
 \r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
 \r
 node_templates:\r
   web_server:\r
index 1bbbf34..edc9f6d 100644 (file)
@@ -7,7 +7,7 @@ description: >
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
   - plugin:dmaap?version=1.5.0
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 node_templates:
   feed00:
     type: dcaegen2.nodes.Feed
index 177598c..056f238 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
   - plugin:dmaap?version=1.5.0
 
 node_templates:
index b9e3fae..bec3f2c 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index 61c9de4..1237011 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index e1863c6..d842dba 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index 61dc274..ceeff6a 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index c22a96b..68469e2 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index bf93df4..fbdb657 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index fdaf1b0..fac9901 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index c09b610..eec8e14 100644 (file)
@@ -6,7 +6,7 @@ description: >
 \r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
   - plugin:dcaepolicyplugin?version=2.4.0\r
 \r
 node_templates:\r
index 7ae6c36..75ec82e 100644 (file)
@@ -9,7 +9,7 @@ description: >
   a policy is updated.\r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
   - plugin:dcaepolicyplugin?version=2.4.0\r
 \r
 node_templates:\r
index d8bde75..5f761d9 100644 (file)
@@ -9,7 +9,7 @@ description: >
 \r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
   - plugin:dcaepolicyplugin?version=2.4.0\r
 \r
 node_templates:\r
index d080fd7..2e5ad53 100644 (file)
@@ -9,7 +9,7 @@ description: >
 \r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
 \r
 node_templates:\r
   web_server:\r
index 97306d3..093c1bd 100644 (file)
@@ -6,7 +6,7 @@ description: >
 \r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
 \r
 node_templates:\r
   web_server:\r
index 02e61ee..ed1d80b 100644 (file)
@@ -6,7 +6,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index aefc0af..14cdae6 100644 (file)
@@ -8,7 +8,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index 3eb3019..e394448 100644 (file)
@@ -6,7 +6,7 @@ description: >
 \r
 imports:\r
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml\r
-  - plugin:k8splugin?version=3.0.0\r
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0\r
 \r
 node_templates:\r
   web_server:\r
index 98078b7..59ce663 100644 (file)
@@ -5,7 +5,7 @@ description: >
 
 imports:
   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-  - plugin:k8splugin?version=3.0.0
+  - plugin:k8splugin?version=>=3.0.0,<4.0.0
 
 node_templates:
   web_server:
index 5cdc265..9b47a6e 100644 (file)
@@ -4,6 +4,7 @@
 Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
 Copyright (c) 2020 Pantheon.tech. All rights reserved.
 Copyright (c) 2020 Nokia. All rights reserved.
+Copyright (c) 2020 J. F. Lucas.  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.
@@ -28,7 +29,7 @@ limitations under the License.
   <groupId>org.onap.dcaegen2.platform.plugins</groupId>
   <artifactId>k8s</artifactId>
   <name>k8s-plugin</name>
-  <version>3.4.1-SNAPSHOT</version>
+  <version>3.4.2-SNAPSHOT</version>
   <url>http://maven.apache.org</url>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
index ad1072e..282aef8 100644 (file)
@@ -4,6 +4,7 @@
 # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
 # Copyright (c) 2020 Pantheon.tech. All rights reserved.
 # Copyright (c) 2020 Nokia. All rights reserved.
+# Copyright (c) 2020 J. F. Lucas.  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.
@@ -23,7 +24,7 @@ from setuptools import setup
 setup(
     name='k8splugin',
     description='Cloudify plugin for containerized components deployed using Kubernetes',
-    version="3.4.1",
+    version="3.4.2",
     author='J. F. Lucas, Michael Hwang, Tommy Carpenter, Joanna Jeremicz, Sylwia Jakubek, Jan Malkiewicz, Remigiusz Janeczek',
     packages=['k8splugin','k8sclient','configure'],
     zip_safe=False,