diff --git a/config.sample.toml b/config.sample.toml index 76dcefaf..a0c703aa 100644 --- a/config.sample.toml +++ b/config.sample.toml @@ -1,6 +1,6 @@ kubeconfig = "" kubehost = "0.0.0.0" -backendurl = "http://52.172.254.231:3000" +backendurl = "http://52.172.254.231:15528" ingresshost = "katana.local" rootdirectory = "/opt/katana" kubenamespace = "default" @@ -22,7 +22,7 @@ templated_manifests = [ [services.api] host = "0.0.0.0" -port = 3000 +port = 15528 [teamvm] teampodname = "katana-team-master-pod" diff --git a/services/sshproviderservice/helper.go b/services/sshproviderservice/helper.go index cb3a563f..aab8b90e 100644 --- a/services/sshproviderservice/helper.go +++ b/services/sshproviderservice/helper.go @@ -64,6 +64,8 @@ func envVariables(gogs string, pwd string, podNamespace string) { utils.Podexecutor(command, kubeClientset, kubeConfig, podNamespace) command = []string{"bash", "-c", "echo 'export PASSWORD=" + pwd + "' >> /etc/profile"} utils.Podexecutor(command, kubeClientset, kubeConfig, podNamespace) + command = []string{"bash", "-c", "echo 'export USERNAME=" + podNamespace + "' >> /etc/profile"} + utils.Podexecutor(command, kubeClientset, kubeConfig, podNamespace) command = []string{"bash", "-c", "echo 'export BACKEND_URL=" + g.KatanaConfig.BackendUrl + "/api/v1/admin/challengeUpdate' >> /etc/profile"} utils.Podexecutor(command, kubeClientset, kubeConfig, podNamespace) command = []string{"bash", "-c", "echo 'export ADMIN=" + g.AdminConfig.Username + "' >> /etc/profile"}