1. Packages
  2. Cilium
  3. API Docs
  4. ClustermeshConnection
Cilium v0.0.6 published on Friday, Jan 19, 2024 by littlejo

cilium.ClustermeshConnection

Explore with Pulumi AI

cilium logo
Cilium v0.0.6 published on Friday, Jan 19, 2024 by littlejo

    Cluster Mesh connection resource. This is equivalent to cilium cli: cilium clustermesh connect and cilium clustermesh disconnect: It manages the connections between two Kubernetes clusters.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cilium = Littlejo.Cilium;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Cilium.ClustermeshConnection("example", new()
        {
            DestinationContext = "context-2",
        });
    
    });
    
    package main
    
    import (
    	"github.com/littlejo/pulumi-cilium/sdk/go/cilium"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cilium.NewClustermeshConnection(ctx, "example", &cilium.ClustermeshConnectionArgs{
    			DestinationContext: pulumi.String("context-2"),
    		})
    		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.cilium.ClustermeshConnection;
    import com.pulumi.cilium.ClustermeshConnectionArgs;
    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 example = new ClustermeshConnection("example", ClustermeshConnectionArgs.builder()        
                .destinationContext("context-2")
                .build());
    
        }
    }
    
    import pulumi
    import littlejo_cilium as cilium
    
    example = cilium.ClustermeshConnection("example", destination_context="context-2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as cilium from "@littlejo/cilium";
    
    const example = new cilium.ClustermeshConnection("example", {destinationContext: "context-2"});
    
    resources:
      example:
        type: cilium:ClustermeshConnection
        properties:
          destinationContext: context-2
    

    Create ClustermeshConnection Resource

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

    Constructor syntax

    new ClustermeshConnection(name: string, args?: ClustermeshConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def ClustermeshConnection(resource_name: str,
                              args: Optional[ClustermeshConnectionArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClustermeshConnection(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              destination_context: Optional[str] = None,
                              namespace: Optional[str] = None)
    func NewClustermeshConnection(ctx *Context, name string, args *ClustermeshConnectionArgs, opts ...ResourceOption) (*ClustermeshConnection, error)
    public ClustermeshConnection(string name, ClustermeshConnectionArgs? args = null, CustomResourceOptions? opts = null)
    public ClustermeshConnection(String name, ClustermeshConnectionArgs args)
    public ClustermeshConnection(String name, ClustermeshConnectionArgs args, CustomResourceOptions options)
    
    type: cilium:ClustermeshConnection
    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 ClustermeshConnectionArgs
    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 ClustermeshConnectionArgs
    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 ClustermeshConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClustermeshConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClustermeshConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var clustermeshConnectionResource = new Cilium.ClustermeshConnection("clustermeshConnectionResource", new()
    {
        DestinationContext = "string",
        Namespace = "string",
    });
    
    example, err := cilium.NewClustermeshConnection(ctx, "clustermeshConnectionResource", &cilium.ClustermeshConnectionArgs{
    	DestinationContext: pulumi.String("string"),
    	Namespace:          pulumi.String("string"),
    })
    
    var clustermeshConnectionResource = new ClustermeshConnection("clustermeshConnectionResource", ClustermeshConnectionArgs.builder()        
        .destinationContext("string")
        .namespace("string")
        .build());
    
    clustermesh_connection_resource = cilium.ClustermeshConnection("clustermeshConnectionResource",
        destination_context="string",
        namespace="string")
    
    const clustermeshConnectionResource = new cilium.ClustermeshConnection("clustermeshConnectionResource", {
        destinationContext: "string",
        namespace: "string",
    });
    
    type: cilium:ClustermeshConnection
    properties:
        destinationContext: string
        namespace: string
    

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

    DestinationContext string
    Kubernetes configuration context of destination cluster
    Namespace string
    Namespace in which to install (Default: kube-system).
    DestinationContext string
    Kubernetes configuration context of destination cluster
    Namespace string
    Namespace in which to install (Default: kube-system).
    destinationContext String
    Kubernetes configuration context of destination cluster
    namespace String
    Namespace in which to install (Default: kube-system).
    destinationContext string
    Kubernetes configuration context of destination cluster
    namespace string
    Namespace in which to install (Default: kube-system).
    destination_context str
    Kubernetes configuration context of destination cluster
    namespace str
    Namespace in which to install (Default: kube-system).
    destinationContext String
    Kubernetes configuration context of destination cluster
    namespace String
    Namespace in which to install (Default: kube-system).

    Outputs

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

    Get an existing ClustermeshConnection 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?: ClustermeshConnectionState, opts?: CustomResourceOptions): ClustermeshConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            destination_context: Optional[str] = None,
            namespace: Optional[str] = None) -> ClustermeshConnection
    func GetClustermeshConnection(ctx *Context, name string, id IDInput, state *ClustermeshConnectionState, opts ...ResourceOption) (*ClustermeshConnection, error)
    public static ClustermeshConnection Get(string name, Input<string> id, ClustermeshConnectionState? state, CustomResourceOptions? opts = null)
    public static ClustermeshConnection get(String name, Output<String> id, ClustermeshConnectionState 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:
    DestinationContext string
    Kubernetes configuration context of destination cluster
    Namespace string
    Namespace in which to install (Default: kube-system).
    DestinationContext string
    Kubernetes configuration context of destination cluster
    Namespace string
    Namespace in which to install (Default: kube-system).
    destinationContext String
    Kubernetes configuration context of destination cluster
    namespace String
    Namespace in which to install (Default: kube-system).
    destinationContext string
    Kubernetes configuration context of destination cluster
    namespace string
    Namespace in which to install (Default: kube-system).
    destination_context str
    Kubernetes configuration context of destination cluster
    namespace str
    Namespace in which to install (Default: kube-system).
    destinationContext String
    Kubernetes configuration context of destination cluster
    namespace String
    Namespace in which to install (Default: kube-system).

    Package Details

    Repository
    cilium littlejo/pulumi-cilium
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cilium Terraform Provider.
    cilium logo
    Cilium v0.0.6 published on Friday, Jan 19, 2024 by littlejo