1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. KubernetesConnector
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.platform.KubernetesConnector

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    Resource for creating a K8s connector.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const clientKeyCert = new harness.platform.KubernetesConnector("clientKeyCert", {
        identifier: "identifier",
        name: "name",
        description: "description",
        tags: ["foo:bar"],
        clientKeyCert: {
            masterUrl: "https://kubernetes.example.com",
            caCertRef: "account.TEST_k8ss_client_stuff",
            clientCertRef: "account.test_k8s_client_cert",
            clientKeyRef: "account.TEST_k8s_client_key",
            clientKeyPassphraseRef: "account.TEST_k8s_client_test",
            clientKeyAlgorithm: "RSA",
        },
        delegateSelectors: ["harness-delegate"],
    });
    const usernamePassword = new harness.platform.KubernetesConnector("usernamePassword", {
        identifier: "identifier",
        name: "name",
        description: "description",
        tags: ["foo:bar"],
        usernamePassword: {
            masterUrl: "https://kubernetes.example.com",
            username: "admin",
            passwordRef: "account.TEST_k8s_client_test",
        },
        delegateSelectors: ["harness-delegate"],
    });
    const serviceAccount = new harness.platform.KubernetesConnector("serviceAccount", {
        identifier: "identifier",
        name: "name",
        description: "description",
        tags: ["foo:bar"],
        serviceAccount: {
            masterUrl: "https://kubernetes.example.com",
            serviceAccountTokenRef: "account.TEST_k8s_client_test",
        },
        delegateSelectors: ["harness-delegate"],
    });
    const openIDConnect = new harness.platform.KubernetesConnector("openIDConnect", {
        identifier: "%[1]s",
        name: "%[2]s",
        description: "description",
        tags: ["foo:bar"],
        openidConnect: {
            masterUrl: "https://kubernetes.example.com",
            issuerUrl: "https://oidc.example.com",
            usernameRef: "account.TEST_k8s_client_test",
            clientIdRef: "account.TEST_k8s_client_test",
            passwordRef: "account.TEST_k8s_client_test",
            secretRef: "account.TEST_k8s_client_test",
            scopes: [
                "scope1",
                "scope2",
            ],
        },
        delegateSelectors: ["harness-delegate"],
    });
    const inheritFromDelegate = new harness.platform.KubernetesConnector("inheritFromDelegate", {
        identifier: "identifier",
        name: "name",
        description: "description",
        tags: ["foo:bar"],
        inheritFromDelegate: {
            delegateSelectors: ["harness-delegate"],
        },
    });
    
    import pulumi
    import pulumi_harness as harness
    
    client_key_cert = harness.platform.KubernetesConnector("clientKeyCert",
        identifier="identifier",
        name="name",
        description="description",
        tags=["foo:bar"],
        client_key_cert={
            "master_url": "https://kubernetes.example.com",
            "ca_cert_ref": "account.TEST_k8ss_client_stuff",
            "client_cert_ref": "account.test_k8s_client_cert",
            "client_key_ref": "account.TEST_k8s_client_key",
            "client_key_passphrase_ref": "account.TEST_k8s_client_test",
            "client_key_algorithm": "RSA",
        },
        delegate_selectors=["harness-delegate"])
    username_password = harness.platform.KubernetesConnector("usernamePassword",
        identifier="identifier",
        name="name",
        description="description",
        tags=["foo:bar"],
        username_password={
            "master_url": "https://kubernetes.example.com",
            "username": "admin",
            "password_ref": "account.TEST_k8s_client_test",
        },
        delegate_selectors=["harness-delegate"])
    service_account = harness.platform.KubernetesConnector("serviceAccount",
        identifier="identifier",
        name="name",
        description="description",
        tags=["foo:bar"],
        service_account={
            "master_url": "https://kubernetes.example.com",
            "service_account_token_ref": "account.TEST_k8s_client_test",
        },
        delegate_selectors=["harness-delegate"])
    open_id_connect = harness.platform.KubernetesConnector("openIDConnect",
        identifier="%[1]s",
        name="%[2]s",
        description="description",
        tags=["foo:bar"],
        openid_connect={
            "master_url": "https://kubernetes.example.com",
            "issuer_url": "https://oidc.example.com",
            "username_ref": "account.TEST_k8s_client_test",
            "client_id_ref": "account.TEST_k8s_client_test",
            "password_ref": "account.TEST_k8s_client_test",
            "secret_ref": "account.TEST_k8s_client_test",
            "scopes": [
                "scope1",
                "scope2",
            ],
        },
        delegate_selectors=["harness-delegate"])
    inherit_from_delegate = harness.platform.KubernetesConnector("inheritFromDelegate",
        identifier="identifier",
        name="name",
        description="description",
        tags=["foo:bar"],
        inherit_from_delegate={
            "delegate_selectors": ["harness-delegate"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/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{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("description"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			ClientKeyCert: &platform.KubernetesConnectorClientKeyCertArgs{
    				MasterUrl:              pulumi.String("https://kubernetes.example.com"),
    				CaCertRef:              pulumi.String("account.TEST_k8ss_client_stuff"),
    				ClientCertRef:          pulumi.String("account.test_k8s_client_cert"),
    				ClientKeyRef:           pulumi.String("account.TEST_k8s_client_key"),
    				ClientKeyPassphraseRef: pulumi.String("account.TEST_k8s_client_test"),
    				ClientKeyAlgorithm:     pulumi.String("RSA"),
    			},
    			DelegateSelectors: pulumi.StringArray{
    				pulumi.String("harness-delegate"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewKubernetesConnector(ctx, "usernamePassword", &platform.KubernetesConnectorArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("description"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			UsernamePassword: &platform.KubernetesConnectorUsernamePasswordArgs{
    				MasterUrl:   pulumi.String("https://kubernetes.example.com"),
    				Username:    pulumi.String("admin"),
    				PasswordRef: pulumi.String("account.TEST_k8s_client_test"),
    			},
    			DelegateSelectors: pulumi.StringArray{
    				pulumi.String("harness-delegate"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewKubernetesConnector(ctx, "serviceAccount", &platform.KubernetesConnectorArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("description"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			ServiceAccount: &platform.KubernetesConnectorServiceAccountArgs{
    				MasterUrl:              pulumi.String("https://kubernetes.example.com"),
    				ServiceAccountTokenRef: pulumi.String("account.TEST_k8s_client_test"),
    			},
    			DelegateSelectors: pulumi.StringArray{
    				pulumi.String("harness-delegate"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewKubernetesConnector(ctx, "openIDConnect", &platform.KubernetesConnectorArgs{
    			Identifier:  pulumi.String("%[1]s"),
    			Name:        pulumi.String("%[2]s"),
    			Description: pulumi.String("description"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			OpenidConnect: &platform.KubernetesConnectorOpenidConnectArgs{
    				MasterUrl:   pulumi.String("https://kubernetes.example.com"),
    				IssuerUrl:   pulumi.String("https://oidc.example.com"),
    				UsernameRef: pulumi.String("account.TEST_k8s_client_test"),
    				ClientIdRef: pulumi.String("account.TEST_k8s_client_test"),
    				PasswordRef: pulumi.String("account.TEST_k8s_client_test"),
    				SecretRef:   pulumi.String("account.TEST_k8s_client_test"),
    				Scopes: pulumi.StringArray{
    					pulumi.String("scope1"),
    					pulumi.String("scope2"),
    				},
    			},
    			DelegateSelectors: pulumi.StringArray{
    				pulumi.String("harness-delegate"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewKubernetesConnector(ctx, "inheritFromDelegate", &platform.KubernetesConnectorArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("description"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			InheritFromDelegate: &platform.KubernetesConnectorInheritFromDelegateArgs{
    				DelegateSelectors: pulumi.StringArray{
    					pulumi.String("harness-delegate"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var clientKeyCert = new Harness.Platform.KubernetesConnector("clientKeyCert", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "description",
            Tags = new[]
            {
                "foo:bar",
            },
            ClientKeyCert = new Harness.Platform.Inputs.KubernetesConnectorClientKeyCertArgs
            {
                MasterUrl = "https://kubernetes.example.com",
                CaCertRef = "account.TEST_k8ss_client_stuff",
                ClientCertRef = "account.test_k8s_client_cert",
                ClientKeyRef = "account.TEST_k8s_client_key",
                ClientKeyPassphraseRef = "account.TEST_k8s_client_test",
                ClientKeyAlgorithm = "RSA",
            },
            DelegateSelectors = new[]
            {
                "harness-delegate",
            },
        });
    
        var usernamePassword = new Harness.Platform.KubernetesConnector("usernamePassword", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "description",
            Tags = new[]
            {
                "foo:bar",
            },
            UsernamePassword = new Harness.Platform.Inputs.KubernetesConnectorUsernamePasswordArgs
            {
                MasterUrl = "https://kubernetes.example.com",
                Username = "admin",
                PasswordRef = "account.TEST_k8s_client_test",
            },
            DelegateSelectors = new[]
            {
                "harness-delegate",
            },
        });
    
        var serviceAccount = new Harness.Platform.KubernetesConnector("serviceAccount", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "description",
            Tags = new[]
            {
                "foo:bar",
            },
            ServiceAccount = new Harness.Platform.Inputs.KubernetesConnectorServiceAccountArgs
            {
                MasterUrl = "https://kubernetes.example.com",
                ServiceAccountTokenRef = "account.TEST_k8s_client_test",
            },
            DelegateSelectors = new[]
            {
                "harness-delegate",
            },
        });
    
        var openIDConnect = new Harness.Platform.KubernetesConnector("openIDConnect", new()
        {
            Identifier = "%[1]s",
            Name = "%[2]s",
            Description = "description",
            Tags = new[]
            {
                "foo:bar",
            },
            OpenidConnect = new Harness.Platform.Inputs.KubernetesConnectorOpenidConnectArgs
            {
                MasterUrl = "https://kubernetes.example.com",
                IssuerUrl = "https://oidc.example.com",
                UsernameRef = "account.TEST_k8s_client_test",
                ClientIdRef = "account.TEST_k8s_client_test",
                PasswordRef = "account.TEST_k8s_client_test",
                SecretRef = "account.TEST_k8s_client_test",
                Scopes = new[]
                {
                    "scope1",
                    "scope2",
                },
            },
            DelegateSelectors = new[]
            {
                "harness-delegate",
            },
        });
    
        var inheritFromDelegate = new Harness.Platform.KubernetesConnector("inheritFromDelegate", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "description",
            Tags = new[]
            {
                "foo:bar",
            },
            InheritFromDelegate = new Harness.Platform.Inputs.KubernetesConnectorInheritFromDelegateArgs
            {
                DelegateSelectors = new[]
                {
                    "harness-delegate",
                },
            },
        });
    
    });
    
    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()
                .identifier("identifier")
                .name("name")
                .description("description")
                .tags("foo:bar")
                .clientKeyCert(KubernetesConnectorClientKeyCertArgs.builder()
                    .masterUrl("https://kubernetes.example.com")
                    .caCertRef("account.TEST_k8ss_client_stuff")
                    .clientCertRef("account.test_k8s_client_cert")
                    .clientKeyRef("account.TEST_k8s_client_key")
                    .clientKeyPassphraseRef("account.TEST_k8s_client_test")
                    .clientKeyAlgorithm("RSA")
                    .build())
                .delegateSelectors("harness-delegate")
                .build());
    
            var usernamePassword = new KubernetesConnector("usernamePassword", KubernetesConnectorArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("description")
                .tags("foo:bar")
                .usernamePassword(KubernetesConnectorUsernamePasswordArgs.builder()
                    .masterUrl("https://kubernetes.example.com")
                    .username("admin")
                    .passwordRef("account.TEST_k8s_client_test")
                    .build())
                .delegateSelectors("harness-delegate")
                .build());
    
            var serviceAccount = new KubernetesConnector("serviceAccount", KubernetesConnectorArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("description")
                .tags("foo:bar")
                .serviceAccount(KubernetesConnectorServiceAccountArgs.builder()
                    .masterUrl("https://kubernetes.example.com")
                    .serviceAccountTokenRef("account.TEST_k8s_client_test")
                    .build())
                .delegateSelectors("harness-delegate")
                .build());
    
            var openIDConnect = new KubernetesConnector("openIDConnect", KubernetesConnectorArgs.builder()
                .identifier("%[1]s")
                .name("%[2]s")
                .description("description")
                .tags("foo:bar")
                .openidConnect(KubernetesConnectorOpenidConnectArgs.builder()
                    .masterUrl("https://kubernetes.example.com")
                    .issuerUrl("https://oidc.example.com")
                    .usernameRef("account.TEST_k8s_client_test")
                    .clientIdRef("account.TEST_k8s_client_test")
                    .passwordRef("account.TEST_k8s_client_test")
                    .secretRef("account.TEST_k8s_client_test")
                    .scopes(                
                        "scope1",
                        "scope2")
                    .build())
                .delegateSelectors("harness-delegate")
                .build());
    
            var inheritFromDelegate = new KubernetesConnector("inheritFromDelegate", KubernetesConnectorArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("description")
                .tags("foo:bar")
                .inheritFromDelegate(KubernetesConnectorInheritFromDelegateArgs.builder()
                    .delegateSelectors("harness-delegate")
                    .build())
                .build());
    
        }
    }
    
    resources:
      clientKeyCert:
        type: harness:platform:KubernetesConnector
        properties:
          identifier: identifier
          name: name
          description: description
          tags:
            - foo:bar
          clientKeyCert:
            masterUrl: https://kubernetes.example.com
            caCertRef: account.TEST_k8ss_client_stuff
            clientCertRef: account.test_k8s_client_cert
            clientKeyRef: account.TEST_k8s_client_key
            clientKeyPassphraseRef: account.TEST_k8s_client_test
            clientKeyAlgorithm: RSA
          delegateSelectors:
            - harness-delegate
      usernamePassword:
        type: harness:platform:KubernetesConnector
        properties:
          identifier: identifier
          name: name
          description: description
          tags:
            - foo:bar
          usernamePassword:
            masterUrl: https://kubernetes.example.com
            username: admin
            passwordRef: account.TEST_k8s_client_test
          delegateSelectors:
            - harness-delegate
      serviceAccount:
        type: harness:platform:KubernetesConnector
        properties:
          identifier: identifier
          name: name
          description: description
          tags:
            - foo:bar
          serviceAccount:
            masterUrl: https://kubernetes.example.com
            serviceAccountTokenRef: account.TEST_k8s_client_test
          delegateSelectors:
            - harness-delegate
      openIDConnect:
        type: harness:platform:KubernetesConnector
        properties:
          identifier: '%[1]s'
          name: '%[2]s'
          description: description
          tags:
            - foo:bar
          openidConnect:
            masterUrl: https://kubernetes.example.com
            issuerUrl: https://oidc.example.com
            usernameRef: account.TEST_k8s_client_test
            clientIdRef: account.TEST_k8s_client_test
            passwordRef: account.TEST_k8s_client_test
            secretRef: account.TEST_k8s_client_test
            scopes:
              - scope1
              - scope2
          delegateSelectors:
            - harness-delegate
      inheritFromDelegate:
        type: harness:platform:KubernetesConnector
        properties:
          identifier: identifier
          name: name
          description: description
          tags:
            - foo:bar
          inheritFromDelegate:
            delegateSelectors:
              - harness-delegate
    

    Create KubernetesConnector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new KubernetesConnector(name: string, args: KubernetesConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def KubernetesConnector(resource_name: str,
                            args: KubernetesConnectorArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def KubernetesConnector(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            identifier: Optional[str] = None,
                            name: Optional[str] = None,
                            description: Optional[str] = None,
                            force_delete: Optional[bool] = None,
                            delegate_selectors: Optional[Sequence[str]] = None,
                            inherit_from_delegate: Optional[KubernetesConnectorInheritFromDelegateArgs] = None,
                            client_key_cert: Optional[KubernetesConnectorClientKeyCertArgs] = 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)
    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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var kubernetesConnectorResource = new Harness.Platform.KubernetesConnector("kubernetesConnectorResource", new()
    {
        Identifier = "string",
        Name = "string",
        Description = "string",
        ForceDelete = false,
        DelegateSelectors = new[]
        {
            "string",
        },
        InheritFromDelegate = new Harness.Platform.Inputs.KubernetesConnectorInheritFromDelegateArgs
        {
            DelegateSelectors = new[]
            {
                "string",
            },
        },
        ClientKeyCert = new Harness.Platform.Inputs.KubernetesConnectorClientKeyCertArgs
        {
            ClientCertRef = "string",
            ClientKeyAlgorithm = "string",
            ClientKeyRef = "string",
            MasterUrl = "string",
            CaCertRef = "string",
            ClientKeyPassphraseRef = "string",
        },
        OpenidConnect = new Harness.Platform.Inputs.KubernetesConnectorOpenidConnectArgs
        {
            ClientIdRef = "string",
            IssuerUrl = "string",
            MasterUrl = "string",
            PasswordRef = "string",
            Scopes = new[]
            {
                "string",
            },
            SecretRef = "string",
            Username = "string",
            UsernameRef = "string",
        },
        OrgId = "string",
        ProjectId = "string",
        ServiceAccount = new Harness.Platform.Inputs.KubernetesConnectorServiceAccountArgs
        {
            MasterUrl = "string",
            ServiceAccountTokenRef = "string",
            CaCertRef = "string",
        },
        Tags = new[]
        {
            "string",
        },
        UsernamePassword = new Harness.Platform.Inputs.KubernetesConnectorUsernamePasswordArgs
        {
            MasterUrl = "string",
            PasswordRef = "string",
            Username = "string",
            UsernameRef = "string",
        },
    });
    
    example, err := platform.NewKubernetesConnector(ctx, "kubernetesConnectorResource", &platform.KubernetesConnectorArgs{
    	Identifier:  pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    	ForceDelete: pulumi.Bool(false),
    	DelegateSelectors: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InheritFromDelegate: &platform.KubernetesConnectorInheritFromDelegateArgs{
    		DelegateSelectors: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ClientKeyCert: &platform.KubernetesConnectorClientKeyCertArgs{
    		ClientCertRef:          pulumi.String("string"),
    		ClientKeyAlgorithm:     pulumi.String("string"),
    		ClientKeyRef:           pulumi.String("string"),
    		MasterUrl:              pulumi.String("string"),
    		CaCertRef:              pulumi.String("string"),
    		ClientKeyPassphraseRef: pulumi.String("string"),
    	},
    	OpenidConnect: &platform.KubernetesConnectorOpenidConnectArgs{
    		ClientIdRef: pulumi.String("string"),
    		IssuerUrl:   pulumi.String("string"),
    		MasterUrl:   pulumi.String("string"),
    		PasswordRef: pulumi.String("string"),
    		Scopes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SecretRef:   pulumi.String("string"),
    		Username:    pulumi.String("string"),
    		UsernameRef: pulumi.String("string"),
    	},
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	ServiceAccount: &platform.KubernetesConnectorServiceAccountArgs{
    		MasterUrl:              pulumi.String("string"),
    		ServiceAccountTokenRef: pulumi.String("string"),
    		CaCertRef:              pulumi.String("string"),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UsernamePassword: &platform.KubernetesConnectorUsernamePasswordArgs{
    		MasterUrl:   pulumi.String("string"),
    		PasswordRef: pulumi.String("string"),
    		Username:    pulumi.String("string"),
    		UsernameRef: pulumi.String("string"),
    	},
    })
    
    var kubernetesConnectorResource = new KubernetesConnector("kubernetesConnectorResource", KubernetesConnectorArgs.builder()
        .identifier("string")
        .name("string")
        .description("string")
        .forceDelete(false)
        .delegateSelectors("string")
        .inheritFromDelegate(KubernetesConnectorInheritFromDelegateArgs.builder()
            .delegateSelectors("string")
            .build())
        .clientKeyCert(KubernetesConnectorClientKeyCertArgs.builder()
            .clientCertRef("string")
            .clientKeyAlgorithm("string")
            .clientKeyRef("string")
            .masterUrl("string")
            .caCertRef("string")
            .clientKeyPassphraseRef("string")
            .build())
        .openidConnect(KubernetesConnectorOpenidConnectArgs.builder()
            .clientIdRef("string")
            .issuerUrl("string")
            .masterUrl("string")
            .passwordRef("string")
            .scopes("string")
            .secretRef("string")
            .username("string")
            .usernameRef("string")
            .build())
        .orgId("string")
        .projectId("string")
        .serviceAccount(KubernetesConnectorServiceAccountArgs.builder()
            .masterUrl("string")
            .serviceAccountTokenRef("string")
            .caCertRef("string")
            .build())
        .tags("string")
        .usernamePassword(KubernetesConnectorUsernamePasswordArgs.builder()
            .masterUrl("string")
            .passwordRef("string")
            .username("string")
            .usernameRef("string")
            .build())
        .build());
    
    kubernetes_connector_resource = harness.platform.KubernetesConnector("kubernetesConnectorResource",
        identifier="string",
        name="string",
        description="string",
        force_delete=False,
        delegate_selectors=["string"],
        inherit_from_delegate={
            "delegate_selectors": ["string"],
        },
        client_key_cert={
            "client_cert_ref": "string",
            "client_key_algorithm": "string",
            "client_key_ref": "string",
            "master_url": "string",
            "ca_cert_ref": "string",
            "client_key_passphrase_ref": "string",
        },
        openid_connect={
            "client_id_ref": "string",
            "issuer_url": "string",
            "master_url": "string",
            "password_ref": "string",
            "scopes": ["string"],
            "secret_ref": "string",
            "username": "string",
            "username_ref": "string",
        },
        org_id="string",
        project_id="string",
        service_account={
            "master_url": "string",
            "service_account_token_ref": "string",
            "ca_cert_ref": "string",
        },
        tags=["string"],
        username_password={
            "master_url": "string",
            "password_ref": "string",
            "username": "string",
            "username_ref": "string",
        })
    
    const kubernetesConnectorResource = new harness.platform.KubernetesConnector("kubernetesConnectorResource", {
        identifier: "string",
        name: "string",
        description: "string",
        forceDelete: false,
        delegateSelectors: ["string"],
        inheritFromDelegate: {
            delegateSelectors: ["string"],
        },
        clientKeyCert: {
            clientCertRef: "string",
            clientKeyAlgorithm: "string",
            clientKeyRef: "string",
            masterUrl: "string",
            caCertRef: "string",
            clientKeyPassphraseRef: "string",
        },
        openidConnect: {
            clientIdRef: "string",
            issuerUrl: "string",
            masterUrl: "string",
            passwordRef: "string",
            scopes: ["string"],
            secretRef: "string",
            username: "string",
            usernameRef: "string",
        },
        orgId: "string",
        projectId: "string",
        serviceAccount: {
            masterUrl: "string",
            serviceAccountTokenRef: "string",
            caCertRef: "string",
        },
        tags: ["string"],
        usernamePassword: {
            masterUrl: "string",
            passwordRef: "string",
            username: "string",
            usernameRef: "string",
        },
    });
    
    type: harness:platform:KubernetesConnector
    properties:
        clientKeyCert:
            caCertRef: string
            clientCertRef: string
            clientKeyAlgorithm: string
            clientKeyPassphraseRef: string
            clientKeyRef: string
            masterUrl: string
        delegateSelectors:
            - string
        description: string
        forceDelete: false
        identifier: string
        inheritFromDelegate:
            delegateSelectors:
                - string
        name: string
        openidConnect:
            clientIdRef: string
            issuerUrl: string
            masterUrl: string
            passwordRef: string
            scopes:
                - string
            secretRef: string
            username: string
            usernameRef: string
        orgId: string
        projectId: string
        serviceAccount:
            caCertRef: string
            masterUrl: string
            serviceAccountTokenRef: string
        tags:
            - string
        usernamePassword:
            masterUrl: string
            passwordRef: string
            username: string
            usernameRef: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The KubernetesConnector resource accepts the following input properties:

    Identifier string
    Unique identifier of the resource.
    ClientKeyCert KubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    DelegateSelectors List<string>
    Selectors to use for the delegate.
    Description string
    Description of the resource.
    ForceDelete bool
    Enable this flag for force deletion of connector
    InheritFromDelegate KubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    Name string
    Name of the resource.
    OpenidConnect KubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceAccount KubernetesConnectorServiceAccount
    Service account for the connector.
    Tags List<string>
    Tags to associate with the resource.
    UsernamePassword KubernetesConnectorUsernamePassword
    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.
    ForceDelete bool
    Enable this flag for force deletion of connector
    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.
    UsernamePassword KubernetesConnectorUsernamePasswordArgs
    Username and password for the connector.
    identifier String
    Unique identifier of the resource.
    clientKeyCert KubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    delegateSelectors List<String>
    Selectors to use for the delegate.
    description String
    Description of the resource.
    forceDelete Boolean
    Enable this flag for force deletion of connector
    inheritFromDelegate KubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    name String
    Name of the resource.
    openidConnect KubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceAccount KubernetesConnectorServiceAccount
    Service account for the connector.
    tags List<String>
    Tags to associate with the resource.
    usernamePassword KubernetesConnectorUsernamePassword
    Username and password for the connector.
    identifier string
    Unique identifier of the resource.
    clientKeyCert KubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    delegateSelectors string[]
    Selectors to use for the delegate.
    description string
    Description of the resource.
    forceDelete boolean
    Enable this flag for force deletion of connector
    inheritFromDelegate KubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    name string
    Name of the resource.
    openidConnect KubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    serviceAccount KubernetesConnectorServiceAccount
    Service account for the connector.
    tags string[]
    Tags to associate with the resource.
    usernamePassword KubernetesConnectorUsernamePassword
    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.
    force_delete bool
    Enable this flag for force deletion of connector
    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.
    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.
    forceDelete Boolean
    Enable this flag for force deletion of connector
    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.
    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,
            force_delete: Optional[bool] = 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 KubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    DelegateSelectors List<string>
    Selectors to use for the delegate.
    Description string
    Description of the resource.
    ForceDelete bool
    Enable this flag for force deletion of connector
    Identifier string
    Unique identifier of the resource.
    InheritFromDelegate KubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    Name string
    Name of the resource.
    OpenidConnect KubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ServiceAccount KubernetesConnectorServiceAccount
    Service account for the connector.
    Tags List<string>
    Tags to associate with the resource.
    UsernamePassword KubernetesConnectorUsernamePassword
    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.
    ForceDelete bool
    Enable this flag for force deletion of connector
    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.
    UsernamePassword KubernetesConnectorUsernamePasswordArgs
    Username and password for the connector.
    clientKeyCert KubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    delegateSelectors List<String>
    Selectors to use for the delegate.
    description String
    Description of the resource.
    forceDelete Boolean
    Enable this flag for force deletion of connector
    identifier String
    Unique identifier of the resource.
    inheritFromDelegate KubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    name String
    Name of the resource.
    openidConnect KubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    serviceAccount KubernetesConnectorServiceAccount
    Service account for the connector.
    tags List<String>
    Tags to associate with the resource.
    usernamePassword KubernetesConnectorUsernamePassword
    Username and password for the connector.
    clientKeyCert KubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    delegateSelectors string[]
    Selectors to use for the delegate.
    description string
    Description of the resource.
    forceDelete boolean
    Enable this flag for force deletion of connector
    identifier string
    Unique identifier of the resource.
    inheritFromDelegate KubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    name string
    Name of the resource.
    openidConnect KubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    serviceAccount KubernetesConnectorServiceAccount
    Service account for the connector.
    tags string[]
    Tags to associate with the resource.
    usernamePassword KubernetesConnectorUsernamePassword
    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.
    force_delete bool
    Enable this flag for force deletion of connector
    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.
    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.
    forceDelete Boolean
    Enable this flag for force deletion of connector
    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.
    usernamePassword Property Map
    Username and password for the connector.

    Supporting Types

    KubernetesConnectorClientKeyCert, KubernetesConnectorClientKeyCertArgs

    ClientCertRef string
    Reference to the secret containing the client certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    MasterUrl string
    The URL of the Kubernetes cluster.
    CaCertRef string
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    ClientKeyPassphraseRef string
    Reference to the secret containing the client key passphrase for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    ClientCertRef string
    Reference to the secret containing the client certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    MasterUrl string
    The URL of the Kubernetes cluster.
    CaCertRef string
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    ClientKeyPassphraseRef string
    Reference to the secret containing the client key passphrase for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientCertRef String
    Reference to the secret containing the client certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl String
    The URL of the Kubernetes cluster.
    caCertRef String
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientKeyPassphraseRef String
    Reference to the secret containing the client key passphrase for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientCertRef string
    Reference to the secret containing the client certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl string
    The URL of the Kubernetes cluster.
    caCertRef string
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientKeyPassphraseRef string
    Reference to the secret containing the client key passphrase for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    client_cert_ref str
    Reference to the secret containing the client certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    master_url str
    The URL of the Kubernetes cluster.
    ca_cert_ref str
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    client_key_passphrase_ref str
    Reference to the secret containing the client key passphrase for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientCertRef String
    Reference to the secret containing the client certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl String
    The URL of the Kubernetes cluster.
    caCertRef String
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientKeyPassphraseRef String
    Reference to the secret containing the client key passphrase for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.

    KubernetesConnectorInheritFromDelegate, KubernetesConnectorInheritFromDelegateArgs

    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, KubernetesConnectorOpenidConnectArgs

    ClientIdRef string
    Reference to the secret containing the client ID for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    Scopes List<string>
    Scopes to request for the connector.
    SecretRef string
    Reference to the secret containing the client secret for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    Username string
    Username for the connector.
    UsernameRef string
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    ClientIdRef string
    Reference to the secret containing the client ID for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    Scopes []string
    Scopes to request for the connector.
    SecretRef string
    Reference to the secret containing the client secret for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    Username string
    Username for the connector.
    UsernameRef string
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientIdRef String
    Reference to the secret containing the client ID for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    scopes List<String>
    Scopes to request for the connector.
    secretRef String
    Reference to the secret containing the client secret for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username String
    Username for the connector.
    usernameRef String
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientIdRef string
    Reference to the secret containing the client ID for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    scopes string[]
    Scopes to request for the connector.
    secretRef string
    Reference to the secret containing the client secret for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username string
    Username for the connector.
    usernameRef string
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    client_id_ref str
    Reference to the secret containing the client ID for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    scopes Sequence[str]
    Scopes to request for the connector.
    secret_ref str
    Reference to the secret containing the client secret for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username str
    Username for the connector.
    username_ref str
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    clientIdRef String
    Reference to the secret containing the client ID for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    scopes List<String>
    Scopes to request for the connector.
    secretRef String
    Reference to the secret containing the client secret for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username String
    Username for the connector.
    usernameRef String
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.

    KubernetesConnectorServiceAccount, KubernetesConnectorServiceAccountArgs

    MasterUrl string
    The URL of the Kubernetes cluster.
    ServiceAccountTokenRef string
    Reference to the secret containing the service account token for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    CaCertRef string
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    MasterUrl string
    The URL of the Kubernetes cluster.
    ServiceAccountTokenRef string
    Reference to the secret containing the service account token for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    CaCertRef string
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl String
    The URL of the Kubernetes cluster.
    serviceAccountTokenRef String
    Reference to the secret containing the service account token for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    caCertRef String
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl string
    The URL of the Kubernetes cluster.
    serviceAccountTokenRef string
    Reference to the secret containing the service account token for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    caCertRef string
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    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. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    ca_cert_ref str
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl String
    The URL of the Kubernetes cluster.
    serviceAccountTokenRef String
    Reference to the secret containing the service account token for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    caCertRef String
    Reference to the secret containing the CA certificate for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.

    KubernetesConnectorUsernamePassword, KubernetesConnectorUsernamePasswordArgs

    MasterUrl string
    The URL of the Kubernetes cluster.
    PasswordRef string
    Reference to the secret containing the password for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    Username string
    Username for the connector.
    UsernameRef string
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    MasterUrl string
    The URL of the Kubernetes cluster.
    PasswordRef string
    Reference to the secret containing the password for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    Username string
    Username for the connector.
    UsernameRef string
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl String
    The URL of the Kubernetes cluster.
    passwordRef String
    Reference to the secret containing the password for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username String
    Username for the connector.
    usernameRef String
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl string
    The URL of the Kubernetes cluster.
    passwordRef string
    Reference to the secret containing the password for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username string
    Username for the connector.
    usernameRef string
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    master_url str
    The URL of the Kubernetes cluster.
    password_ref str
    Reference to the secret containing the password for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username str
    Username for the connector.
    username_ref str
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    masterUrl String
    The URL of the Kubernetes cluster.
    passwordRef String
    Reference to the secret containing the password for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
    username String
    Username for the connector.
    usernameRef String
    Reference to the secret containing the username for the connector. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.

    Import

    Import account level kubernetes connector

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

    Import org level kubernetes connector

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

    Import project level kubernetes connector

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi