Method: Gitlab::Client::ProjectClusters#add_project_cluster
- Defined in:
- lib/gitlab/client/project_clusters.rb
#add_project_cluster(project, name, options = {}) ⇒ Gitlab::ObjectifiedHash
Adds an existing Kubernetes cluster to the project.
47 48 49 50 |
# File 'lib/gitlab/client/project_clusters.rb', line 47 def add_project_cluster(project, name, = {}) body = { name: name }.merge() post("/projects/#{url_encode project}/clusters/user", body: body) end |