diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-01-05 14:44:37 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-01-05 14:44:37 +0000 |
commit | 647271c9fc122b5a9cdc6a1c7bbd876124e6a9fa (patch) | |
tree | 3feb4b710444b8f9812ee8da1ce146bd23a5bedf /lib/api/entities.rb | |
parent | 006da56cad7d8588473dae7c8777f26c3e6f9bb8 (diff) | |
parent | 013d2622667c5286377d7b76366981338bb4c4f0 (diff) | |
download | gitlab-ce-647271c9fc122b5a9cdc6a1c7bbd876124e6a9fa.tar.gz |
Merge branch '40473-api-support-for-kubernetes-integration' into 'master'
Add API Support for Kubernetes integration
Closes #40473
See merge request gitlab-org/gitlab-ce!23922
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 97ccd97e883..a2a3c0a16d7 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -1538,5 +1538,38 @@ module API expose :from_content expose :to_content end + + module Platform + class Kubernetes < Grape::Entity + expose :api_url + expose :namespace + expose :authorization_type + expose :ca_cert + end + end + + module Provider + class Gcp < Grape::Entity + expose :cluster_id + expose :status_name + expose :gcp_project_id + expose :zone + expose :machine_type + expose :num_nodes + expose :endpoint + end + end + + class Cluster < Grape::Entity + expose :id, :name, :created_at + expose :provider_type, :platform_type, :environment_scope, :cluster_type + expose :user, using: Entities::UserBasic + expose :platform_kubernetes, using: Entities::Platform::Kubernetes + expose :provider_gcp, using: Entities::Provider::Gcp + end + + class ClusterProject < Cluster + expose :project, using: Entities::BasicProjectDetails + end end end |