integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java
private static void createWebHookForScale() throws Exception {

    String webhookResourceDir = resourceExporterDir + "/../webhook";
    String webhookDir = monitoringExporterDir + "/webhook";
    // install webhook
    LoggerHelper.getLocal().log(Level.INFO, "installing webhook ");
    executeShelScript(
        webhookResourceDir,
        monitoringExporterScriptDir,
        "setupWebHook.sh",
        webhookDir + " " + webhookResourceDir + " " + operator.getOperatorNamespace(),
        "setupWebHook.out");
    String webhookPod = getPodName("name=webhook", monitoringNS);
    TestUtils.checkPodReady(webhookPod, monitoringNS);
  }
/**
   * Install WebHook for performing scaling via prometheus.
   *
   * @throws Exception if could not run the command successfully to install webhook and alert
   *                   manager
   */
Install WebHook for performing scaling via prometheus.
@throws Exception if could not run the command successfully to install webhook and alert
manager
Install WebHook for performing scaling via prometheus . @throws Exception if could not run the command successfully to install webhook and alert manager
private static void createWebHookForScale() throws Exception {
    String webhookResourceDir = resourceExporterDir + "/../webhook";
    String webhookDir = monitoringExporterDir + "/webhook";
    LoggerHelper.getLocal().log(Level.INFO, "installing webhook ");
    executeShelScript(
        webhookResourceDir,
        monitoringExporterScriptDir,
        "setupWebHook.sh",
        webhookDir + " " + webhookResourceDir + " " + operator.getOperatorNamespace(),
        "setupWebHook.out");
    String webhookPod = getPodName("name=webhook", monitoringNS);
    TestUtils.checkPodReady(webhookPod, monitoringNS);
  }
private static void createWebHookForScale ( ) throws Exception { String webhookResourceDir = resourceExporterDir + "/../webhook" ; String webhookDir = monitoringExporterDir + "/webhook" ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "installing webhook " ) ; executeShelScript ( webhookResourceDir , monitoringExporterScriptDir , "setupWebHook.sh" , webhookDir + " " + webhookResourceDir + " " + operator . getOperatorNamespace ( ) , "setupWebHook.out" ) ; String webhookPod = getPodName ( "name=webhook" , monitoringNS ) ; TestUtils . checkPodReady ( webhookPod , monitoringNS ) ; }
Install WebHook for performing scaling via prometheus.
Install WebHook for performing scaling via prometheus .
// install webhook