Group Cluster Args
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
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const foo = new gitlab.Group("foo", {path: "foo-path"});
const bar = new gitlab.GroupCluster("bar", {
group: foo.id,
domain: "example.com",
enabled: true,
kubernetesApiUrl: "https://124.124.124",
kubernetesToken: "some-token",
kubernetesCaCert: "some-cert",
kubernetesAuthorizationType: "rbac",
environmentScope: "*",
managementProjectId: "123456",
});
Content copied to clipboard
import pulumi
import pulumi_gitlab as gitlab
foo = gitlab.Group("foo", path="foo-path")
bar = gitlab.GroupCluster("bar",
group=foo.id,
domain="example.com",
enabled=True,
kubernetes_api_url="https://124.124.124",
kubernetes_token="some-token",
kubernetes_ca_cert="some-cert",
kubernetes_authorization_type="rbac",
environment_scope="*",
management_project_id="123456")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var foo = new GitLab.Group("foo", new()
{
Path = "foo-path",
});
var bar = new GitLab.GroupCluster("bar", new()
{
Group = foo.Id,
Domain = "example.com",
Enabled = true,
KubernetesApiUrl = "https://124.124.124",
KubernetesToken = "some-token",
KubernetesCaCert = "some-cert",
KubernetesAuthorizationType = "rbac",
EnvironmentScope = "*",
ManagementProjectId = "123456",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := gitlab.NewGroup(ctx, "foo", &gitlab.GroupArgs{
Path: pulumi.String("foo-path"),
})
if err != nil {
return err
}
_, err = gitlab.NewGroupCluster(ctx, "bar", &gitlab.GroupClusterArgs{
Group: foo.ID(),
Domain: pulumi.String("example.com"),
Enabled: pulumi.Bool(true),
KubernetesApiUrl: pulumi.String("https://124.124.124"),
KubernetesToken: pulumi.String("some-token"),
KubernetesCaCert: pulumi.String("some-cert"),
KubernetesAuthorizationType: pulumi.String("rbac"),
EnvironmentScope: pulumi.String("*"),
ManagementProjectId: pulumi.String("123456"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
foo:
type: gitlab:Group
properties:
path: foo-path
bar:
type: gitlab:GroupCluster
properties:
group: ${foo.id}
domain: example.com
enabled: true
kubernetesApiUrl: https://124.124.124
kubernetesToken: some-token
kubernetesCaCert: some-cert
kubernetesAuthorizationType: rbac
environmentScope: '*'
managementProjectId: '123456'
Content copied to clipboard
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
Content copied to clipboard
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
The associated environment to the cluster. Defaults to *
.
Link copied to clipboard
The URL to access the Kubernetes API.
Link copied to clipboard
The cluster authorization type. Valid values are rbac
, abac
, unknown_authorization
. Defaults to rbac
.
Link copied to clipboard
TLS certificate (needed if API is using a self-signed TLS certificate).
Link copied to clipboard
The token to authenticate against Kubernetes.
Link copied to clipboard
The ID of the management project for the cluster.