@@ -708,7 +708,7 @@ private static void gitCloneBuildMonitoringExporter() throws Exception {
708
708
private static void deployMonitoringExporterPrometethusGrafana (
709
709
String exporterAppPath , Domain domain , Operator operator ) throws Exception {
710
710
711
- String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/" ;
711
+ String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/deployments/ " ;
712
712
713
713
String crdCmd = " kubectl apply -f " + samplesDir + "monitoring-namespace.yaml" ;
714
714
ExecResult result = ExecCommand .exec (crdCmd );
@@ -760,7 +760,7 @@ private static void resetMonitoringExporterToPreBuiltConfig() throws Exception {
760
760
761
761
private static void deletePrometheusGrafana () throws Exception {
762
762
763
- String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/" ;
763
+ String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/deployments/ " ;
764
764
765
765
String crdCmd = " kubectl delete -f " + samplesDir + "prometheus-deployment.yaml" ;
766
766
TestUtils .exec (crdCmd );
@@ -780,7 +780,7 @@ private static void deletePrometheusGrafana() throws Exception {
780
780
* @throws IOException when copying files from source location to staging area fails
781
781
*/
782
782
private static void createCoordinatorFile (String domainNS ) throws IOException {
783
- String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/" ;
783
+ String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/deployments/ " ;
784
784
Path src = Paths .get (resourceExporterDir + "/coordinator.yml" );
785
785
Path dst = Paths .get (samplesDir + "/coordinator_" + domainNS + ".yaml" );
786
786
if (!dst .toFile ().exists ()) {
@@ -800,7 +800,7 @@ private static void createCoordinatorFile(String domainNS) throws IOException {
800
800
* @throws IOException when copying files from source location to staging area fails
801
801
*/
802
802
private static void createCrossNSRBACFile (String domainNS , String operatorNS ) throws IOException {
803
- String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/" ;
803
+ String samplesDir = monitoringExporterDir + "/src/samples/kubernetes/deployments/ " ;
804
804
Path src = Paths .get (samplesDir + "/crossnsrbac.yaml" );
805
805
Path dst = Paths .get (samplesDir + "/crossnsrbac_" + domainNS + "_" + operatorNS + ".yaml" );
806
806
if (!dst .toFile ().exists ()) {
0 commit comments