GroupClusterArgs

data class GroupClusterArgs(val domain: Output<String>? = null, val enabled: Output<Boolean>? = null, val environmentScope: Output<String>? = null, val group: Output<String>? = null, val kubernetesApiUrl: Output<String>? = null, val kubernetesAuthorizationType: Output<String>? = null, val kubernetesCaCert: Output<String>? = null, val kubernetesToken: Output<String>? = null, val managed: Output<Boolean>? = null, val managementProjectId: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<GroupClusterArgs>

The gitlab.GroupCluster resource allows to manage the lifecycle of a group cluster.

This is deprecated GitLab feature since 14.5 Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Group;
import com.pulumi.gitlab.GroupArgs;
import com.pulumi.gitlab.GroupCluster;
import com.pulumi.gitlab.GroupClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Group("foo", GroupArgs.builder()
.path("foo-path")
.build());
var bar = new GroupCluster("bar", GroupClusterArgs.builder()
.group(foo.id())
.domain("example.com")
.enabled(true)
.kubernetesApiUrl("https://124.124.124")
.kubernetesToken("some-token")
.kubernetesCaCert("some-cert")
.kubernetesAuthorizationType("rbac")
.environmentScope("*")
.managementProjectId("123456")
.build());
}
}

Import

GitLab group clusters can be imported using an id made up of groupid:clusterid, e.g.

$ pulumi import gitlab:index/groupCluster:GroupCluster bar 123:321

Constructors

Link copied to clipboard
constructor(domain: Output<String>? = null, enabled: Output<Boolean>? = null, environmentScope: Output<String>? = null, group: Output<String>? = null, kubernetesApiUrl: Output<String>? = null, kubernetesAuthorizationType: Output<String>? = null, kubernetesCaCert: Output<String>? = null, kubernetesToken: Output<String>? = null, managed: Output<Boolean>? = null, managementProjectId: Output<String>? = null, name: Output<String>? = null)

Properties

Link copied to clipboard
val domain: Output<String>? = null

The base domain of the cluster.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Determines if cluster is active or not. Defaults to true. This attribute cannot be read.

Link copied to clipboard
val environmentScope: Output<String>? = null

The associated environment to the cluster. Defaults to *.

Link copied to clipboard
val group: Output<String>? = null

The id of the group to add the cluster to.

Link copied to clipboard
val kubernetesApiUrl: Output<String>? = null

The URL to access the Kubernetes API.

Link copied to clipboard
val kubernetesAuthorizationType: Output<String>? = null

The cluster authorization type. Valid values are rbac, abac, unknown_authorization. Defaults to rbac.

Link copied to clipboard
val kubernetesCaCert: Output<String>? = null

TLS certificate (needed if API is using a self-signed TLS certificate).

Link copied to clipboard
val kubernetesToken: Output<String>? = null

The token to authenticate against Kubernetes.

Link copied to clipboard
val managed: Output<Boolean>? = null

Determines if cluster is managed by gitlab or not. Defaults to true. This attribute cannot be read.

Link copied to clipboard
val managementProjectId: Output<String>? = null

The ID of the management project for the cluster.

Link copied to clipboard
val name: Output<String>? = null

The name of cluster.

Functions

Link copied to clipboard
open override fun toJava(): GroupClusterArgs