Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getKubernetesAddonMetadata

This data source provides metadata of kubernetes cluster addons.

NOTE: Available in 1.166.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.CS.GetKubernetesAddonMetadata.InvokeAsync(new AliCloud.CS.GetKubernetesAddonMetadataArgs
        {
            ClusterId = @var.Cluster_id,
            Name = "nginx-ingress-controller",
            Version = "v1.1.2-aliyun.2",
        }));
        this.AddonConfigSchema = data.Alicloud_cs_kubernetes_addons.Default.Config_schema;
    }

    [Output("addonConfigSchema")]
    public Output<string> AddonConfigSchema { get; set; }
}
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
	})
}
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());
    }
}
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"])
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;
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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.