summaryrefslogtreecommitdiffstats
path: root/healthcheck-container
diff options
context:
space:
mode:
authorGrzegorz-Lis <grzegorz.lis@nokia.com>2020-08-17 12:51:33 +0200
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2020-08-17 11:08:21 +0000
commit5d4676685ce7cb7c3c04e177fc6cef84e8733c21 (patch)
treeecf823c4bce769b5e5c2e921ef024b095fcf34e7 /healthcheck-container
parent34652247e654f5ac6fc8e6ce4159da6c201cb6b2 (diff)
[DCAE] Update dcae-health-check to support K8S 1.17 APIs
Issue-ID: DCAEGEN2-2387 Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com> Change-Id: I2b9e85e0af5543de6da8ea6644815090cb194193
Diffstat (limited to 'healthcheck-container')
-rw-r--r--healthcheck-container/get-status.js3
-rw-r--r--healthcheck-container/pom.xml3
2 files changed, 4 insertions, 2 deletions
diff --git a/healthcheck-container/get-status.js b/healthcheck-container/get-status.js
index 282b71e..f3c4f97 100644
--- a/healthcheck-container/get-status.js
+++ b/healthcheck-container/get-status.js
@@ -1,5 +1,6 @@
/*
Copyright(c) 2018 AT&T Intellectual Property. All rights reserved.
+Copyright(c) 2020 Nokia Intellectual Property. 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 @@ const https = require('https');
const K8S_CREDS = '/var/run/secrets/kubernetes.io/serviceaccount';
const K8S_HOST = 'kubernetes.default.svc.cluster.local'; // Full name to match cert for TLS
-const K8S_PATH = 'apis/apps/v1beta2/namespaces/';
+const K8S_PATH = 'apis/apps/v1/namespaces/';
const MAX_DEPS = 1000; // Maximum number of k8s deployments to return from a query to k8s
diff --git a/healthcheck-container/pom.xml b/healthcheck-container/pom.xml
index 3b41ab9..c2c325f 100644
--- a/healthcheck-container/pom.xml
+++ b/healthcheck-container/pom.xml
@@ -2,6 +2,7 @@
<!--
================================================================================
Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
+Copyright (c) 2020 NOKIA Intellectual Property. 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.
@@ -27,7 +28,7 @@ limitations under the License.
<groupId>org.onap.dcaegen2.deployments</groupId>
<artifactId>healthcheck-container</artifactId>
<name>dcaegen2-deployments-healthcheck-container</name>
- <version>2.0.0</version>
+ <version>2.1.0</version>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>