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:
co-authored by
Sanket Sudake
parent
985d94b5b8
commit
612206b033
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user