mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 05:42:15 +08:00
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.
11 lines
240 B
Ruby
11 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
|