|
1 |
| -// Copyright (c) 2020, 2023, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2020, 2024, Oracle and/or its affiliates. |
2 | 2 | // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
3 | 3 |
|
4 | 4 | package oracle.weblogic.kubernetes.actions.impl;
|
@@ -766,31 +766,20 @@ public static boolean scaleClusterWithScalingActionScript(String clusterName,
|
766 | 766 | return false;
|
767 | 767 | }
|
768 | 768 |
|
769 |
| - // create $DOMAIN_HOME/bin/scripts directory on admin server pod |
770 |
| - logger.info("Creating directory {0}/bin/scripts on admin server pod", domainHomeLocation); |
771 |
| - testUntil( |
772 |
| - () -> executeCommandOnPod(adminPod, null, true, |
773 |
| - "/bin/sh", "-c", "mkdir -p " + domainHomeLocation + "/bin/scripts"), |
774 |
| - logger, |
775 |
| - "Creating directory {0}/bin/scripts on admin server pod", |
776 |
| - domainHomeLocation); |
777 |
| - |
778 | 769 | logger.info("Copying scalingAction.sh to admin server pod");
|
779 | 770 | testUntil(
|
780 | 771 | () -> copyFileToPod(domainNamespace, adminServerPodName, null,
|
781 | 772 | Paths.get(PROJECT_ROOT + "/../operator/scripts/scaling/scalingAction.sh"),
|
782 | 773 | Paths.get("/u01/scalingAction.sh")),
|
783 | 774 | logger,
|
784 | 775 | "Copying scalingAction.sh to admin server pod");
|
785 |
| - // Paths.get(domainHomeLocation + "/bin/scripts/scalingAction.sh")), |
786 | 776 |
|
787 | 777 | logger.info("Adding execute mode for scalingAction.sh");
|
788 | 778 | testUntil(
|
789 | 779 | () -> executeCommandOnPod(adminPod, null, true,
|
790 | 780 | "/bin/sh", "-c", "chmod +x /u01/scalingAction.sh"),
|
791 | 781 | logger,
|
792 | 782 | "Adding execute mode for scalingAction.sh");
|
793 |
| - // "/bin/sh", "-c", "chmod +x " + domainHomeLocation + "/bin/scripts/scalingAction.sh"), |
794 | 783 |
|
795 | 784 | if (!scalingAction.equals("scaleUp") && !scalingAction.equals("scaleDown")) {
|
796 | 785 | logger.info("Set scaleAction to either scaleUp or scaleDown");
|
|
0 commit comments