1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getKubernetesAddons
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getKubernetesAddons

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Provides a kubernetes cluster addons datasource. This can be used to get information about an VKCS cluster addons.

    New since v0.3.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const clusterAddons = vkcs.getKubernetesAddons({
        clusterId: vkcs_kubernetes_cluster.k8s_cluster.id,
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    cluster_addons = vkcs.get_kubernetes_addons(cluster_id=vkcs_kubernetes_cluster["k8s_cluster"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.GetKubernetesAddons(ctx, &vkcs.GetKubernetesAddonsArgs{
    			ClusterId: vkcs_kubernetes_cluster.K8s_cluster.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var clusterAddons = Vkcs.GetKubernetesAddons.Invoke(new()
        {
            ClusterId = vkcs_kubernetes_cluster.K8s_cluster.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetKubernetesAddonsArgs;
    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 clusterAddons = VkcsFunctions.getKubernetesAddons(GetKubernetesAddonsArgs.builder()
                .clusterId(vkcs_kubernetes_cluster.k8s_cluster().id())
                .build());
    
        }
    }
    
    variables:
      clusterAddons:
        fn::invoke:
          function: vkcs:getKubernetesAddons
          arguments:
            clusterId: ${vkcs_kubernetes_cluster.k8s_cluster.id}
    

    Using getKubernetesAddons

    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 getKubernetesAddons(args: GetKubernetesAddonsArgs, opts?: InvokeOptions): Promise<GetKubernetesAddonsResult>
    function getKubernetesAddonsOutput(args: GetKubernetesAddonsOutputArgs, opts?: InvokeOptions): Output<GetKubernetesAddonsResult>
    def get_kubernetes_addons(cluster_id: Optional[str] = None,
                              region: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetKubernetesAddonsResult
    def get_kubernetes_addons_output(cluster_id: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesAddonsResult]
    func GetKubernetesAddons(ctx *Context, args *GetKubernetesAddonsArgs, opts ...InvokeOption) (*GetKubernetesAddonsResult, error)
    func GetKubernetesAddonsOutput(ctx *Context, args *GetKubernetesAddonsOutputArgs, opts ...InvokeOption) GetKubernetesAddonsResultOutput

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

    public static class GetKubernetesAddons 
    {
        public static Task<GetKubernetesAddonsResult> InvokeAsync(GetKubernetesAddonsArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesAddonsResult> Invoke(GetKubernetesAddonsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesAddonsResult> getKubernetesAddons(GetKubernetesAddonsArgs args, InvokeOptions options)
    public static Output<GetKubernetesAddonsResult> getKubernetesAddons(GetKubernetesAddonsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getKubernetesAddons:getKubernetesAddons
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    required string → The ID of the kubernetes cluster.
    Region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    ClusterId string
    required string → The ID of the kubernetes cluster.
    Region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    clusterId String
    required string → The ID of the kubernetes cluster.
    region String
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    clusterId string
    required string → The ID of the kubernetes cluster.
    region string
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    cluster_id str
    required string → The ID of the kubernetes cluster.
    region str
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.
    clusterId String
    required string → The ID of the kubernetes cluster.
    region String
    optional string → The region in which to obtain the service client. If omitted, the region argument of the provider is used.

    getKubernetesAddons Result

    The following output properties are available:

    Addons List<GetKubernetesAddonsAddon>
    list
    ClusterId string
    Id string
    string → ID of the resource.
    Region string
    Addons []GetKubernetesAddonsAddon
    list
    ClusterId string
    Id string
    string → ID of the resource.
    Region string
    addons List<GetKubernetesAddonsAddon>
    list
    clusterId String
    id String
    string → ID of the resource.
    region String
    addons GetKubernetesAddonsAddon[]
    list
    clusterId string
    id string
    string → ID of the resource.
    region string
    addons Sequence[GetKubernetesAddonsAddon]
    list
    cluster_id str
    id str
    string → ID of the resource.
    region str
    addons List<Property Map>
    list
    clusterId String
    id String
    string → ID of the resource.
    region String

    Supporting Types

    GetKubernetesAddonsAddon

    Id string
    string → ID of the resource.
    Installed bool
    boolean → Whether an addon was installed in the cluster.
    Name string
    string → Name of an addon.
    Version string
    string → Version of an addon.
    Id string
    string → ID of the resource.
    Installed bool
    boolean → Whether an addon was installed in the cluster.
    Name string
    string → Name of an addon.
    Version string
    string → Version of an addon.
    id String
    string → ID of the resource.
    installed Boolean
    boolean → Whether an addon was installed in the cluster.
    name String
    string → Name of an addon.
    version String
    string → Version of an addon.
    id string
    string → ID of the resource.
    installed boolean
    boolean → Whether an addon was installed in the cluster.
    name string
    string → Name of an addon.
    version string
    string → Version of an addon.
    id str
    string → ID of the resource.
    installed bool
    boolean → Whether an addon was installed in the cluster.
    name str
    string → Name of an addon.
    version str
    string → Version of an addon.
    id String
    string → ID of the resource.
    installed Boolean
    boolean → Whether an addon was installed in the cluster.
    name String
    string → Name of an addon.
    version String
    string → Version of an addon.

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs