harness.platform.KubernetesConnector

Resource for creating a K8s connector.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;

return await Deployment.RunAsync(() => 
{
    var clientKeyCert = new Harness.Platform.KubernetesConnector("clientKeyCert", new()
    {
        ClientKeyCert = new Harness.Platform.Inputs.KubernetesConnectorClientKeyCertArgs
        {
            CaCertRef = "account.TEST_k8ss_client_stuff",
            ClientCertRef = "account.test_k8s_client_cert",
            ClientKeyAlgorithm = "RSA",
            ClientKeyPassphraseRef = "account.TEST_k8s_client_test",
            ClientKeyRef = "account.TEST_k8s_client_key",
            MasterUrl = "https://kubernetes.example.com",
        },
        DelegateSelectors = new[]
        {
            "harness-delegate",
        },
        Description = "description",
        Identifier = "identifier",
        Tags = new[]
        {
            "foo:bar",
        },
    });

    var usernamePassword = new Harness.Platform.KubernetesConnector("usernamePassword", new()
    {
        DelegateSelectors = new[]
        {
            "harness-delegate",
        },
        Description = "description",
        Identifier = "identifier",
        Tags = new[]
        {
            "foo:bar",
        },
        UsernamePassword = new Harness.Platform.Inputs.KubernetesConnectorUsernamePasswordArgs
        {
            MasterUrl = "https://kubernetes.example.com",
            PasswordRef = "account.TEST_k8s_client_test",
            Username = "admin",
        },
    });

    var serviceAccount = new Harness.Platform.KubernetesConnector("serviceAccount", new()
    {
        DelegateSelectors = new[]
        {
            "harness-delegate",
        },
        Description = "description",
        Identifier = "identifier",
        ServiceAccount = new Harness.Platform.Inputs.KubernetesConnectorServiceAccountArgs
        {
            MasterUrl = "https://kubernetes.example.com",
            ServiceAccountTokenRef = "account.TEST_k8s_client_test",
        },
        Tags = new[]
        {
            "foo:bar",
        },
    });

    var openIDConnect = new Harness.Platform.KubernetesConnector("openIDConnect", new()
    {
        DelegateSelectors = new[]
        {
            "harness-delegate",
        },
        Description = "description",
        Identifier = "%[1]s",
        OpenidConnect = new Harness.Platform.Inputs.KubernetesConnectorOpenidConnectArgs
        {
            ClientIdRef = "account.TEST_k8s_client_test",
            IssuerUrl = "https://oidc.example.com",
            MasterUrl = "https://kubernetes.example.com",
            PasswordRef = "account.TEST_k8s_client_test",
            Scopes = new[]
            {
                "scope1",
                "scope2",
            },
            SecretRef = "account.TEST_k8s_client_test",
            UsernameRef = "account.TEST_k8s_client_test",
        },
        Tags = new[]
        {
            "foo:bar",
        },
    });

    var inheritFromDelegate = new Harness.Platform.KubernetesConnector("inheritFromDelegate", new()
    {
        Description = "description",
        Identifier = "identifier",
        InheritFromDelegate = new Harness.Platform.Inputs.KubernetesConnectorInheritFromDelegateArgs
        {
            DelegateSelectors = new[]
            {
                "harness-delegate",
            },
        },
        Tags = new[]
        {
            "foo:bar",
        },
    });

});
package main

import (
	"fmt"

	"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.NewKubernetesConnector(ctx, "clientKeyCert", &platform.KubernetesConnectorArgs{
			ClientKeyCert: &platform.KubernetesConnectorClientKeyCertArgs{
				CaCertRef:              pulumi.String("account.TEST_k8ss_client_stuff"),
				ClientCertRef:          pulumi.String("account.test_k8s_client_cert"),
				ClientKeyAlgorithm:     pulumi.String("RSA"),
				ClientKeyPassphraseRef: pulumi.String("account.TEST_k8s_client_test"),
				ClientKeyRef:           pulumi.String("account.TEST_k8s_client_key"),
				MasterUrl:              pulumi.String("https://kubernetes.example.com"),
			},
			DelegateSelectors: pulumi.StringArray{
				pulumi.String("harness-delegate"),
			},
			Description: pulumi.String("description"),
			Identifier:  pulumi.String("identifier"),
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = platform.NewKubernetesConnector(ctx, "usernamePassword", &platform.KubernetesConnectorArgs{
			DelegateSelectors: pulumi.StringArray{
				pulumi.String("harness-delegate"),
			},
			Description: pulumi.String("description"),
			Identifier:  pulumi.String("identifier"),
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
			UsernamePassword: &platform.KubernetesConnectorUsernamePasswordArgs{
				MasterUrl:   pulumi.String("https://kubernetes.example.com"),
				PasswordRef: pulumi.String("account.TEST_k8s_client_test"),
				Username:    pulumi.String("admin"),
			},
		})
		if err != nil {
			return err
		}
		_, err = platform.NewKubernetesConnector(ctx, "serviceAccount", &platform.KubernetesConnectorArgs{
			DelegateSelectors: pulumi.StringArray{
				pulumi.String("harness-delegate"),
			},
			Description: pulumi.String("description"),
			Identifier:  pulumi.String("identifier"),
			ServiceAccount: &platform.KubernetesConnectorServiceAccountArgs{
				MasterUrl:              pulumi.String("https://kubernetes.example.com"),
				ServiceAccountTokenRef: pulumi.String("account.TEST_k8s_client_test"),
			},
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = platform.NewKubernetesConnector(ctx, "openIDConnect", &platform.KubernetesConnectorArgs{
			DelegateSelectors: pulumi.StringArray{
				pulumi.String("harness-delegate"),
			},
			Description: pulumi.String("description"),
			Identifier:  pulumi.String(fmt.Sprintf("%v[1]s", "%")),
			OpenidConnect: &platform.KubernetesConnectorOpenidConnectArgs{
				ClientIdRef: pulumi.String("account.TEST_k8s_client_test"),
				IssuerUrl:   pulumi.String("https://oidc.example.com"),
				MasterUrl:   pulumi.String("https://kubernetes.example.com"),
				PasswordRef: pulumi.String("account.TEST_k8s_client_test"),
				Scopes: pulumi.StringArray{
					pulumi.String("scope1"),
					pulumi.String("scope2"),
				},
				SecretRef:   pulumi.String("account.TEST_k8s_client_test"),
				UsernameRef: pulumi.String("account.TEST_k8s_client_test"),
			},
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = platform.NewKubernetesConnector(ctx, "inheritFromDelegate", &platform.KubernetesConnectorArgs{
			Description: pulumi.String("description"),
			Identifier:  pulumi.String("identifier"),
			InheritFromDelegate: &platform.KubernetesConnectorInheritFromDelegateArgs{
				DelegateSelectors: pulumi.StringArray{
					pulumi.String("harness-delegate"),
				},
			},
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
		})
		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.KubernetesConnector;
import com.pulumi.harness.platform.KubernetesConnectorArgs;
import com.pulumi.harness.platform.inputs.KubernetesConnectorClientKeyCertArgs;
import com.pulumi.harness.platform.inputs.KubernetesConnectorUsernamePasswordArgs;
import com.pulumi.harness.platform.inputs.KubernetesConnectorServiceAccountArgs;
import com.pulumi.harness.platform.inputs.KubernetesConnectorOpenidConnectArgs;
import com.pulumi.harness.platform.inputs.KubernetesConnectorInheritFromDelegateArgs;
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 clientKeyCert = new KubernetesConnector("clientKeyCert", KubernetesConnectorArgs.builder()        
            .clientKeyCert(KubernetesConnectorClientKeyCertArgs.builder()
                .caCertRef("account.TEST_k8ss_client_stuff")
                .clientCertRef("account.test_k8s_client_cert")
                .clientKeyAlgorithm("RSA")
                .clientKeyPassphraseRef("account.TEST_k8s_client_test")
                .clientKeyRef("account.TEST_k8s_client_key")
                .masterUrl("https://kubernetes.example.com")
                .build())
            .delegateSelectors("harness-delegate")
            .description("description")
            .identifier("identifier")
            .tags("foo:bar")
            .build());

        var usernamePassword = new KubernetesConnector("usernamePassword", KubernetesConnectorArgs.builder()        
            .delegateSelectors("harness-delegate")
            .description("description")
            .identifier("identifier")
            .tags("foo:bar")
            .usernamePassword(KubernetesConnectorUsernamePasswordArgs.builder()
                .masterUrl("https://kubernetes.example.com")
                .passwordRef("account.TEST_k8s_client_test")
                .username("admin")
                .build())
            .build());

        var serviceAccount = new KubernetesConnector("serviceAccount", KubernetesConnectorArgs.builder()        
            .delegateSelectors("harness-delegate")
            .description("description")
            .identifier("identifier")
            .serviceAccount(KubernetesConnectorServiceAccountArgs.builder()
                .masterUrl("https://kubernetes.example.com")
                .serviceAccountTokenRef("account.TEST_k8s_client_test")
                .build())
            .tags("foo:bar")
            .build());

        var openIDConnect = new KubernetesConnector("openIDConnect", KubernetesConnectorArgs.builder()        
            .delegateSelectors("harness-delegate")
            .description("description")
            .identifier("%[1]s")
            .openidConnect(KubernetesConnectorOpenidConnectArgs.builder()
                .clientIdRef("account.TEST_k8s_client_test")
                .issuerUrl("https://oidc.example.com")
                .masterUrl("https://kubernetes.example.com")
                .passwordRef("account.TEST_k8s_client_test")
                .scopes(                
                    "scope1",
                    "scope2")
                .secretRef("account.TEST_k8s_client_test")
                .usernameRef("account.TEST_k8s_client_test")
                .build())
            .tags("foo:bar")
            .build());

        var inheritFromDelegate = new KubernetesConnector("inheritFromDelegate", KubernetesConnectorArgs.builder()        
            .description("description")
            .identifier("identifier")
            .inheritFromDelegate(KubernetesConnectorInheritFromDelegateArgs.builder()
                .delegateSelectors("harness-delegate")
                .build())
            .tags("foo:bar")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_harness as harness

client_key_cert = harness.platform.KubernetesConnector("clientKeyCert",
    client_key_cert=harness.platform.KubernetesConnectorClientKeyCertArgs(
        ca_cert_ref="account.TEST_k8ss_client_stuff",
        client_cert_ref="account.test_k8s_client_cert",
        client_key_algorithm="RSA",
        client_key_passphrase_ref="account.TEST_k8s_client_test",
        client_key_ref="account.TEST_k8s_client_key",
        master_url="https://kubernetes.example.com",
    ),
    delegate_selectors=["harness-delegate"],
    description="description",
    identifier="identifier",
    tags=["foo:bar"])
username_password = harness.platform.KubernetesConnector("usernamePassword",
    delegate_selectors=["harness-delegate"],
    description="description",
    identifier="identifier",
    tags=["foo:bar"],
    username_password=harness.platform.KubernetesConnectorUsernamePasswordArgs(
        master_url="https://kubernetes.example.com",
        password_ref="account.TEST_k8s_client_test",
        username="admin",
    ))
service_account = harness.platform.KubernetesConnector("serviceAccount",
    delegate_selectors=["harness-delegate"],
    description="description",
    identifier="identifier",
    service_account=harness.platform.KubernetesConnectorServiceAccountArgs(
        master_url="https://kubernetes.example.com",
        service_account_token_ref="account.TEST_k8s_client_test",
    ),
    tags=["foo:bar"])
open_id_connect = harness.platform.KubernetesConnector("openIDConnect",
    delegate_selectors=["harness-delegate"],
    description="description",
    identifier="%[1]s",
    openid_connect=harness.platform.KubernetesConnectorOpenidConnectArgs(
        client_id_ref="account.TEST_k8s_client_test",
        issuer_url="https://oidc.example.com",
        master_url="https://kubernetes.example.com",
        password_ref="account.TEST_k8s_client_test",
        scopes=[
            "scope1",
            "scope2",
        ],
        secret_ref="account.TEST_k8s_client_test",
        username_ref="account.TEST_k8s_client_test",
    ),
    tags=["foo:bar"])
inherit_from_delegate = harness.platform.KubernetesConnector("inheritFromDelegate",
    description="description",
    identifier="identifier",
    inherit_from_delegate=harness.platform.KubernetesConnectorInheritFromDelegateArgs(
        delegate_selectors=["harness-delegate"],
    ),
    tags=["foo:bar"])
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const clientKeyCert = new harness.platform.KubernetesConnector("clientKeyCert", {
    clientKeyCert: {
        caCertRef: "account.TEST_k8ss_client_stuff",
        clientCertRef: "account.test_k8s_client_cert",
        clientKeyAlgorithm: "RSA",
        clientKeyPassphraseRef: "account.TEST_k8s_client_test",
        clientKeyRef: "account.TEST_k8s_client_key",
        masterUrl: "https://kubernetes.example.com",
    },
    delegateSelectors: ["harness-delegate"],
    description: "description",
    identifier: "identifier",
    tags: ["foo:bar"],
});
const usernamePassword = new harness.platform.KubernetesConnector("usernamePassword", {
    delegateSelectors: ["harness-delegate"],
    description: "description",
    identifier: "identifier",
    tags: ["foo:bar"],
    usernamePassword: {
        masterUrl: "https://kubernetes.example.com",
        passwordRef: "account.TEST_k8s_client_test",
        username: "admin",
    },
});
const serviceAccount = new harness.platform.KubernetesConnector("serviceAccount", {
    delegateSelectors: ["harness-delegate"],
    description: "description",
    identifier: "identifier",
    serviceAccount: {
        masterUrl: "https://kubernetes.example.com",
        serviceAccountTokenRef: "account.TEST_k8s_client_test",
    },
    tags: ["foo:bar"],
});
const openIDConnect = new harness.platform.KubernetesConnector("openIDConnect", {
    delegateSelectors: ["harness-delegate"],
    description: "description",
    identifier: "%[1]s",
    openidConnect: {
        clientIdRef: "account.TEST_k8s_client_test",
        issuerUrl: "https://oidc.example.com",
        masterUrl: "https://kubernetes.example.com",
        passwordRef: "account.TEST_k8s_client_test",
        scopes: [
            "scope1",
            "scope2",
        ],
        secretRef: "account.TEST_k8s_client_test",
        usernameRef: "account.TEST_k8s_client_test",
    },
    tags: ["foo:bar"],
});
const inheritFromDelegate = new harness.platform.KubernetesConnector("inheritFromDelegate", {
    description: "description",
    identifier: "identifier",
    inheritFromDelegate: {
        delegateSelectors: ["harness-delegate"],
    },
    tags: ["foo:bar"],
});
resources:
  clientKeyCert:
    type: harness:platform:KubernetesConnector
    properties:
      clientKeyCert:
        caCertRef: account.TEST_k8ss_client_stuff
        clientCertRef: account.test_k8s_client_cert
        clientKeyAlgorithm: RSA
        clientKeyPassphraseRef: account.TEST_k8s_client_test
        clientKeyRef: account.TEST_k8s_client_key
        masterUrl: https://kubernetes.example.com
      delegateSelectors:
        - harness-delegate
      description: description
      identifier: identifier
      tags:
        - foo:bar
  usernamePassword:
    type: harness:platform:KubernetesConnector
    properties:
      delegateSelectors:
        - harness-delegate
      description: description
      identifier: identifier
      tags:
        - foo:bar
      usernamePassword:
        masterUrl: https://kubernetes.example.com
        passwordRef: account.TEST_k8s_client_test
        username: admin
  serviceAccount:
    type: harness:platform:KubernetesConnector
    properties:
      delegateSelectors:
        - harness-delegate
      description: description
      identifier: identifier
      serviceAccount:
        masterUrl: https://kubernetes.example.com
        serviceAccountTokenRef: account.TEST_k8s_client_test
      tags:
        - foo:bar
  openIDConnect:
    type: harness:platform:KubernetesConnector
    properties:
      delegateSelectors:
        - harness-delegate
      description: description
      identifier: '%[1]s'
      openidConnect:
        clientIdRef: account.TEST_k8s_client_test
        issuerUrl: https://oidc.example.com
        masterUrl: https://kubernetes.example.com
        passwordRef: account.TEST_k8s_client_test
        scopes:
          - scope1
          - scope2
        secretRef: account.TEST_k8s_client_test
        usernameRef: account.TEST_k8s_client_test
      tags:
        - foo:bar
  inheritFromDelegate:
    type: harness:platform:KubernetesConnector
    properties:
      description: description
      identifier: identifier
      inheritFromDelegate:
        delegateSelectors:
          - harness-delegate
      tags:
        - foo:bar

Create KubernetesConnector Resource

new KubernetesConnector(name: string, args: KubernetesConnectorArgs, opts?: CustomResourceOptions);
@overload
def KubernetesConnector(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        client_key_cert: Optional[KubernetesConnectorClientKeyCertArgs] = None,
                        delegate_selectors: Optional[Sequence[str]] = None,
                        description: Optional[str] = None,
                        identifier: Optional[str] = None,
                        inherit_from_delegate: Optional[KubernetesConnectorInheritFromDelegateArgs] = None,
                        name: Optional[str] = None,
                        openid_connect: Optional[KubernetesConnectorOpenidConnectArgs] = None,
                        org_id: Optional[str] = None,
                        project_id: Optional[str] = None,
                        service_account: Optional[KubernetesConnectorServiceAccountArgs] = None,
                        tags: Optional[Sequence[str]] = None,
                        username_password: Optional[KubernetesConnectorUsernamePasswordArgs] = None)
@overload
def KubernetesConnector(resource_name: str,
                        args: KubernetesConnectorArgs,
                        opts: Optional[ResourceOptions] = None)
func NewKubernetesConnector(ctx *Context, name string, args KubernetesConnectorArgs, opts ...ResourceOption) (*KubernetesConnector, error)
public KubernetesConnector(string name, KubernetesConnectorArgs args, CustomResourceOptions? opts = null)
public KubernetesConnector(String name, KubernetesConnectorArgs args)
public KubernetesConnector(String name, KubernetesConnectorArgs args, CustomResourceOptions options)
type: harness:platform:KubernetesConnector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args KubernetesConnectorArgs
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 KubernetesConnectorArgs
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 KubernetesConnectorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args KubernetesConnectorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args KubernetesConnectorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

KubernetesConnector 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 KubernetesConnector resource accepts the following input properties:

Identifier string

Unique identifier of the resource.

ClientKeyCert Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

DelegateSelectors List<string>

Selectors to use for the delegate.

Description string

Description of the resource.

InheritFromDelegate Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

Name string

Name of the resource.

OpenidConnect Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

ServiceAccount Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorServiceAccountArgs

Service account for the connector.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

UsernamePassword Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

Identifier string

Unique identifier of the resource.

ClientKeyCert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

DelegateSelectors []string

Selectors to use for the delegate.

Description string

Description of the resource.

InheritFromDelegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

Name string

Name of the resource.

OpenidConnect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

ServiceAccount KubernetesConnectorServiceAccountArgs

Service account for the connector.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

UsernamePassword KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

identifier String

Unique identifier of the resource.

clientKeyCert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

delegateSelectors List<String>

Selectors to use for the delegate.

description String

Description of the resource.

inheritFromDelegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

name String

Name of the resource.

openidConnect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

serviceAccount KubernetesConnectorServiceAccountArgs

Service account for the connector.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

usernamePassword KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

identifier string

Unique identifier of the resource.

clientKeyCert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

delegateSelectors string[]

Selectors to use for the delegate.

description string

Description of the resource.

inheritFromDelegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

name string

Name of the resource.

openidConnect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

orgId string

Unique identifier of the Organization.

projectId string

Unique identifier of the Project.

serviceAccount KubernetesConnectorServiceAccountArgs

Service account for the connector.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

usernamePassword KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

identifier str

Unique identifier of the resource.

client_key_cert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

delegate_selectors Sequence[str]

Selectors to use for the delegate.

description str

Description of the resource.

inherit_from_delegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

name str

Name of the resource.

openid_connect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

org_id str

Unique identifier of the Organization.

project_id str

Unique identifier of the Project.

service_account KubernetesConnectorServiceAccountArgs

Service account for the connector.

tags Sequence[str]

Tags to associate with the resource. Tags should be in the form name:value.

username_password KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

identifier String

Unique identifier of the resource.

clientKeyCert Property Map

Client key and certificate config for the connector.

delegateSelectors List<String>

Selectors to use for the delegate.

description String

Description of the resource.

inheritFromDelegate Property Map

Credentials are inherited from the delegate.

name String

Name of the resource.

openidConnect Property Map

OpenID configuration for the connector.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

serviceAccount Property Map

Service account for the connector.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

usernamePassword Property Map

Username and password for the connector.

Outputs

All input properties are implicitly available as output properties. Additionally, the KubernetesConnector 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 KubernetesConnector Resource

Get an existing KubernetesConnector 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?: KubernetesConnectorState, opts?: CustomResourceOptions): KubernetesConnector
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        client_key_cert: Optional[KubernetesConnectorClientKeyCertArgs] = None,
        delegate_selectors: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        identifier: Optional[str] = None,
        inherit_from_delegate: Optional[KubernetesConnectorInheritFromDelegateArgs] = None,
        name: Optional[str] = None,
        openid_connect: Optional[KubernetesConnectorOpenidConnectArgs] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        service_account: Optional[KubernetesConnectorServiceAccountArgs] = None,
        tags: Optional[Sequence[str]] = None,
        username_password: Optional[KubernetesConnectorUsernamePasswordArgs] = None) -> KubernetesConnector
func GetKubernetesConnector(ctx *Context, name string, id IDInput, state *KubernetesConnectorState, opts ...ResourceOption) (*KubernetesConnector, error)
public static KubernetesConnector Get(string name, Input<string> id, KubernetesConnectorState? state, CustomResourceOptions? opts = null)
public static KubernetesConnector get(String name, Output<String> id, KubernetesConnectorState 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.
The following state arguments are supported:
ClientKeyCert Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

DelegateSelectors List<string>

Selectors to use for the delegate.

Description string

Description of the resource.

Identifier string

Unique identifier of the resource.

InheritFromDelegate Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

Name string

Name of the resource.

OpenidConnect Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

ServiceAccount Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorServiceAccountArgs

Service account for the connector.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

UsernamePassword Lbrlabs.PulumiPackage.Harness.Platform.Inputs.KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

ClientKeyCert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

DelegateSelectors []string

Selectors to use for the delegate.

Description string

Description of the resource.

Identifier string

Unique identifier of the resource.

InheritFromDelegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

Name string

Name of the resource.

OpenidConnect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

ServiceAccount KubernetesConnectorServiceAccountArgs

Service account for the connector.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

UsernamePassword KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

clientKeyCert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

delegateSelectors List<String>

Selectors to use for the delegate.

description String

Description of the resource.

identifier String

Unique identifier of the resource.

inheritFromDelegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

name String

Name of the resource.

openidConnect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

serviceAccount KubernetesConnectorServiceAccountArgs

Service account for the connector.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

usernamePassword KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

clientKeyCert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

delegateSelectors string[]

Selectors to use for the delegate.

description string

Description of the resource.

identifier string

Unique identifier of the resource.

inheritFromDelegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

name string

Name of the resource.

openidConnect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

orgId string

Unique identifier of the Organization.

projectId string

Unique identifier of the Project.

serviceAccount KubernetesConnectorServiceAccountArgs

Service account for the connector.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

usernamePassword KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

client_key_cert KubernetesConnectorClientKeyCertArgs

Client key and certificate config for the connector.

delegate_selectors Sequence[str]

Selectors to use for the delegate.

description str

Description of the resource.

identifier str

Unique identifier of the resource.

inherit_from_delegate KubernetesConnectorInheritFromDelegateArgs

Credentials are inherited from the delegate.

name str

Name of the resource.

openid_connect KubernetesConnectorOpenidConnectArgs

OpenID configuration for the connector.

org_id str

Unique identifier of the Organization.

project_id str

Unique identifier of the Project.

service_account KubernetesConnectorServiceAccountArgs

Service account for the connector.

tags Sequence[str]

Tags to associate with the resource. Tags should be in the form name:value.

username_password KubernetesConnectorUsernamePasswordArgs

Username and password for the connector.

clientKeyCert Property Map

Client key and certificate config for the connector.

delegateSelectors List<String>

Selectors to use for the delegate.

description String

Description of the resource.

identifier String

Unique identifier of the resource.

inheritFromDelegate Property Map

Credentials are inherited from the delegate.

name String

Name of the resource.

openidConnect Property Map

OpenID configuration for the connector.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

serviceAccount Property Map

Service account for the connector.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

usernamePassword Property Map

Username and password for the connector.

Supporting Types

KubernetesConnectorClientKeyCert

ClientCertRef string

Reference to the secret containing the client certificate for the connector.

ClientKeyAlgorithm string

The algorithm used to generate the client key for the connector. Valid values are RSA, EC

ClientKeyRef string

Reference to the secret containing the client key for the connector.

MasterUrl string

The URL of the Kubernetes cluster.

CaCertRef string

Reference to the secret containing the CA certificate for the connector.

ClientKeyPassphraseRef string

Reference to the secret containing the client key passphrase for the connector.

ClientCertRef string

Reference to the secret containing the client certificate for the connector.

ClientKeyAlgorithm string

The algorithm used to generate the client key for the connector. Valid values are RSA, EC

ClientKeyRef string

Reference to the secret containing the client key for the connector.

MasterUrl string

The URL of the Kubernetes cluster.

CaCertRef string

Reference to the secret containing the CA certificate for the connector.

ClientKeyPassphraseRef string

Reference to the secret containing the client key passphrase for the connector.

clientCertRef String

Reference to the secret containing the client certificate for the connector.

clientKeyAlgorithm String

The algorithm used to generate the client key for the connector. Valid values are RSA, EC

clientKeyRef String

Reference to the secret containing the client key for the connector.

masterUrl String

The URL of the Kubernetes cluster.

caCertRef String

Reference to the secret containing the CA certificate for the connector.

clientKeyPassphraseRef String

Reference to the secret containing the client key passphrase for the connector.

clientCertRef string

Reference to the secret containing the client certificate for the connector.

clientKeyAlgorithm string

The algorithm used to generate the client key for the connector. Valid values are RSA, EC

clientKeyRef string

Reference to the secret containing the client key for the connector.

masterUrl string

The URL of the Kubernetes cluster.

caCertRef string

Reference to the secret containing the CA certificate for the connector.

clientKeyPassphraseRef string

Reference to the secret containing the client key passphrase for the connector.

client_cert_ref str

Reference to the secret containing the client certificate for the connector.

client_key_algorithm str

The algorithm used to generate the client key for the connector. Valid values are RSA, EC

client_key_ref str

Reference to the secret containing the client key for the connector.

master_url str

The URL of the Kubernetes cluster.

ca_cert_ref str

Reference to the secret containing the CA certificate for the connector.

client_key_passphrase_ref str

Reference to the secret containing the client key passphrase for the connector.

clientCertRef String

Reference to the secret containing the client certificate for the connector.

clientKeyAlgorithm String

The algorithm used to generate the client key for the connector. Valid values are RSA, EC

clientKeyRef String

Reference to the secret containing the client key for the connector.

masterUrl String

The URL of the Kubernetes cluster.

caCertRef String

Reference to the secret containing the CA certificate for the connector.

clientKeyPassphraseRef String

Reference to the secret containing the client key passphrase for the connector.

KubernetesConnectorInheritFromDelegate

DelegateSelectors List<string>

Selectors to use for the delegate.

DelegateSelectors []string

Selectors to use for the delegate.

delegateSelectors List<String>

Selectors to use for the delegate.

delegateSelectors string[]

Selectors to use for the delegate.

delegate_selectors Sequence[str]

Selectors to use for the delegate.

delegateSelectors List<String>

Selectors to use for the delegate.

KubernetesConnectorOpenidConnect

ClientIdRef string

Reference to the secret containing the client ID for the connector.

IssuerUrl string

The URL of the OpenID Connect issuer.

MasterUrl string

The URL of the Kubernetes cluster.

PasswordRef string

Reference to the secret containing the password for the connector.

Scopes List<string>

Scopes to request for the connector.

SecretRef string

Reference to the secret containing the client secret for the connector.

Username string

Username for the connector.

UsernameRef string

Reference to the secret containing the username for the connector.

ClientIdRef string

Reference to the secret containing the client ID for the connector.

IssuerUrl string

The URL of the OpenID Connect issuer.

MasterUrl string

The URL of the Kubernetes cluster.

PasswordRef string

Reference to the secret containing the password for the connector.

Scopes []string

Scopes to request for the connector.

SecretRef string

Reference to the secret containing the client secret for the connector.

Username string

Username for the connector.

UsernameRef string

Reference to the secret containing the username for the connector.

clientIdRef String

Reference to the secret containing the client ID for the connector.

issuerUrl String

The URL of the OpenID Connect issuer.

masterUrl String

The URL of the Kubernetes cluster.

passwordRef String

Reference to the secret containing the password for the connector.

scopes List<String>

Scopes to request for the connector.

secretRef String

Reference to the secret containing the client secret for the connector.

username String

Username for the connector.

usernameRef String

Reference to the secret containing the username for the connector.

clientIdRef string

Reference to the secret containing the client ID for the connector.

issuerUrl string

The URL of the OpenID Connect issuer.

masterUrl string

The URL of the Kubernetes cluster.

passwordRef string

Reference to the secret containing the password for the connector.

scopes string[]

Scopes to request for the connector.

secretRef string

Reference to the secret containing the client secret for the connector.

username string

Username for the connector.

usernameRef string

Reference to the secret containing the username for the connector.

client_id_ref str

Reference to the secret containing the client ID for the connector.

issuer_url str

The URL of the OpenID Connect issuer.

master_url str

The URL of the Kubernetes cluster.

password_ref str

Reference to the secret containing the password for the connector.

scopes Sequence[str]

Scopes to request for the connector.

secret_ref str

Reference to the secret containing the client secret for the connector.

username str

Username for the connector.

username_ref str

Reference to the secret containing the username for the connector.

clientIdRef String

Reference to the secret containing the client ID for the connector.

issuerUrl String

The URL of the OpenID Connect issuer.

masterUrl String

The URL of the Kubernetes cluster.

passwordRef String

Reference to the secret containing the password for the connector.

scopes List<String>

Scopes to request for the connector.

secretRef String

Reference to the secret containing the client secret for the connector.

username String

Username for the connector.

usernameRef String

Reference to the secret containing the username for the connector.

KubernetesConnectorServiceAccount

MasterUrl string

The URL of the Kubernetes cluster.

ServiceAccountTokenRef string

Reference to the secret containing the service account token for the connector.

MasterUrl string

The URL of the Kubernetes cluster.

ServiceAccountTokenRef string

Reference to the secret containing the service account token for the connector.

masterUrl String

The URL of the Kubernetes cluster.

serviceAccountTokenRef String

Reference to the secret containing the service account token for the connector.

masterUrl string

The URL of the Kubernetes cluster.

serviceAccountTokenRef string

Reference to the secret containing the service account token for the connector.

master_url str

The URL of the Kubernetes cluster.

service_account_token_ref str

Reference to the secret containing the service account token for the connector.

masterUrl String

The URL of the Kubernetes cluster.

serviceAccountTokenRef String

Reference to the secret containing the service account token for the connector.

KubernetesConnectorUsernamePassword

MasterUrl string

The URL of the Kubernetes cluster.

PasswordRef string

Reference to the secret containing the password for the connector.

Username string

Username for the connector.

UsernameRef string

Reference to the secret containing the username for the connector.

MasterUrl string

The URL of the Kubernetes cluster.

PasswordRef string

Reference to the secret containing the password for the connector.

Username string

Username for the connector.

UsernameRef string

Reference to the secret containing the username for the connector.

masterUrl String

The URL of the Kubernetes cluster.

passwordRef String

Reference to the secret containing the password for the connector.

username String

Username for the connector.

usernameRef String

Reference to the secret containing the username for the connector.

masterUrl string

The URL of the Kubernetes cluster.

passwordRef string

Reference to the secret containing the password for the connector.

username string

Username for the connector.

usernameRef string

Reference to the secret containing the username for the connector.

master_url str

The URL of the Kubernetes cluster.

password_ref str

Reference to the secret containing the password for the connector.

username str

Username for the connector.

username_ref str

Reference to the secret containing the username for the connector.

masterUrl String

The URL of the Kubernetes cluster.

passwordRef String

Reference to the secret containing the password for the connector.

username String

Username for the connector.

usernameRef String

Reference to the secret containing the username for the connector.

Import

Import using kubernetes connector id

 $ pulumi import harness:platform/kubernetesConnector:KubernetesConnector example <connector_id>

Package Details

Repository
harness lbrlabs/pulumi-harness
License
Apache-2.0
Notes

This Pulumi package is based on the harness Terraform Provider.