ubicloud/sdk/ruby/lib/ubicloud/model/kubernetes_cluster.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

16 lines
350 B
Ruby

# frozen_string_literal: true
module Ubicloud
class KubernetesCluster < Model
set_prefix "kc"
set_fragment "kubernetes-cluster"
set_columns :id, :name, :state, :location
# Return string with the contents of kubeconfig.yaml for the Kubernetes cluster.
def kubeconfig
adapter.get(_path("/kubeconfig"))
end
end
end