integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java
public void stopUsingReplicas() throws Exception {
    String cmd = "kubectl scale --replicas=0 deployment/weblogic-operator" + " -n " + operatorNS;
    LoggerHelper.getLocal().log(Level.INFO, "Undeploy Operator using command:\n" + cmd);

    ExecResult result = TestUtils.execOrAbortProcess(cmd);

    LoggerHelper.getLocal().log(Level.INFO, "stdout : \n" + result.stdout());

    LoggerHelper.getLocal().log(Level.INFO, "Checking if operator pod is deleted");
    verifyPodDeleted();
  }
/**
   * stop operator pod by scaling its replicaset to 0.
   *
   * @throws Exception exception
   */
stop operator pod by scaling its replicaset to 0.
@throws Exception exception
stop operator pod by scaling its replicaset to 0 . @throws Exception exception
public void stopUsingReplicas() throws Exception {
    String cmd = "kubectl scale --replicas=0 deployment/weblogic-operator" + " -n " + operatorNS;
    LoggerHelper.getLocal().log(Level.INFO, "Undeploy Operator using command:\n" + cmd);
    ExecResult result = TestUtils.execOrAbortProcess(cmd);
    LoggerHelper.getLocal().log(Level.INFO, "stdout : \n" + result.stdout());
    LoggerHelper.getLocal().log(Level.INFO, "Checking if operator pod is deleted");
    verifyPodDeleted();
  }
public void stopUsingReplicas ( ) throws Exception { String cmd = "kubectl scale --replicas=0 deployment/weblogic-operator" + " -n " + operatorNS ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Undeploy Operator using command:\n" + cmd ) ; ExecResult result = TestUtils . execOrAbortProcess ( cmd ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "stdout : \n" + result . stdout ( ) ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Checking if operator pod is deleted" ) ; verifyPodDeleted ( ) ; }
stop operator pod by scaling its replicaset to 0.
stop operator pod by scaling its replicaset to 0 .