File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1130,14 +1130,19 @@ private static void uninstallPrometheusGrafanaViaChart() throws Exception {
1130
1130
ExecCommand .exec (crdCmd );
1131
1131
crdCmd = "kubectl delete -f " + monitoringExporterEndToEndDir + "/grafana/persistence.yaml" ;
1132
1132
ExecCommand .exec (crdCmd );
1133
+ Thread .sleep (15000 );
1133
1134
1134
1135
// uninstall prometheus
1135
1136
logger .info ("Uninstalling prometheus" );
1136
1137
crdCmd = "helm delete --purge prometheus" ;
1137
1138
ExecCommand .exec (crdCmd );
1139
+ Thread .sleep (15000 );
1140
+ logger .info ("Uninstalling prometheus persistence " );
1138
1141
crdCmd = "kubectl delete -f " + monitoringExporterEndToEndDir + "/prometheus/persistence.yaml" ;
1139
1142
ExecCommand .exec (crdCmd );
1143
+ Thread .sleep (15000 );
1140
1144
1145
+ logger .info ("Uninstalling namespace monitoring " );
1141
1146
crdCmd = "kubectl delete namespace monitoring" ;
1142
1147
TestUtils .exec (crdCmd );
1143
1148
}
@@ -1154,9 +1159,10 @@ private static void uninstallMySQL() throws Exception {
1154
1159
logger .info ("Uninstalling mysql" );
1155
1160
String crdCmd = " kubectl delete -f " + monitoringExporterEndToEndDir + "mysql/mysql.yaml" ;
1156
1161
ExecCommand .exec (crdCmd );
1157
-
1162
+ Thread . sleep ( 15000 );
1158
1163
crdCmd = " kubectl delete -f " + monitoringExporterEndToEndDir + "mysql/persistence.yaml" ;
1159
1164
ExecCommand .exec (crdCmd );
1165
+ Thread .sleep (15000 );
1160
1166
deletePvDir ();
1161
1167
}
1162
1168
You can’t perform that action at this time.
0 commit comments