harness.platform.GitOpsCluster
Explore with Pulumi AI
Resource for creating a Harness Gitops Cluster.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
return await Deployment.RunAsync(() =>
{
// Clusters without Optional tags
var exampleGitOpsCluster = new Harness.Platform.GitOpsCluster("exampleGitOpsCluster", new()
{
Identifier = "identifier",
AccountId = "account_id",
ProjectId = "project_id",
OrgId = "org_id",
AgentId = "agent_id",
Requests = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestArgs
{
Upsert = false,
Clusters = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterArgs
{
Server = "https://kubernetes.default.svc",
Name = "name",
Configs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigArgs
{
TlsClientConfigs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigTlsClientConfigArgs
{
Insecure = true,
},
},
ClusterConnectionType = "IN_CLUSTER",
},
},
},
},
},
},
});
// Clusters with Optional tags
var examplePlatform_gitOpsClusterGitOpsCluster = new Harness.Platform.GitOpsCluster("examplePlatform/gitOpsClusterGitOpsCluster", new()
{
Identifier = "identifier",
AccountId = "account_id",
ProjectId = "project_id",
OrgId = "org_id",
AgentId = "agent_id",
Requests = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestArgs
{
Upsert = false,
Tags = new[]
{
"foo:bar",
},
Clusters = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterArgs
{
Server = "https://kubernetes.default.svc",
Name = "name",
Configs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigArgs
{
TlsClientConfigs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigTlsClientConfigArgs
{
Insecure = true,
},
},
ClusterConnectionType = "IN_CLUSTER",
},
},
},
},
},
},
});
});
package main
import (
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewGitOpsCluster(ctx, "exampleGitOpsCluster", &platform.GitOpsClusterArgs{
Identifier: pulumi.String("identifier"),
AccountId: pulumi.String("account_id"),
ProjectId: pulumi.String("project_id"),
OrgId: pulumi.String("org_id"),
AgentId: pulumi.String("agent_id"),
Requests: platform.GitOpsClusterRequestArray{
&platform.GitOpsClusterRequestArgs{
Upsert: pulumi.Bool(false),
Clusters: platform.GitOpsClusterRequestClusterArray{
&platform.GitOpsClusterRequestClusterArgs{
Server: pulumi.String("https://kubernetes.default.svc"),
Name: pulumi.String("name"),
Configs: platform.GitOpsClusterRequestClusterConfigArray{
&platform.GitOpsClusterRequestClusterConfigArgs{
TlsClientConfigs: platform.GitOpsClusterRequestClusterConfigTlsClientConfigArray{
&platform.GitOpsClusterRequestClusterConfigTlsClientConfigArgs{
Insecure: pulumi.Bool(true),
},
},
ClusterConnectionType: pulumi.String("IN_CLUSTER"),
},
},
},
},
},
},
})
if err != nil {
return err
}
_, err = platform.NewGitOpsCluster(ctx, "examplePlatform/gitOpsClusterGitOpsCluster", &platform.GitOpsClusterArgs{
Identifier: pulumi.String("identifier"),
AccountId: pulumi.String("account_id"),
ProjectId: pulumi.String("project_id"),
OrgId: pulumi.String("org_id"),
AgentId: pulumi.String("agent_id"),
Requests: platform.GitOpsClusterRequestArray{
&platform.GitOpsClusterRequestArgs{
Upsert: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
Clusters: platform.GitOpsClusterRequestClusterArray{
&platform.GitOpsClusterRequestClusterArgs{
Server: pulumi.String("https://kubernetes.default.svc"),
Name: pulumi.String("name"),
Configs: platform.GitOpsClusterRequestClusterConfigArray{
&platform.GitOpsClusterRequestClusterConfigArgs{
TlsClientConfigs: platform.GitOpsClusterRequestClusterConfigTlsClientConfigArray{
&platform.GitOpsClusterRequestClusterConfigTlsClientConfigArgs{
Insecure: pulumi.Bool(true),
},
},
ClusterConnectionType: pulumi.String("IN_CLUSTER"),
},
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.GitOpsCluster;
import com.pulumi.harness.platform.GitOpsClusterArgs;
import com.pulumi.harness.platform.inputs.GitOpsClusterRequestArgs;
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 exampleGitOpsCluster = new GitOpsCluster("exampleGitOpsCluster", GitOpsClusterArgs.builder()
.identifier("identifier")
.accountId("account_id")
.projectId("project_id")
.orgId("org_id")
.agentId("agent_id")
.requests(GitOpsClusterRequestArgs.builder()
.upsert(false)
.clusters(GitOpsClusterRequestClusterArgs.builder()
.server("https://kubernetes.default.svc")
.name("name")
.configs(GitOpsClusterRequestClusterConfigArgs.builder()
.tlsClientConfigs(GitOpsClusterRequestClusterConfigTlsClientConfigArgs.builder()
.insecure(true)
.build())
.clusterConnectionType("IN_CLUSTER")
.build())
.build())
.build())
.build());
var examplePlatform_gitOpsClusterGitOpsCluster = new GitOpsCluster("examplePlatform/gitOpsClusterGitOpsCluster", GitOpsClusterArgs.builder()
.identifier("identifier")
.accountId("account_id")
.projectId("project_id")
.orgId("org_id")
.agentId("agent_id")
.requests(GitOpsClusterRequestArgs.builder()
.upsert(false)
.tags("foo:bar")
.clusters(GitOpsClusterRequestClusterArgs.builder()
.server("https://kubernetes.default.svc")
.name("name")
.configs(GitOpsClusterRequestClusterConfigArgs.builder()
.tlsClientConfigs(GitOpsClusterRequestClusterConfigTlsClientConfigArgs.builder()
.insecure(true)
.build())
.clusterConnectionType("IN_CLUSTER")
.build())
.build())
.build())
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
# Clusters without Optional tags
example_git_ops_cluster = harness.platform.GitOpsCluster("exampleGitOpsCluster",
identifier="identifier",
account_id="account_id",
project_id="project_id",
org_id="org_id",
agent_id="agent_id",
requests=[harness.platform.GitOpsClusterRequestArgs(
upsert=False,
clusters=[harness.platform.GitOpsClusterRequestClusterArgs(
server="https://kubernetes.default.svc",
name="name",
configs=[harness.platform.GitOpsClusterRequestClusterConfigArgs(
tls_client_configs=[harness.platform.GitOpsClusterRequestClusterConfigTlsClientConfigArgs(
insecure=True,
)],
cluster_connection_type="IN_CLUSTER",
)],
)],
)])
# Clusters with Optional tags
example_platform_git_ops_cluster_git_ops_cluster = harness.platform.GitOpsCluster("examplePlatform/gitOpsClusterGitOpsCluster",
identifier="identifier",
account_id="account_id",
project_id="project_id",
org_id="org_id",
agent_id="agent_id",
requests=[harness.platform.GitOpsClusterRequestArgs(
upsert=False,
tags=["foo:bar"],
clusters=[harness.platform.GitOpsClusterRequestClusterArgs(
server="https://kubernetes.default.svc",
name="name",
configs=[harness.platform.GitOpsClusterRequestClusterConfigArgs(
tls_client_configs=[harness.platform.GitOpsClusterRequestClusterConfigTlsClientConfigArgs(
insecure=True,
)],
cluster_connection_type="IN_CLUSTER",
)],
)],
)])
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";
// Clusters without Optional tags
const exampleGitOpsCluster = new harness.platform.GitOpsCluster("exampleGitOpsCluster", {
identifier: "identifier",
accountId: "account_id",
projectId: "project_id",
orgId: "org_id",
agentId: "agent_id",
requests: [{
upsert: false,
clusters: [{
server: "https://kubernetes.default.svc",
name: "name",
configs: [{
tlsClientConfigs: [{
insecure: true,
}],
clusterConnectionType: "IN_CLUSTER",
}],
}],
}],
});
// Clusters with Optional tags
const examplePlatform_gitOpsClusterGitOpsCluster = new harness.platform.GitOpsCluster("examplePlatform/gitOpsClusterGitOpsCluster", {
identifier: "identifier",
accountId: "account_id",
projectId: "project_id",
orgId: "org_id",
agentId: "agent_id",
requests: [{
upsert: false,
tags: ["foo:bar"],
clusters: [{
server: "https://kubernetes.default.svc",
name: "name",
configs: [{
tlsClientConfigs: [{
insecure: true,
}],
clusterConnectionType: "IN_CLUSTER",
}],
}],
}],
});
resources:
# Clusters without Optional tags
exampleGitOpsCluster:
type: harness:platform:GitOpsCluster
properties:
identifier: identifier
accountId: account_id
projectId: project_id
orgId: org_id
agentId: agent_id
requests:
- upsert: false
clusters:
- server: https://kubernetes.default.svc
name: name
configs:
- tlsClientConfigs:
- insecure: true
clusterConnectionType: IN_CLUSTER
# Clusters with Optional tags
examplePlatform/gitOpsClusterGitOpsCluster:
type: harness:platform:GitOpsCluster
properties:
identifier: identifier
accountId: account_id
projectId: project_id
orgId: org_id
agentId: agent_id
requests:
- upsert: false
tags:
- foo:bar
clusters:
- server: https://kubernetes.default.svc
name: name
configs:
- tlsClientConfigs:
- insecure: true
clusterConnectionType: IN_CLUSTER
Create GitOpsCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitOpsCluster(name: string, args: GitOpsClusterArgs, opts?: CustomResourceOptions);
@overload
def GitOpsCluster(resource_name: str,
args: GitOpsClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitOpsCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
queries: Optional[Sequence[GitOpsClusterQueryArgs]] = None,
requests: Optional[Sequence[GitOpsClusterRequestArgs]] = None)
func NewGitOpsCluster(ctx *Context, name string, args GitOpsClusterArgs, opts ...ResourceOption) (*GitOpsCluster, error)
public GitOpsCluster(string name, GitOpsClusterArgs args, CustomResourceOptions? opts = null)
public GitOpsCluster(String name, GitOpsClusterArgs args)
public GitOpsCluster(String name, GitOpsClusterArgs args, CustomResourceOptions options)
type: harness:platform:GitOpsCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GitOpsClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GitOpsClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GitOpsClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitOpsClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitOpsClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gitOpsClusterResource = new Harness.Platform.GitOpsCluster("gitOpsClusterResource", new()
{
AccountId = "string",
AgentId = "string",
Identifier = "string",
OrgId = "string",
ProjectId = "string",
Queries = new[]
{
new Harness.Platform.Inputs.GitOpsClusterQueryArgs
{
Ids = new[]
{
new Harness.Platform.Inputs.GitOpsClusterQueryIdArgs
{
Type = "string",
Value = "string",
},
},
Name = "string",
Server = "string",
},
},
Requests = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestArgs
{
Clusters = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterArgs
{
Configs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigArgs
{
AwsAuthConfigs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigAwsAuthConfigArgs
{
ClusterName = "string",
RoleARN = "string",
},
},
BearerToken = "string",
ClusterConnectionType = "string",
ExecProviderConfigs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigExecProviderConfigArgs
{
ApiVersion = "string",
Args = new[]
{
"string",
},
Command = "string",
Env =
{
{ "string", "string" },
},
InstallHint = "string",
},
},
Password = "string",
TlsClientConfigs = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterConfigTlsClientConfigArgs
{
CaData = "string",
CertData = "string",
Insecure = false,
KeyData = "string",
ServerName = "string",
},
},
Username = "string",
},
},
Server = "string",
Annotations =
{
{ "string", "string" },
},
ClusterResources = false,
Infos = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterInfoArgs
{
ApiVersions = new[]
{
"string",
},
ApplicationsCount = "string",
CacheInfos = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterInfoCacheInfoArgs
{
ApisCount = "string",
LastCacheSyncTime = "string",
ResourcesCount = "string",
},
},
ConnectionStates = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterInfoConnectionStateArgs
{
AttemptedAts = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterInfoConnectionStateAttemptedAtArgs
{
Nanos = 0,
Seconds = "string",
},
},
Message = "string",
Status = "string",
},
},
ServerVersion = "string",
},
},
Labels =
{
{ "string", "string" },
},
Name = "string",
Namespaces = new[]
{
"string",
},
Project = "string",
RefreshRequestedAts = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestClusterRefreshRequestedAtArgs
{
Nanos = 0,
Seconds = "string",
},
},
Shard = "string",
},
},
Ids = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestIdArgs
{
Type = "string",
Value = "string",
},
},
Tags = new[]
{
"string",
},
UpdateMasks = new[]
{
new Harness.Platform.Inputs.GitOpsClusterRequestUpdateMaskArgs
{
Paths = new[]
{
"string",
},
},
},
UpdatedFields = new[]
{
"string",
},
Upsert = false,
},
},
});
example, err := platform.NewGitOpsCluster(ctx, "gitOpsClusterResource", &platform.GitOpsClusterArgs{
AccountId: pulumi.String("string"),
AgentId: pulumi.String("string"),
Identifier: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Queries: platform.GitOpsClusterQueryArray{
&platform.GitOpsClusterQueryArgs{
Ids: platform.GitOpsClusterQueryIdArray{
&platform.GitOpsClusterQueryIdArgs{
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Server: pulumi.String("string"),
},
},
Requests: platform.GitOpsClusterRequestArray{
&platform.GitOpsClusterRequestArgs{
Clusters: platform.GitOpsClusterRequestClusterArray{
&platform.GitOpsClusterRequestClusterArgs{
Configs: platform.GitOpsClusterRequestClusterConfigArray{
&platform.GitOpsClusterRequestClusterConfigArgs{
AwsAuthConfigs: platform.GitOpsClusterRequestClusterConfigAwsAuthConfigArray{
&platform.GitOpsClusterRequestClusterConfigAwsAuthConfigArgs{
ClusterName: pulumi.String("string"),
RoleARN: pulumi.String("string"),
},
},
BearerToken: pulumi.String("string"),
ClusterConnectionType: pulumi.String("string"),
ExecProviderConfigs: platform.GitOpsClusterRequestClusterConfigExecProviderConfigArray{
&platform.GitOpsClusterRequestClusterConfigExecProviderConfigArgs{
ApiVersion: pulumi.String("string"),
Args: pulumi.StringArray{
pulumi.String("string"),
},
Command: pulumi.String("string"),
Env: pulumi.StringMap{
"string": pulumi.String("string"),
},
InstallHint: pulumi.String("string"),
},
},
Password: pulumi.String("string"),
TlsClientConfigs: platform.GitOpsClusterRequestClusterConfigTlsClientConfigArray{
&platform.GitOpsClusterRequestClusterConfigTlsClientConfigArgs{
CaData: pulumi.String("string"),
CertData: pulumi.String("string"),
Insecure: pulumi.Bool(false),
KeyData: pulumi.String("string"),
ServerName: pulumi.String("string"),
},
},
Username: pulumi.String("string"),
},
},
Server: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
ClusterResources: pulumi.Bool(false),
Infos: platform.GitOpsClusterRequestClusterInfoArray{
&platform.GitOpsClusterRequestClusterInfoArgs{
ApiVersions: pulumi.StringArray{
pulumi.String("string"),
},
ApplicationsCount: pulumi.String("string"),
CacheInfos: platform.GitOpsClusterRequestClusterInfoCacheInfoArray{
&platform.GitOpsClusterRequestClusterInfoCacheInfoArgs{
ApisCount: pulumi.String("string"),
LastCacheSyncTime: pulumi.String("string"),
ResourcesCount: pulumi.String("string"),
},
},
ConnectionStates: platform.GitOpsClusterRequestClusterInfoConnectionStateArray{
&platform.GitOpsClusterRequestClusterInfoConnectionStateArgs{
AttemptedAts: platform.GitOpsClusterRequestClusterInfoConnectionStateAttemptedAtArray{
&platform.GitOpsClusterRequestClusterInfoConnectionStateAttemptedAtArgs{
Nanos: pulumi.Int(0),
Seconds: pulumi.String("string"),
},
},
Message: pulumi.String("string"),
Status: pulumi.String("string"),
},
},
ServerVersion: pulumi.String("string"),
},
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
Project: pulumi.String("string"),
RefreshRequestedAts: platform.GitOpsClusterRequestClusterRefreshRequestedAtArray{
&platform.GitOpsClusterRequestClusterRefreshRequestedAtArgs{
Nanos: pulumi.Int(0),
Seconds: pulumi.String("string"),
},
},
Shard: pulumi.String("string"),
},
},
Ids: platform.GitOpsClusterRequestIdArray{
&platform.GitOpsClusterRequestIdArgs{
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UpdateMasks: platform.GitOpsClusterRequestUpdateMaskArray{
&platform.GitOpsClusterRequestUpdateMaskArgs{
Paths: pulumi.StringArray{
pulumi.String("string"),
},
},
},
UpdatedFields: pulumi.StringArray{
pulumi.String("string"),
},
Upsert: pulumi.Bool(false),
},
},
})
var gitOpsClusterResource = new GitOpsCluster("gitOpsClusterResource", GitOpsClusterArgs.builder()
.accountId("string")
.agentId("string")
.identifier("string")
.orgId("string")
.projectId("string")
.queries(GitOpsClusterQueryArgs.builder()
.ids(GitOpsClusterQueryIdArgs.builder()
.type("string")
.value("string")
.build())
.name("string")
.server("string")
.build())
.requests(GitOpsClusterRequestArgs.builder()
.clusters(GitOpsClusterRequestClusterArgs.builder()
.configs(GitOpsClusterRequestClusterConfigArgs.builder()
.awsAuthConfigs(GitOpsClusterRequestClusterConfigAwsAuthConfigArgs.builder()
.clusterName("string")
.roleARN("string")
.build())
.bearerToken("string")
.clusterConnectionType("string")
.execProviderConfigs(GitOpsClusterRequestClusterConfigExecProviderConfigArgs.builder()
.apiVersion("string")
.args("string")
.command("string")
.env(Map.of("string", "string"))
.installHint("string")
.build())
.password("string")
.tlsClientConfigs(GitOpsClusterRequestClusterConfigTlsClientConfigArgs.builder()
.caData("string")
.certData("string")
.insecure(false)
.keyData("string")
.serverName("string")
.build())
.username("string")
.build())
.server("string")
.annotations(Map.of("string", "string"))
.clusterResources(false)
.infos(GitOpsClusterRequestClusterInfoArgs.builder()
.apiVersions("string")
.applicationsCount("string")
.cacheInfos(GitOpsClusterRequestClusterInfoCacheInfoArgs.builder()
.apisCount("string")
.lastCacheSyncTime("string")
.resourcesCount("string")
.build())
.connectionStates(GitOpsClusterRequestClusterInfoConnectionStateArgs.builder()
.attemptedAts(GitOpsClusterRequestClusterInfoConnectionStateAttemptedAtArgs.builder()
.nanos(0)
.seconds("string")
.build())
.message("string")
.status("string")
.build())
.serverVersion("string")
.build())
.labels(Map.of("string", "string"))
.name("string")
.namespaces("string")
.project("string")
.refreshRequestedAts(GitOpsClusterRequestClusterRefreshRequestedAtArgs.builder()
.nanos(0)
.seconds("string")
.build())
.shard("string")
.build())
.ids(GitOpsClusterRequestIdArgs.builder()
.type("string")
.value("string")
.build())
.tags("string")
.updateMasks(GitOpsClusterRequestUpdateMaskArgs.builder()
.paths("string")
.build())
.updatedFields("string")
.upsert(false)
.build())
.build());
git_ops_cluster_resource = harness.platform.GitOpsCluster("gitOpsClusterResource",
account_id="string",
agent_id="string",
identifier="string",
org_id="string",
project_id="string",
queries=[harness.platform.GitOpsClusterQueryArgs(
ids=[harness.platform.GitOpsClusterQueryIdArgs(
type="string",
value="string",
)],
name="string",
server="string",
)],
requests=[harness.platform.GitOpsClusterRequestArgs(
clusters=[harness.platform.GitOpsClusterRequestClusterArgs(
configs=[harness.platform.GitOpsClusterRequestClusterConfigArgs(
aws_auth_configs=[harness.platform.GitOpsClusterRequestClusterConfigAwsAuthConfigArgs(
cluster_name="string",
role_arn="string",
)],
bearer_token="string",
cluster_connection_type="string",
exec_provider_configs=[harness.platform.GitOpsClusterRequestClusterConfigExecProviderConfigArgs(
api_version="string",
args=["string"],
command="string",
env={
"string": "string",
},
install_hint="string",
)],
password="string",
tls_client_configs=[harness.platform.GitOpsClusterRequestClusterConfigTlsClientConfigArgs(
ca_data="string",
cert_data="string",
insecure=False,
key_data="string",
server_name="string",
)],
username="string",
)],
server="string",
annotations={
"string": "string",
},
cluster_resources=False,
infos=[harness.platform.GitOpsClusterRequestClusterInfoArgs(
api_versions=["string"],
applications_count="string",
cache_infos=[harness.platform.GitOpsClusterRequestClusterInfoCacheInfoArgs(
apis_count="string",
last_cache_sync_time="string",
resources_count="string",
)],
connection_states=[harness.platform.GitOpsClusterRequestClusterInfoConnectionStateArgs(
attempted_ats=[harness.platform.GitOpsClusterRequestClusterInfoConnectionStateAttemptedAtArgs(
nanos=0,
seconds="string",
)],
message="string",
status="string",
)],
server_version="string",
)],
labels={
"string": "string",
},
name="string",
namespaces=["string"],
project="string",
refresh_requested_ats=[harness.platform.GitOpsClusterRequestClusterRefreshRequestedAtArgs(
nanos=0,
seconds="string",
)],
shard="string",
)],
ids=[harness.platform.GitOpsClusterRequestIdArgs(
type="string",
value="string",
)],
tags=["string"],
update_masks=[harness.platform.GitOpsClusterRequestUpdateMaskArgs(
paths=["string"],
)],
updated_fields=["string"],
upsert=False,
)])
const gitOpsClusterResource = new harness.platform.GitOpsCluster("gitOpsClusterResource", {
accountId: "string",
agentId: "string",
identifier: "string",
orgId: "string",
projectId: "string",
queries: [{
ids: [{
type: "string",
value: "string",
}],
name: "string",
server: "string",
}],
requests: [{
clusters: [{
configs: [{
awsAuthConfigs: [{
clusterName: "string",
roleARN: "string",
}],
bearerToken: "string",
clusterConnectionType: "string",
execProviderConfigs: [{
apiVersion: "string",
args: ["string"],
command: "string",
env: {
string: "string",
},
installHint: "string",
}],
password: "string",
tlsClientConfigs: [{
caData: "string",
certData: "string",
insecure: false,
keyData: "string",
serverName: "string",
}],
username: "string",
}],
server: "string",
annotations: {
string: "string",
},
clusterResources: false,
infos: [{
apiVersions: ["string"],
applicationsCount: "string",
cacheInfos: [{
apisCount: "string",
lastCacheSyncTime: "string",
resourcesCount: "string",
}],
connectionStates: [{
attemptedAts: [{
nanos: 0,
seconds: "string",
}],
message: "string",
status: "string",
}],
serverVersion: "string",
}],
labels: {
string: "string",
},
name: "string",
namespaces: ["string"],
project: "string",
refreshRequestedAts: [{
nanos: 0,
seconds: "string",
}],
shard: "string",
}],
ids: [{
type: "string",
value: "string",
}],
tags: ["string"],
updateMasks: [{
paths: ["string"],
}],
updatedFields: ["string"],
upsert: false,
}],
});
type: harness:platform:GitOpsCluster
properties:
accountId: string
agentId: string
identifier: string
orgId: string
projectId: string
queries:
- ids:
- type: string
value: string
name: string
server: string
requests:
- clusters:
- annotations:
string: string
clusterResources: false
configs:
- awsAuthConfigs:
- clusterName: string
roleARN: string
bearerToken: string
clusterConnectionType: string
execProviderConfigs:
- apiVersion: string
args:
- string
command: string
env:
string: string
installHint: string
password: string
tlsClientConfigs:
- caData: string
certData: string
insecure: false
keyData: string
serverName: string
username: string
infos:
- apiVersions:
- string
applicationsCount: string
cacheInfos:
- apisCount: string
lastCacheSyncTime: string
resourcesCount: string
connectionStates:
- attemptedAts:
- nanos: 0
seconds: string
message: string
status: string
serverVersion: string
labels:
string: string
name: string
namespaces:
- string
project: string
refreshRequestedAts:
- nanos: 0
seconds: string
server: string
shard: string
ids:
- type: string
value: string
tags:
- string
updateMasks:
- paths:
- string
updatedFields:
- string
upsert: false
GitOpsCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GitOpsCluster resource accepts the following input properties:
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id string - Agent identifier of the GitOps cluster.
- Identifier string
- Identifier of the GitOps cluster.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Query> - Query for the GitOps cluster resources.
- Requests
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request> - Cluster create or update request.
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id string - Agent identifier of the GitOps cluster.
- Identifier string
- Identifier of the GitOps cluster.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
[]Git
Ops Cluster Query Args - Query for the GitOps cluster resources.
- Requests
[]Git
Ops Cluster Request Args - Cluster create or update request.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id String - Agent identifier of the GitOps cluster.
- identifier String
- Identifier of the GitOps cluster.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries
List<Git
Ops Cluster Query> - Query for the GitOps cluster resources.
- requests
List<Git
Ops Cluster Request> - Cluster create or update request.
- account
Id string - Account identifier of the GitOps cluster.
- agent
Id string - Agent identifier of the GitOps cluster.
- identifier string
- Identifier of the GitOps cluster.
- org
Id string - Organization identifier of the cluster.
- project
Id string - Project identifier of the GitOps cluster.
- queries
Git
Ops Cluster Query[] - Query for the GitOps cluster resources.
- requests
Git
Ops Cluster Request[] - Cluster create or update request.
- account_
id str - Account identifier of the GitOps cluster.
- agent_
id str - Agent identifier of the GitOps cluster.
- identifier str
- Identifier of the GitOps cluster.
- org_
id str - Organization identifier of the cluster.
- project_
id str - Project identifier of the GitOps cluster.
- queries
Sequence[Git
Ops Cluster Query Args] - Query for the GitOps cluster resources.
- requests
Sequence[Git
Ops Cluster Request Args] - Cluster create or update request.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id String - Agent identifier of the GitOps cluster.
- identifier String
- Identifier of the GitOps cluster.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries List<Property Map>
- Query for the GitOps cluster resources.
- requests List<Property Map>
- Cluster create or update request.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitOpsCluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GitOpsCluster Resource
Get an existing GitOpsCluster 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?: GitOpsClusterState, opts?: CustomResourceOptions): GitOpsCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
queries: Optional[Sequence[GitOpsClusterQueryArgs]] = None,
requests: Optional[Sequence[GitOpsClusterRequestArgs]] = None) -> GitOpsCluster
func GetGitOpsCluster(ctx *Context, name string, id IDInput, state *GitOpsClusterState, opts ...ResourceOption) (*GitOpsCluster, error)
public static GitOpsCluster Get(string name, Input<string> id, GitOpsClusterState? state, CustomResourceOptions? opts = null)
public static GitOpsCluster get(String name, Output<String> id, GitOpsClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id string - Agent identifier of the GitOps cluster.
- Identifier string
- Identifier of the GitOps cluster.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Query> - Query for the GitOps cluster resources.
- Requests
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request> - Cluster create or update request.
- Account
Id string - Account identifier of the GitOps cluster.
- Agent
Id string - Agent identifier of the GitOps cluster.
- Identifier string
- Identifier of the GitOps cluster.
- Org
Id string - Organization identifier of the cluster.
- Project
Id string - Project identifier of the GitOps cluster.
- Queries
[]Git
Ops Cluster Query Args - Query for the GitOps cluster resources.
- Requests
[]Git
Ops Cluster Request Args - Cluster create or update request.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id String - Agent identifier of the GitOps cluster.
- identifier String
- Identifier of the GitOps cluster.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries
List<Git
Ops Cluster Query> - Query for the GitOps cluster resources.
- requests
List<Git
Ops Cluster Request> - Cluster create or update request.
- account
Id string - Account identifier of the GitOps cluster.
- agent
Id string - Agent identifier of the GitOps cluster.
- identifier string
- Identifier of the GitOps cluster.
- org
Id string - Organization identifier of the cluster.
- project
Id string - Project identifier of the GitOps cluster.
- queries
Git
Ops Cluster Query[] - Query for the GitOps cluster resources.
- requests
Git
Ops Cluster Request[] - Cluster create or update request.
- account_
id str - Account identifier of the GitOps cluster.
- agent_
id str - Agent identifier of the GitOps cluster.
- identifier str
- Identifier of the GitOps cluster.
- org_
id str - Organization identifier of the cluster.
- project_
id str - Project identifier of the GitOps cluster.
- queries
Sequence[Git
Ops Cluster Query Args] - Query for the GitOps cluster resources.
- requests
Sequence[Git
Ops Cluster Request Args] - Cluster create or update request.
- account
Id String - Account identifier of the GitOps cluster.
- agent
Id String - Agent identifier of the GitOps cluster.
- identifier String
- Identifier of the GitOps cluster.
- org
Id String - Organization identifier of the cluster.
- project
Id String - Project identifier of the GitOps cluster.
- queries List<Property Map>
- Query for the GitOps cluster resources.
- requests List<Property Map>
- Cluster create or update request.
Supporting Types
GitOpsClusterQuery, GitOpsClusterQueryArgs
- Ids
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Query Id> - Cluster server URL or the cluster name.
- Name string
- Name of the GitOps cluster.
- Server string
- Server of the GitOps cluster.
- Ids
[]Git
Ops Cluster Query Id - Cluster server URL or the cluster name.
- Name string
- Name of the GitOps cluster.
- Server string
- Server of the GitOps cluster.
- ids
List<Git
Ops Cluster Query Id> - Cluster server URL or the cluster name.
- name String
- Name of the GitOps cluster.
- server String
- Server of the GitOps cluster.
- ids
Git
Ops Cluster Query Id[] - Cluster server URL or the cluster name.
- name string
- Name of the GitOps cluster.
- server string
- Server of the GitOps cluster.
- ids
Sequence[Git
Ops Cluster Query Id] - Cluster server URL or the cluster name.
- name str
- Name of the GitOps cluster.
- server str
- Server of the GitOps cluster.
- ids List<Property Map>
- Cluster server URL or the cluster name.
- name String
- Name of the GitOps cluster.
- server String
- Server of the GitOps cluster.
GitOpsClusterQueryId, GitOpsClusterQueryIdArgs
GitOpsClusterRequest, GitOpsClusterRequestArgs
- Clusters
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster> - GitOps cluster details.
- Ids
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Id> - Cluster server URL or the cluster name.
- List<string>
- Tags associated with the clusters
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Update Mask> - Update mask of the GitOps cluster.
- Updated
Fields List<string> - Fields which are updated.
- Upsert bool
- Indicates if the GitOps cluster should be updated if existing and inserted if not.
- Clusters
[]Git
Ops Cluster Request Cluster - GitOps cluster details.
- Ids
[]Git
Ops Cluster Request Id - Cluster server URL or the cluster name.
- []string
- Tags associated with the clusters
- Update
Masks []GitOps Cluster Request Update Mask - Update mask of the GitOps cluster.
- Updated
Fields []string - Fields which are updated.
- Upsert bool
- Indicates if the GitOps cluster should be updated if existing and inserted if not.
- clusters
List<Git
Ops Cluster Request Cluster> - GitOps cluster details.
- ids
List<Git
Ops Cluster Request Id> - Cluster server URL or the cluster name.
- List<String>
- Tags associated with the clusters
- update
Masks List<GitOps Cluster Request Update Mask> - Update mask of the GitOps cluster.
- updated
Fields List<String> - Fields which are updated.
- upsert Boolean
- Indicates if the GitOps cluster should be updated if existing and inserted if not.
- clusters
Git
Ops Cluster Request Cluster[] - GitOps cluster details.
- ids
Git
Ops Cluster Request Id[] - Cluster server URL or the cluster name.
- string[]
- Tags associated with the clusters
- update
Masks GitOps Cluster Request Update Mask[] - Update mask of the GitOps cluster.
- updated
Fields string[] - Fields which are updated.
- upsert boolean
- Indicates if the GitOps cluster should be updated if existing and inserted if not.
- clusters
Sequence[Git
Ops Cluster Request Cluster] - GitOps cluster details.
- ids
Sequence[Git
Ops Cluster Request Id] - Cluster server URL or the cluster name.
- Sequence[str]
- Tags associated with the clusters
- update_
masks Sequence[GitOps Cluster Request Update Mask] - Update mask of the GitOps cluster.
- updated_
fields Sequence[str] - Fields which are updated.
- upsert bool
- Indicates if the GitOps cluster should be updated if existing and inserted if not.
- clusters List<Property Map>
- GitOps cluster details.
- ids List<Property Map>
- Cluster server URL or the cluster name.
- List<String>
- Tags associated with the clusters
- update
Masks List<Property Map> - Update mask of the GitOps cluster.
- updated
Fields List<String> - Fields which are updated.
- upsert Boolean
- Indicates if the GitOps cluster should be updated if existing and inserted if not.
GitOpsClusterRequestCluster, GitOpsClusterRequestClusterArgs
- Configs
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster Config> - Server string
- Annotations Dictionary<string, string>
- Cluster
Resources bool - Infos
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster Info> - Labels Dictionary<string, string>
- Name string
- Namespaces List<string>
- Project string
- Refresh
Requested List<Lbrlabs.Ats Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster Refresh Requested At> - string
- Configs
[]Git
Ops Cluster Request Cluster Config - Server string
- Annotations map[string]string
- Cluster
Resources bool - Infos
[]Git
Ops Cluster Request Cluster Info - Labels map[string]string
- Name string
- Namespaces []string
- Project string
- Refresh
Requested []GitAts Ops Cluster Request Cluster Refresh Requested At - string
- configs
List<Git
Ops Cluster Request Cluster Config> - server String
- annotations Map<String,String>
- cluster
Resources Boolean - infos
List<Git
Ops Cluster Request Cluster Info> - labels Map<String,String>
- name String
- namespaces List<String>
- project String
- refresh
Requested List<GitAts Ops Cluster Request Cluster Refresh Requested At> - String
- configs
Git
Ops Cluster Request Cluster Config[] - server string
- annotations {[key: string]: string}
- cluster
Resources boolean - infos
Git
Ops Cluster Request Cluster Info[] - labels {[key: string]: string}
- name string
- namespaces string[]
- project string
- refresh
Requested GitAts Ops Cluster Request Cluster Refresh Requested At[] - string
- configs
Sequence[Git
Ops Cluster Request Cluster Config] - server str
- annotations Mapping[str, str]
- cluster_
resources bool - infos
Sequence[Git
Ops Cluster Request Cluster Info] - labels Mapping[str, str]
- name str
- namespaces Sequence[str]
- project str
- refresh_
requested_ Sequence[Gitats Ops Cluster Request Cluster Refresh Requested At] - str
- configs List<Property Map>
- server String
- annotations Map<String>
- cluster
Resources Boolean - infos List<Property Map>
- labels Map<String>
- name String
- namespaces List<String>
- project String
- refresh
Requested List<Property Map>Ats - String
GitOpsClusterRequestClusterConfig, GitOpsClusterRequestClusterConfigArgs
- Aws
Auth List<Lbrlabs.Configs Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster Config Aws Auth Config> - Bearer
Token string - Cluster
Connection stringType - Exec
Provider List<Lbrlabs.Configs Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster Config Exec Provider Config> - Password string
- Tls
Client List<Lbrlabs.Configs Pulumi Package. Harness. Platform. Inputs. Git Ops Cluster Request Cluster Config Tls Client Config> - Username string
- aws_
auth_ Sequence[Gitconfigs Ops Cluster Request Cluster Config Aws Auth Config] - bearer_
token str - cluster_
connection_ strtype - exec_
provider_ Sequence[Gitconfigs Ops Cluster Request Cluster Config Exec Provider Config] - password str
- tls_
client_ Sequence[Gitconfigs Ops Cluster Request Cluster Config Tls Client Config] - username str
GitOpsClusterRequestClusterConfigAwsAuthConfig, GitOpsClusterRequestClusterConfigAwsAuthConfigArgs
- Cluster
Name string - Role
ARN string
- Cluster
Name string - Role
ARN string
- cluster
Name String - role
ARN String
- cluster
Name string - role
ARN string
- cluster_
name str - role_
arn str
- cluster
Name String - role
ARN String
GitOpsClusterRequestClusterConfigExecProviderConfig, GitOpsClusterRequestClusterConfigExecProviderConfigArgs
- Api
Version string - Args List<string>
- Command string
- Env Dictionary<string, string>
- Install
Hint string
- Api
Version string - Args []string
- Command string
- Env map[string]string
- Install
Hint string
- api
Version String - args List<String>
- command String
- env Map<String,String>
- install
Hint String
- api
Version string - args string[]
- command string
- env {[key: string]: string}
- install
Hint string
- api_
version str - args Sequence[str]
- command str
- env Mapping[str, str]
- install_
hint str
- api
Version String - args List<String>
- command String
- env Map<String>
- install
Hint String
GitOpsClusterRequestClusterConfigTlsClientConfig, GitOpsClusterRequestClusterConfigTlsClientConfigArgs
- Ca
Data string - Cert
Data string - Insecure bool
- Key
Data string - Server
Name string
- Ca
Data string - Cert
Data string - Insecure bool
- Key
Data string - Server
Name string
- ca
Data String - cert
Data String - insecure Boolean
- key
Data String - server
Name String
- ca
Data string - cert
Data string - insecure boolean
- key
Data string - server
Name string
- ca_
data str - cert_
data str - insecure bool
- key_
data str - server_
name str
- ca
Data String - cert
Data String - insecure Boolean
- key
Data String - server
Name String
GitOpsClusterRequestClusterInfo, GitOpsClusterRequestClusterInfoArgs
- api
Versions List<String> - applications
Count String - cache
Infos List<Property Map> - connection
States List<Property Map> - server
Version String
GitOpsClusterRequestClusterInfoCacheInfo, GitOpsClusterRequestClusterInfoCacheInfoArgs
- Apis
Count string - Last
Cache stringSync Time - Resources
Count string
- Apis
Count string - Last
Cache stringSync Time - Resources
Count string
- apis
Count String - last
Cache StringSync Time - resources
Count String
- apis
Count string - last
Cache stringSync Time - resources
Count string
- apis_
count str - last_
cache_ strsync_ time - resources_
count str
- apis
Count String - last
Cache StringSync Time - resources
Count String
GitOpsClusterRequestClusterInfoConnectionState, GitOpsClusterRequestClusterInfoConnectionStateArgs
- attempted
Ats List<Property Map> - message String
- status String
GitOpsClusterRequestClusterInfoConnectionStateAttemptedAt, GitOpsClusterRequestClusterInfoConnectionStateAttemptedAtArgs
GitOpsClusterRequestClusterRefreshRequestedAt, GitOpsClusterRequestClusterRefreshRequestedAtArgs
GitOpsClusterRequestId, GitOpsClusterRequestIdArgs
GitOpsClusterRequestUpdateMask, GitOpsClusterRequestUpdateMaskArgs
- Paths List<string>
- Paths []string
- paths List<String>
- paths string[]
- paths Sequence[str]
- paths List<String>
Import
Import a Account level Gitops Cluster
$ pulumi import harness:platform/gitOpsCluster:GitOpsCluster example <agent_id>/<cluster_id>
Import a Project level Gitops Cluster
$ pulumi import harness:platform/gitOpsCluster:GitOpsCluster example <organization_id>/<project_id>/<agent_id>/<cluster_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.