Archives bigger than 256K size need env variable for uploading (#697)

For archives bigger than 256K, the Storage service was called from the client side, this needed few environment variables to be set. This change uses port forwarding to achieve the same and does not need environment variables to be set.
This commit is contained in:
Vishal
2018-06-14 01:12:06 +05:30
committed by GitHub
parent ef7d4ae385
commit 6d08e6e0bc
8 changed files with 72 additions and 19 deletions
+4
View File
@@ -48,6 +48,10 @@ func getKubeConfigPath() string {
}
func getServerUrl() string {
return getApplicationUrl("application=fission-api")
}
func getApplicationUrl(selector string) string {
var serverUrl string
// Use FISSION_URL env variable if set; otherwise, port-forward to controller.
fissionUrl := os.Getenv("FISSION_URL")