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
}
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);
}