1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cs
  5. getKubernetesAddonMetadata
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cs.getKubernetesAddonMetadata

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    This data source provides metadata of kubernetes cluster addons.

    NOTE: Available in 1.166.0+.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.cs.getKubernetesAddonMetadata({
        clusterId: _var.cluster_id,
        name: "nginx-ingress-controller",
        version: "v1.1.2-aliyun.2",
    });
    export const addonConfigSchema = data.alicloud_cs_kubernetes_addons["default"].config_schema;
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.cs.get_kubernetes_addon_metadata(cluster_id=var["cluster_id"],
        name="nginx-ingress-controller",
        version="v1.1.2-aliyun.2")
    pulumi.export("addonConfigSchema", data["alicloud_cs_kubernetes_addons"]["default"]["config_schema"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cs.GetKubernetesAddonMetadata(ctx, &cs.GetKubernetesAddonMetadataArgs{
    			ClusterId: _var.Cluster_id,
    			Name:      "nginx-ingress-controller",
    			Version:   "v1.1.2-aliyun.2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("addonConfigSchema", data.Alicloud_cs_kubernetes_addons.Default.Config_schema)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.CS.GetKubernetesAddonMetadata.Invoke(new()
        {
            ClusterId = @var.Cluster_id,
            Name = "nginx-ingress-controller",
            Version = "v1.1.2-aliyun.2",
        });
    
        return new Dictionary<string, object?>
        {
            ["addonConfigSchema"] = data.Alicloud_cs_kubernetes_addons.Default.Config_schema,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cs.CsFunctions;
    import com.pulumi.alicloud.cs.inputs.GetKubernetesAddonMetadataArgs;
    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 default = CsFunctions.getKubernetesAddonMetadata(GetKubernetesAddonMetadataArgs.builder()
                .clusterId(var_.cluster_id())
                .name("nginx-ingress-controller")
                .version("v1.1.2-aliyun.2")
                .build());
    
            ctx.export("addonConfigSchema", data.alicloud_cs_kubernetes_addons().default().config_schema());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:cs:getKubernetesAddonMetadata
          Arguments:
            clusterId: ${var.cluster_id}
            name: nginx-ingress-controller
            version: v1.1.2-aliyun.2
    outputs:
      # Output addon configuration that can be customized
      addonConfigSchema: ${data.alicloud_cs_kubernetes_addons.default.config_schema}
    

    Using getKubernetesAddonMetadata

    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 getKubernetesAddonMetadata(args: GetKubernetesAddonMetadataArgs, opts?: InvokeOptions): Promise<GetKubernetesAddonMetadataResult>
    function getKubernetesAddonMetadataOutput(args: GetKubernetesAddonMetadataOutputArgs, opts?: InvokeOptions): Output<GetKubernetesAddonMetadataResult>
    def get_kubernetes_addon_metadata(cluster_id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      version: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetKubernetesAddonMetadataResult
    def get_kubernetes_addon_metadata_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      version: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesAddonMetadataResult]
    func GetKubernetesAddonMetadata(ctx *Context, args *GetKubernetesAddonMetadataArgs, opts ...InvokeOption) (*GetKubernetesAddonMetadataResult, error)
    func GetKubernetesAddonMetadataOutput(ctx *Context, args *GetKubernetesAddonMetadataOutputArgs, opts ...InvokeOption) GetKubernetesAddonMetadataResultOutput

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

    public static class GetKubernetesAddonMetadata 
    {
        public static Task<GetKubernetesAddonMetadataResult> InvokeAsync(GetKubernetesAddonMetadataArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesAddonMetadataResult> Invoke(GetKubernetesAddonMetadataInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesAddonMetadataResult> getKubernetesAddonMetadata(GetKubernetesAddonMetadataArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The id of kubernetes cluster.
    Name string
    The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source alicloud.cs.getKubernetesAddons.
    Version string
    The version of the cluster addon.
    ClusterId string
    The id of kubernetes cluster.
    Name string
    The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source alicloud.cs.getKubernetesAddons.
    Version string
    The version of the cluster addon.
    clusterId String
    The id of kubernetes cluster.
    name String
    The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source alicloud.cs.getKubernetesAddons.
    version String
    The version of the cluster addon.
    clusterId string
    The id of kubernetes cluster.
    name string
    The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source alicloud.cs.getKubernetesAddons.
    version string
    The version of the cluster addon.
    cluster_id str
    The id of kubernetes cluster.
    name str
    The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source alicloud.cs.getKubernetesAddons.
    version str
    The version of the cluster addon.
    clusterId String
    The id of kubernetes cluster.
    name String
    The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source alicloud.cs.getKubernetesAddons.
    version String
    The version of the cluster addon.

    getKubernetesAddonMetadata Result

    The following output properties are available:

    ClusterId string
    ConfigSchema string
    The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Version string
    ClusterId string
    ConfigSchema string
    The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Version string
    clusterId String
    configSchema String
    The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    version String
    clusterId string
    configSchema string
    The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    version string
    cluster_id str
    config_schema str
    The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    version str
    clusterId String
    configSchema String
    The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    version String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi