Upgrade of extension on AWS (EKS) fails when upgrading through script
Upgrade of extension on AWS (EKS) fails with the following error when upgrading through script:
# ./cp_extension.sh install
error: error executing jsonpath "{.items[0].spec.providerID}[0]": Error executing template: array index out of bounds: index 0, length 0. Printing more
information for debugging the template:
template was:
{.items[0].spec.providerID}[0]
object given to jsonpath engine was:
map[string]interface {}{"apiVersion":"v1", "items":[]interface {}{}, "kind":"List", "metadata":map[string]interface {}{"resourceVersion":"",
"selfLink":""}}Note:
The above issue is observed when upgrading the extension on AWS (EKS) from NetBackup version 10.1 to 10.1.1.
Workaround:
To resolve this issue, uninstall the extension on AWS (EKS) version 10.1 and reinstall the latest version 10.1.1 extension on AWS (EKS). For more information on uninstalling and reinstalling extension on AWS (EKS), refer to the following sections:
Removing NetBackup Snapshot Manager extensions - VM-based or managed Kubernetes cluster-based