Skip to main content
NetApp Knowledge Base

Is there a way to specify the path to kubectl in tridentctl when kubectl is not in the $PATH?

Views:
Visibility:
Public
Votes:
0
Category:
trident-openshift
Specialty:
snapx
Last Updated:

Applies to

Trident

Answer

No, there is no such method.

  • There is no way to specify the path to kubectl from the tridentctl side.
  • tridentctl searches for kubectl starting from the beginning of the $PATH
  • Make sure that kubectl is accessible from the $PATH.
    • If the $PATH is not set, or if kubectl is found but cannot be executed, the following error happens:
    • Error: could not find the Kubernetes CLI: exec: "kubectl": executable file not found in $PATH

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.