File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1153,12 +1153,8 @@ private static void installPrometheusGrafanaViaChart() throws Exception {
1153
1153
private static void installWebHookAndAlertManager () throws Exception {
1154
1154
String monitoringExporterEndToEndDir =
1155
1155
monitoringExporterDir + "/src/samples/kubernetes/end2end/" ;
1156
- // delete any running pods
1157
- deletePrometheusGrafana ();
1158
- prometheusPort = "30000" ;
1159
- String crdCmd = "kubectl create ns monitoring" ;
1160
- TestUtils .exec (crdCmd );
1161
- crdCmd = "cd " + monitoringExporterEndToEndDir + " && docker build ./webhook -t webhook-log:1.0" ;
1156
+
1157
+ String crdCmd = "cd " + monitoringExporterEndToEndDir + " && docker build ./webhook -t webhook-log:1.0" ;
1162
1158
TestUtils .exec (crdCmd );
1163
1159
1164
1160
// install webhook
@@ -1169,7 +1165,7 @@ private static void installWebHookAndAlertManager() throws Exception {
1169
1165
TestUtils .exec (crdCmd );
1170
1166
1171
1167
StringBuffer cmd = new StringBuffer ();
1172
- cmd .append ("kubectl get pod -l app=webhook -o jsonpath=\" {.items[0].metadata.name} \" " );
1168
+ cmd .append ("kubectl get pod -n webhook - l app=webhook -o jsonpath=\" {.items[0].metadata.name} \" " );
1173
1169
logger .info ("webhook pod name cmd =" + cmd );
1174
1170
ExecResult result = ExecCommand .exec (cmd .toString ());
1175
1171
String webhookPod = null ;
You can’t perform that action at this time.
0 commit comments