test job with old namespace support to ensure backward compatibility of fission (#2654)

* trigger test job to ensure backward compatibility
* update builder and function namespace in the CI test
* resolve namespace to show logs for fission-CLI
* export function-namespace variable
* Use a common script for an old and new test run
* Revert empty namespace values in the chart

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Shubham Bansal
2022-12-08 12:15:23 +05:30
committed by GitHub
co-authored by Sanket Sudake
parent 985d94b5b8
commit 612206b033
6 changed files with 205 additions and 5 deletions
+10
View File
@@ -55,6 +55,16 @@ func GetFissionNamespace() string {
return fissionNamespace
}
func ResolveFunctionNS(namespace string) string {
if namespace != metav1.NamespaceDefault {
return namespace
}
if len(os.Getenv(ENV_FUNCTION_NAMESPACE)) > 0 {
return os.Getenv(ENV_FUNCTION_NAMESPACE)
}
return namespace
}
func GetApplicationUrl(ctx context.Context, client cmd.Client, selector string) (string, error) {
var serverUrl string
// Use FISSION_URL env variable if set; otherwise, port-forward to controller.