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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user