mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-07 23:31:58 +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.
16 lines
350 B
Ruby
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
|