Openshift Kuberenetes failing with java script ExeceptionDescriptionOpenShift Kubernetes discovery fails with JAVASCRIPT_CODE_FAILURE due to getcredentials function not having enough arguments. 2020-07-24 05:20:27 (947) Worker-Standard:HorizontalDiscoveryProbe-2a093d041b1ed0d0e31821b4bd4bcbc3 DEBUG: (263)CustomOperationClosure - Exception occurred while executing operation OpenShift Get Call. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Failed to invoke HTTP call. Error Message: 1. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Failed to invoke HTTP call. Error Message: 1com.snc.sw.exception.ConfigurationException: Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Failed to invoke HTTP call. Error Message:Steps to Reproduce 1.Login into the application as admin user.2.Run openshift kubernetes discovery.3.Check OpenShift Kubernetes discovery works fine.Actual:OpenShift Kubernetes discovery fails with JAVASCRIPT_CODE_FAILURE due to getcredentials function not having enough arguments.Make YAML Extension last one to execute.Expected:OpenShift Kubernetes discovery works fine.except YAML extension all extensions should be participate in discovery along with main pattern.WorkaroundLogin into the application as admin user.Go to Pattern Designer --> Custom Operations.Open OpenShift Get Call operation.Replace line number 41 with following workaround code snippet. Line Number 41: var creds = scriptInit.getCredentials(host, null, credsAlias); workaround code snippet : var contentType = "accept:application/json";var creds = scriptInit.getCredentials(host, null, credsAlias,contentType); Related Problem: PRB1416200