ProjectCluster
This resource allows you to create and manage project clusters for your GitLab projects. For further information on clusters, consult the gitlab documentation.
Create a ProjectCluster Resource
new ProjectCluster(name: string, args: ProjectClusterArgs, opts?: CustomResourceOptions);def ProjectCluster(resource_name, opts=None, domain=None, enabled=None, environment_scope=None, kubernetes_api_url=None, kubernetes_authorization_type=None, kubernetes_ca_cert=None, kubernetes_namespace=None, kubernetes_token=None, managed=None, management_project_id=None, name=None, project=None, __props__=None);func NewProjectCluster(ctx *Context, name string, args ProjectClusterArgs, opts ...ResourceOption) (*ProjectCluster, error)public ProjectCluster(string name, ProjectClusterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ProjectClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ProjectCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ProjectCluster resource accepts the following input properties:
- Kubernetes
Api stringUrl The URL to access the Kubernetes API.
- Kubernetes
Token string The token to authenticate against Kubernetes.
- Project string
The id of the project to add the cluster to.
- Domain string
The base domain of the cluster.
- Enabled bool
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- Environment
Scope string The associated environment to the cluster. Defaults to
*.- string
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- Kubernetes
Ca stringCert TLS certificate (needed if API is using a self-signed TLS certificate).
- Kubernetes
Namespace string The unique namespace related to the project.
- Managed bool
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- Management
Project stringId - Name string
The name of cluster.
- Kubernetes
Api stringUrl The URL to access the Kubernetes API.
- Kubernetes
Token string The token to authenticate against Kubernetes.
- Project string
The id of the project to add the cluster to.
- Domain string
The base domain of the cluster.
- Enabled bool
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- Environment
Scope string The associated environment to the cluster. Defaults to
*.- string
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- Kubernetes
Ca stringCert TLS certificate (needed if API is using a self-signed TLS certificate).
- Kubernetes
Namespace string The unique namespace related to the project.
- Managed bool
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- Management
Project stringId - Name string
The name of cluster.
- kubernetes
Api stringUrl The URL to access the Kubernetes API.
- kubernetes
Token string The token to authenticate against Kubernetes.
- project string
The id of the project to add the cluster to.
- domain string
The base domain of the cluster.
- enabled boolean
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- environment
Scope string The associated environment to the cluster. Defaults to
*.- string
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- kubernetes
Ca stringCert TLS certificate (needed if API is using a self-signed TLS certificate).
- kubernetes
Namespace string The unique namespace related to the project.
- managed boolean
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- management
Project stringId - name string
The name of cluster.
- kubernetes_
api_ strurl The URL to access the Kubernetes API.
- kubernetes_
token str The token to authenticate against Kubernetes.
- project str
The id of the project to add the cluster to.
- domain str
The base domain of the cluster.
- enabled bool
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- environment_
scope str The associated environment to the cluster. Defaults to
*.- str
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- kubernetes_
ca_ strcert TLS certificate (needed if API is using a self-signed TLS certificate).
- kubernetes_
namespace str The unique namespace related to the project.
- managed bool
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- management_
project_ strid - name str
The name of cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectCluster resource produces the following output properties:
- Cluster
Type string - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Platform
Type string - Provider
Type string
- Cluster
Type string - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Platform
Type string - Provider
Type string
- cluster
Type string - created
At string - id string
- The provider-assigned unique ID for this managed resource.
- platform
Type string - provider
Type string
- cluster_
type str - created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- platform_
type str - provider_
type str
Look up an Existing ProjectCluster Resource
Get an existing ProjectCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectClusterState, opts?: CustomResourceOptions): ProjectClusterstatic get(resource_name, id, opts=None, cluster_type=None, created_at=None, domain=None, enabled=None, environment_scope=None, kubernetes_api_url=None, kubernetes_authorization_type=None, kubernetes_ca_cert=None, kubernetes_namespace=None, kubernetes_token=None, managed=None, management_project_id=None, name=None, platform_type=None, project=None, provider_type=None, __props__=None);func GetProjectCluster(ctx *Context, name string, id IDInput, state *ProjectClusterState, opts ...ResourceOption) (*ProjectCluster, error)public static ProjectCluster Get(string name, Input<string> id, ProjectClusterState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Cluster
Type string - Created
At string - Domain string
The base domain of the cluster.
- Enabled bool
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- Environment
Scope string The associated environment to the cluster. Defaults to
*.- Kubernetes
Api stringUrl The URL to access the Kubernetes API.
- string
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- Kubernetes
Ca stringCert TLS certificate (needed if API is using a self-signed TLS certificate).
- Kubernetes
Namespace string The unique namespace related to the project.
- Kubernetes
Token string The token to authenticate against Kubernetes.
- Managed bool
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- Management
Project stringId - Name string
The name of cluster.
- Platform
Type string - Project string
The id of the project to add the cluster to.
- Provider
Type string
- Cluster
Type string - Created
At string - Domain string
The base domain of the cluster.
- Enabled bool
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- Environment
Scope string The associated environment to the cluster. Defaults to
*.- Kubernetes
Api stringUrl The URL to access the Kubernetes API.
- string
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- Kubernetes
Ca stringCert TLS certificate (needed if API is using a self-signed TLS certificate).
- Kubernetes
Namespace string The unique namespace related to the project.
- Kubernetes
Token string The token to authenticate against Kubernetes.
- Managed bool
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- Management
Project stringId - Name string
The name of cluster.
- Platform
Type string - Project string
The id of the project to add the cluster to.
- Provider
Type string
- cluster
Type string - created
At string - domain string
The base domain of the cluster.
- enabled boolean
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- environment
Scope string The associated environment to the cluster. Defaults to
*.- kubernetes
Api stringUrl The URL to access the Kubernetes API.
- string
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- kubernetes
Ca stringCert TLS certificate (needed if API is using a self-signed TLS certificate).
- kubernetes
Namespace string The unique namespace related to the project.
- kubernetes
Token string The token to authenticate against Kubernetes.
- managed boolean
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- management
Project stringId - name string
The name of cluster.
- platform
Type string - project string
The id of the project to add the cluster to.
- provider
Type string
- cluster_
type str - created_
at str - domain str
The base domain of the cluster.
- enabled bool
Determines if cluster is active or not. Defaults to
true. This attribute cannot be read.- environment_
scope str The associated environment to the cluster. Defaults to
*.- kubernetes_
api_ strurl The URL to access the Kubernetes API.
- str
The cluster authorization type. Valid values are
rbac,abac,unknown_authorization. Defaults torbac.- kubernetes_
ca_ strcert TLS certificate (needed if API is using a self-signed TLS certificate).
- kubernetes_
namespace str The unique namespace related to the project.
- kubernetes_
token str The token to authenticate against Kubernetes.
- managed bool
Determines if cluster is managed by gitlab or not. Defaults to
true. This attribute cannot be read.- management_
project_ strid - name str
The name of cluster.
- platform_
type str - project str
The id of the project to add the cluster to.
- provider_
type str
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.