1. Packages
  2. Cilium
  3. API Docs
  4. getHelmValues
Cilium v0.1.7 published on Sunday, Sep 29, 2024 by littlejo

cilium.getHelmValues

Explore with Pulumi AI

cilium logo
Cilium v0.1.7 published on Sunday, Sep 29, 2024 by littlejo

    Helm values of cilium

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cilium from "@pulumi/cilium";
    import * as local from "@pulumi/local";
    
    const exampleHelmValues = cilium.getHelmValues({});
    const exampleFile = new local.File("exampleFile", {
        content: exampleHelmValues.then(exampleHelmValues => exampleHelmValues.yaml),
        filename: `${path.module}/values.yaml`,
    });
    
    import pulumi
    import pulumi_cilium as cilium
    import pulumi_local as local
    
    example_helm_values = cilium.get_helm_values()
    example_file = local.File("exampleFile",
        content=example_helm_values.yaml,
        filename=f"{path['module']}/values.yaml")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/littlejo/pulumi-cilium/sdk/go/cilium"
    	"github.com/pulumi/pulumi-local/sdk/go/local"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleHelmValues, err := cilium.GetHelmValues(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = local.NewFile(ctx, "exampleFile", &local.FileArgs{
    			Content:  pulumi.String(exampleHelmValues.Yaml),
    			Filename: pulumi.Sprintf("%v/values.yaml", path.Module),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cilium = Pulumi.Cilium;
    using Local = Pulumi.Local;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleHelmValues = Cilium.GetHelmValues.Invoke();
    
        var exampleFile = new Local.File("exampleFile", new()
        {
            Content = exampleHelmValues.Apply(getHelmValuesResult => getHelmValuesResult.Yaml),
            Filename = $"{path.Module}/values.yaml",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cilium.CiliumFunctions;
    import com.pulumi.local.File;
    import com.pulumi.local.FileArgs;
    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) {
            final var exampleHelmValues = CiliumFunctions.getHelmValues();
    
            var exampleFile = new File("exampleFile", FileArgs.builder()
                .content(exampleHelmValues.applyValue(getHelmValuesResult -> getHelmValuesResult.yaml()))
                .filename(String.format("%s/values.yaml", path.module()))
                .build());
    
        }
    }
    
    resources:
      exampleFile:
        type: local:File
        properties:
          content: ${exampleHelmValues.yaml}
          filename: ${path.module}/values.yaml
    variables:
      exampleHelmValues:
        fn::invoke:
          Function: cilium:getHelmValues
          Arguments: {}
    

    Using getHelmValues

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getHelmValues(opts?: InvokeOptions): Promise<GetHelmValuesResult>
    function getHelmValuesOutput(opts?: InvokeOptions): Output<GetHelmValuesResult>
    def get_helm_values(opts: Optional[InvokeOptions] = None) -> GetHelmValuesResult
    def get_helm_values_output(opts: Optional[InvokeOptions] = None) -> Output[GetHelmValuesResult]
    func GetHelmValues(ctx *Context, opts ...InvokeOption) (*GetHelmValuesResult, error)
    func GetHelmValuesOutput(ctx *Context, opts ...InvokeOption) GetHelmValuesResultOutput

    > Note: This function is named GetHelmValues in the Go SDK.

    public static class GetHelmValues 
    {
        public static Task<GetHelmValuesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetHelmValuesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHelmValuesResult> getHelmValues(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: cilium:index/getHelmValues:getHelmValues
      arguments:
        # arguments dictionary

    getHelmValues Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Yaml string
    Yaml output
    Id string
    The provider-assigned unique ID for this managed resource.
    Yaml string
    Yaml output
    id String
    The provider-assigned unique ID for this managed resource.
    yaml String
    Yaml output
    id string
    The provider-assigned unique ID for this managed resource.
    yaml string
    Yaml output
    id str
    The provider-assigned unique ID for this managed resource.
    yaml str
    Yaml output
    id String
    The provider-assigned unique ID for this managed resource.
    yaml String
    Yaml output

    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.7 published on Sunday, Sep 29, 2024 by littlejo