Skip to content

Commit

Permalink
finish aks patching
Browse files Browse the repository at this point in the history
  • Loading branch information
P3rcy-8685 committed Aug 8, 2023
1 parent 9008c03 commit cf58eac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.sample.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -22,7 +22,7 @@ templated_manifests = [

[services.api]
host = "0.0.0.0"
port = 3000
port = 15528

[teamvm]
teampodname = "katana-team-master-pod"
Expand Down
2 changes: 2 additions & 0 deletions services/sshproviderservice/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit cf58eac

Please sign in to comment.