Method: KubernetesCLI#api_resources
- Defined in:
- lib/kubernetes-cli.rb
#api_resources ⇒ Object
T::Sig::WithoutRuntime.sig { returns(String) }
394 395 396 397 398 399 400 401 402 403 404 |
# File 'lib/kubernetes-cli.rb', line 394 def api_resources cmd = [executable, '--kubeconfig', kubeconfig_path, 'api-resources'] result = backticks(cmd) on_last_status_failure do |last_status| raise KubernetesError, 'could not fetch API resources: kubectl exited with '\ "status code #{last_status.exitstatus}. #{result}" end result end |