Files
ubicloud/cli-commands/kc/post/kubeconfig.rb
Jeremy Evans eb876eb764 Support kc kubeconfig cli command
This required adding support to openapi.yml. Even though the route
was available for both web and api, you couldn't reach it via api
due to committee.
2025-08-01 04:18:57 +09:00

12 lines
240 B
Ruby

# frozen_string_literal: true
UbiCli.on("kc").run_on("kubeconfig") do
desc "Print kubeconfig.yaml for a Kubernetes cluster"
banner "ubi kc (location/kc-name | kc-id) kubeconfig"
run do
response(sdk_object.kubeconfig)
end
end