1. Packages
  2. Harness
  3. API Docs
  4. service
  5. Helm
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.service.Helm

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating a Kubernetes Helm service. This resource uses the config-as-code API’s. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleApplication = new Harness.Application("exampleApplication");
    
        var exampleHelm = new Harness.Service.Helm("exampleHelm", new()
        {
            AppId = exampleApplication.Id,
            Description = "Service for deploying native Helm application.s",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/service"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleApplication, err := harness.NewApplication(ctx, "exampleApplication", nil)
    		if err != nil {
    			return err
    		}
    		_, err = service.NewHelm(ctx, "exampleHelm", &service.HelmArgs{
    			AppId:       exampleApplication.ID(),
    			Description: pulumi.String("Service for deploying native Helm application.s"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.Application;
    import com.pulumi.harness.service.Helm;
    import com.pulumi.harness.service.HelmArgs;
    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 exampleApplication = new Application("exampleApplication");
    
            var exampleHelm = new Helm("exampleHelm", HelmArgs.builder()        
                .appId(exampleApplication.id())
                .description("Service for deploying native Helm application.s")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    example_application = harness.Application("exampleApplication")
    example_helm = harness.service.Helm("exampleHelm",
        app_id=example_application.id,
        description="Service for deploying native Helm application.s")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const exampleApplication = new harness.Application("exampleApplication", {});
    const exampleHelm = new harness.service.Helm("exampleHelm", {
        appId: exampleApplication.id,
        description: "Service for deploying native Helm application.s",
    });
    
    resources:
      exampleApplication:
        type: harness:Application
      exampleHelm:
        type: harness:service:Helm
        properties:
          appId: ${exampleApplication.id}
          description: Service for deploying native Helm application.s
    

    Create Helm Resource

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

    Constructor syntax

    new Helm(name: string, args: HelmArgs, opts?: CustomResourceOptions);
    @overload
    def Helm(resource_name: str,
             args: HelmArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Helm(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             app_id: Optional[str] = None,
             description: Optional[str] = None,
             name: Optional[str] = None,
             variables: Optional[Sequence[HelmVariableArgs]] = None)
    func NewHelm(ctx *Context, name string, args HelmArgs, opts ...ResourceOption) (*Helm, error)
    public Helm(string name, HelmArgs args, CustomResourceOptions? opts = null)
    public Helm(String name, HelmArgs args)
    public Helm(String name, HelmArgs args, CustomResourceOptions options)
    
    type: harness:service:Helm
    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 HelmArgs
    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 HelmArgs
    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 HelmArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HelmArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HelmArgs
    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 helmResource = new Harness.Service.Helm("helmResource", new()
    {
        AppId = "string",
        Description = "string",
        Name = "string",
        Variables = new[]
        {
            new Harness.Service.Inputs.HelmVariableArgs
            {
                Name = "string",
                Type = "string",
                Value = "string",
            },
        },
    });
    
    example, err := service.NewHelm(ctx, "helmResource", &service.HelmArgs{
    	AppId:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Variables: service.HelmVariableArray{
    		&service.HelmVariableArgs{
    			Name:  pulumi.String("string"),
    			Type:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var helmResource = new Helm("helmResource", HelmArgs.builder()
        .appId("string")
        .description("string")
        .name("string")
        .variables(HelmVariableArgs.builder()
            .name("string")
            .type("string")
            .value("string")
            .build())
        .build());
    
    helm_resource = harness.service.Helm("helmResource",
        app_id="string",
        description="string",
        name="string",
        variables=[harness.service.HelmVariableArgs(
            name="string",
            type="string",
            value="string",
        )])
    
    const helmResource = new harness.service.Helm("helmResource", {
        appId: "string",
        description: "string",
        name: "string",
        variables: [{
            name: "string",
            type: "string",
            value: "string",
        }],
    });
    
    type: harness:service:Helm
    properties:
        appId: string
        description: string
        name: string
        variables:
            - name: string
              type: string
              value: string
    

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

    AppId string
    The id of the application the service belongs to
    Description string
    Description of th service
    Name string
    Name of the service
    Variables List<Lbrlabs.PulumiPackage.Harness.Service.Inputs.HelmVariable>
    Variables to be used in the service
    AppId string
    The id of the application the service belongs to
    Description string
    Description of th service
    Name string
    Name of the service
    Variables []HelmVariableArgs
    Variables to be used in the service
    appId String
    The id of the application the service belongs to
    description String
    Description of th service
    name String
    Name of the service
    variables List<HelmVariable>
    Variables to be used in the service
    appId string
    The id of the application the service belongs to
    description string
    Description of th service
    name string
    Name of the service
    variables HelmVariable[]
    Variables to be used in the service
    app_id str
    The id of the application the service belongs to
    description str
    Description of th service
    name str
    Name of the service
    variables Sequence[HelmVariableArgs]
    Variables to be used in the service
    appId String
    The id of the application the service belongs to
    description String
    Description of th service
    name String
    Name of the service
    variables List<Property Map>
    Variables to be used in the service

    Outputs

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

    Get an existing Helm 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?: HelmState, opts?: CustomResourceOptions): Helm
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            variables: Optional[Sequence[HelmVariableArgs]] = None) -> Helm
    func GetHelm(ctx *Context, name string, id IDInput, state *HelmState, opts ...ResourceOption) (*Helm, error)
    public static Helm Get(string name, Input<string> id, HelmState? state, CustomResourceOptions? opts = null)
    public static Helm get(String name, Output<String> id, HelmState 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:
    AppId string
    The id of the application the service belongs to
    Description string
    Description of th service
    Name string
    Name of the service
    Variables List<Lbrlabs.PulumiPackage.Harness.Service.Inputs.HelmVariable>
    Variables to be used in the service
    AppId string
    The id of the application the service belongs to
    Description string
    Description of th service
    Name string
    Name of the service
    Variables []HelmVariableArgs
    Variables to be used in the service
    appId String
    The id of the application the service belongs to
    description String
    Description of th service
    name String
    Name of the service
    variables List<HelmVariable>
    Variables to be used in the service
    appId string
    The id of the application the service belongs to
    description string
    Description of th service
    name string
    Name of the service
    variables HelmVariable[]
    Variables to be used in the service
    app_id str
    The id of the application the service belongs to
    description str
    Description of th service
    name str
    Name of the service
    variables Sequence[HelmVariableArgs]
    Variables to be used in the service
    appId String
    The id of the application the service belongs to
    description String
    Description of th service
    name String
    Name of the service
    variables List<Property Map>
    Variables to be used in the service

    Supporting Types

    HelmVariable, HelmVariableArgs

    Name string
    Name of the variable
    Type string
    Type of the variable. Options are 'TEXT' and 'ENCRYPTED_TEXT'
    Value string
    Value of the variable
    Name string
    Name of the variable
    Type string
    Type of the variable. Options are 'TEXT' and 'ENCRYPTED_TEXT'
    Value string
    Value of the variable
    name String
    Name of the variable
    type String
    Type of the variable. Options are 'TEXT' and 'ENCRYPTED_TEXT'
    value String
    Value of the variable
    name string
    Name of the variable
    type string
    Type of the variable. Options are 'TEXT' and 'ENCRYPTED_TEXT'
    value string
    Value of the variable
    name str
    Name of the variable
    type str
    Type of the variable. Options are 'TEXT' and 'ENCRYPTED_TEXT'
    value str
    Value of the variable
    name String
    Name of the variable
    type String
    Type of the variable. Options are 'TEXT' and 'ENCRYPTED_TEXT'
    value String
    Value of the variable

    Import

    Import using the Harness application id and service id

     $ pulumi import harness:service/helm:Helm example <app_id>/<svc_id>
    

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

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs