aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-impl
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2022-06-20 08:52:20 +0100
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>2022-06-20 07:57:27 +0000
commitde476b25bc7576f84bf0a29af8bd334352f85bcf (patch)
treefa94ac5ef9cd7f7430dfdc34d31a4f81cf00c48b /participant/participant-impl
parent606853eb526ee836c436f29acb3edfc6ed7f63f2 (diff)
Fix K8s participant fails to verify the status of the deployed pods
The participant verifies the status of the deployed pods in the cluster with the string name appending the release name and chart id. Verification would fail if the name of the pod doesn't contain the helm release name, hence removing the same. Issue-ID: POLICY-4236 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I1f63452aa1135d59cc4c4daa3f9303a18fe0702d
Diffstat (limited to 'participant/participant-impl')
-rw-r--r--participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/helm/PodStatusValidator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/helm/PodStatusValidator.java b/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/helm/PodStatusValidator.java
index f8b08a6be..8267bda13 100644
--- a/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/helm/PodStatusValidator.java
+++ b/participant/participant-impl/participant-impl-kubernetes/src/main/java/org/onap/policy/clamp/acm/participant/kubernetes/helm/PodStatusValidator.java
@@ -91,8 +91,8 @@ public class PodStatusValidator implements Runnable {
}
private ProcessBuilder verifyPodStatusCommand(ChartInfo chart) {
- String podName = chart.getReleaseName() + "-" + chart.getChartId().getName();
- String cmd = "kubectl get pods --namespace " + chart.getNamespace() + " | grep " + podName;
+ String cmd = "kubectl get pods --namespace " + chart.getNamespace() + " | grep "
+ + chart.getChartId().getName();
return new ProcessBuilder("sh", "-c", cmd);
}