aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2022-06-23 12:58:40 +0000
committerGerrit Code Review <gerrit@onap.org>2022-06-23 12:58:40 +0000
commit1abd07ec730d82edc0c9b0289387163366352061 (patch)
treeed327bf1e30538f4424fda43e085211200ad4693
parent6f40c0dc91bd115e2935ccbfc11c50d1c8f40fbe (diff)
parentde476b25bc7576f84bf0a29af8bd334352f85bcf (diff)
Merge "Fix K8s participant fails to verify the status of the deployed pods"
-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);
}