module Gitlab::Client::ProjectClusters
def add_project_cluster(project, name, options = {})
-
(Gitlab::ObjectifiedHash)
- Information about the added project cluster.
Options Hash:
(**options)
-
:platform_kubernetes_attributes
(Hash
) -- A customizable set of Kubernetes platform attributes -
:enabled(optional)
(Boolean
) -- Determines if cluster is active or not, defaults to true
Parameters:
-
options
(Hash
) -- A customizable set of options. -
name
(String
) -- The name of the existing cluster. -
project
(Integer, String
) -- The ID or name of a project.
def add_project_cluster(project, name, options = {}) body = { name: name }.merge(options) post("/projects/#{url_encode project}/clusters/user", body: body) end