1. Packages
  2. Cilium
  3. API Docs
  4. Config
Cilium v0.1.0 published on Thursday, May 30, 2024 by littlejo

cilium.Config

Explore with Pulumi AI

cilium logo
Cilium v0.1.0 published on Thursday, May 30, 2024 by littlejo

    Config resource for Cilium. This is equivalent to cilium cli: cilium config: It manages the cilium Kubernetes ConfigMap resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cilium from "@littlejo/cilium";
    
    const example = new cilium.Config("example", {
        key: "debug",
        value: "true",
    });
    
    import pulumi
    import littlejo_cilium as cilium
    
    example = cilium.Config("example",
        key="debug",
        value="true")
    
    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.NewConfig(ctx, "example", &cilium.ConfigArgs{
    			Key:   pulumi.String("debug"),
    			Value: pulumi.String("true"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cilium = Littlejo.Cilium;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Cilium.Config("example", new()
        {
            Key = "debug",
            Value = "true",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cilium.Config;
    import com.pulumi.cilium.ConfigArgs;
    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 Config("example", ConfigArgs.builder()
                .key("debug")
                .value("true")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cilium:Config
        properties:
          key: debug
          value: 'true'
    

    Create Config Resource

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

    Constructor syntax

    new Config(name: string, args: ConfigArgs, opts?: CustomResourceOptions);
    @overload
    def Config(resource_name: str,
               args: ConfigArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Config(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               key: Optional[str] = None,
               value: Optional[str] = None,
               restart: Optional[bool] = None)
    func NewConfig(ctx *Context, name string, args ConfigArgs, opts ...ResourceOption) (*Config, error)
    public Config(string name, ConfigArgs args, CustomResourceOptions? opts = null)
    public Config(String name, ConfigArgs args)
    public Config(String name, ConfigArgs args, CustomResourceOptions options)
    
    type: cilium:Config
    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 ConfigArgs
    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 ConfigArgs
    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 ConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigArgs
    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 configResource = new Cilium.Config("configResource", new()
    {
        Key = "string",
        Value = "string",
        Restart = false,
    });
    
    example, err := cilium.NewConfig(ctx, "configResource", &cilium.ConfigArgs{
    	Key:     pulumi.String("string"),
    	Value:   pulumi.String("string"),
    	Restart: pulumi.Bool(false),
    })
    
    var configResource = new Config("configResource", ConfigArgs.builder()
        .key("string")
        .value("string")
        .restart(false)
        .build());
    
    config_resource = cilium.Config("configResource",
        key="string",
        value="string",
        restart=False)
    
    const configResource = new cilium.Config("configResource", {
        key: "string",
        value: "string",
        restart: false,
    });
    
    type: cilium:Config
    properties:
        key: string
        restart: false
        value: string
    

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

    Key string
    Key of the config
    Value string
    Value of the key
    Restart bool
    Restart Cilium pods (Default: true).
    Key string
    Key of the config
    Value string
    Value of the key
    Restart bool
    Restart Cilium pods (Default: true).
    key String
    Key of the config
    value String
    Value of the key
    restart Boolean
    Restart Cilium pods (Default: true).
    key string
    Key of the config
    value string
    Value of the key
    restart boolean
    Restart Cilium pods (Default: true).
    key str
    Key of the config
    value str
    Value of the key
    restart bool
    Restart Cilium pods (Default: true).
    key String
    Key of the config
    value String
    Value of the key
    restart Boolean
    Restart Cilium pods (Default: true).

    Outputs

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

    Get an existing Config 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?: ConfigState, opts?: CustomResourceOptions): Config
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            key: Optional[str] = None,
            restart: Optional[bool] = None,
            value: Optional[str] = None) -> Config
    func GetConfig(ctx *Context, name string, id IDInput, state *ConfigState, opts ...ResourceOption) (*Config, error)
    public static Config Get(string name, Input<string> id, ConfigState? state, CustomResourceOptions? opts = null)
    public static Config get(String name, Output<String> id, ConfigState 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:
    Key string
    Key of the config
    Restart bool
    Restart Cilium pods (Default: true).
    Value string
    Value of the key
    Key string
    Key of the config
    Restart bool
    Restart Cilium pods (Default: true).
    Value string
    Value of the key
    key String
    Key of the config
    restart Boolean
    Restart Cilium pods (Default: true).
    value String
    Value of the key
    key string
    Key of the config
    restart boolean
    Restart Cilium pods (Default: true).
    value string
    Value of the key
    key str
    Key of the config
    restart bool
    Restart Cilium pods (Default: true).
    value str
    Value of the key
    key String
    Key of the config
    restart Boolean
    Restart Cilium pods (Default: true).
    value String
    Value of the key

    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.1.0 published on Thursday, May 30, 2024 by littlejo