Commit 176cf3d6 authored by CRAIG BENNER's avatar CRAIG BENNER

adding some logic

parent ad3ad58a
Pipeline #31174 passed with stage
in 19 seconds
......@@ -85,7 +85,11 @@ func portfoward(config config.Config) error {
}
}
disablePortFoward()
enablePortforward()
//for _, deployable := range config.Deployables {
// image := deployable.Name
//}
//ssh -KL 127.0.0.1:23456:10.0.0.10:80 root@10.0.0.10
args := []string{"-L", "127.0.0.1:23456:10.0.0.10:80", "root@10.0.0.10"}
......@@ -112,7 +116,7 @@ func clearPortForward(config config.Config) error {
}
}
disablePortFoward()
disablePortforward()
//ssh -KL 127.0.0.1:23456:10.0.0.10:80 root@10.0.0.10
args := []string{"-KL", "127.0.0.1:23456:10.0.0.10:80", "root@10.0.0.10"}
......@@ -126,7 +130,7 @@ func clearPortForward(config config.Config) error {
}
func enablePortfoward() error {
func enablePortforward() error {
//sysctl net.ipv4.ip_forward=1
args := []string{"net.ipv4.ip_forward", "1"}
......@@ -138,7 +142,7 @@ func enablePortfoward() error {
return nil
}
func disablePortFoward() error {
func disablePortforward() error {
//sysctl net.ipv4.ip_forward=0
args := []string{"net.ipv4.ip_forward", "0"}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment