vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getKubernetesAddon
Explore with Pulumi AI
Provides a kubernetes cluster addon datasource. This can be used to get information about an VKCS cluster addon.
New since v0.3.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const kubePrometheusStack = vkcs.getKubernetesAddon({
clusterId: vkcs_kubernetes_cluster.k8s_cluster.id,
name: "kube-prometheus-stack",
version: "68.3.3",
});
import pulumi
import pulumi_vkcs as vkcs
kube_prometheus_stack = vkcs.get_kubernetes_addon(cluster_id=vkcs_kubernetes_cluster["k8s_cluster"]["id"],
name="kube-prometheus-stack",
version="68.3.3")
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.LookupKubernetesAddon(ctx, &vkcs.LookupKubernetesAddonArgs{
ClusterId: vkcs_kubernetes_cluster.K8s_cluster.Id,
Name: "kube-prometheus-stack",
Version: "68.3.3",
}, 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 kubePrometheusStack = Vkcs.GetKubernetesAddon.Invoke(new()
{
ClusterId = vkcs_kubernetes_cluster.K8s_cluster.Id,
Name = "kube-prometheus-stack",
Version = "68.3.3",
});
});
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.GetKubernetesAddonArgs;
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 kubePrometheusStack = VkcsFunctions.getKubernetesAddon(GetKubernetesAddonArgs.builder()
.clusterId(vkcs_kubernetes_cluster.k8s_cluster().id())
.name("kube-prometheus-stack")
.version("68.3.3")
.build());
}
}
variables:
kubePrometheusStack:
fn::invoke:
function: vkcs:getKubernetesAddon
arguments:
clusterId: ${vkcs_kubernetes_cluster.k8s_cluster.id}
name: kube-prometheus-stack
version: 68.3.3
Using getKubernetesAddon
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 getKubernetesAddon(args: GetKubernetesAddonArgs, opts?: InvokeOptions): Promise<GetKubernetesAddonResult>
function getKubernetesAddonOutput(args: GetKubernetesAddonOutputArgs, opts?: InvokeOptions): Output<GetKubernetesAddonResult>
def get_kubernetes_addon(cluster_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKubernetesAddonResult
def get_kubernetes_addon_output(cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesAddonResult]
func LookupKubernetesAddon(ctx *Context, args *LookupKubernetesAddonArgs, opts ...InvokeOption) (*LookupKubernetesAddonResult, error)
func LookupKubernetesAddonOutput(ctx *Context, args *LookupKubernetesAddonOutputArgs, opts ...InvokeOption) LookupKubernetesAddonResultOutput
> Note: This function is named LookupKubernetesAddon
in the Go SDK.
public static class GetKubernetesAddon
{
public static Task<GetKubernetesAddonResult> InvokeAsync(GetKubernetesAddonArgs args, InvokeOptions? opts = null)
public static Output<GetKubernetesAddonResult> Invoke(GetKubernetesAddonInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKubernetesAddonResult> getKubernetesAddon(GetKubernetesAddonArgs args, InvokeOptions options)
public static Output<GetKubernetesAddonResult> getKubernetesAddon(GetKubernetesAddonArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getKubernetesAddon:getKubernetesAddon
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - required string → The ID of the kubernetes cluster.
- Name string
- required string → An addon name to filter by.
- Version string
- required string → An addon version to filter by.
- 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 string - required string → The ID of the kubernetes cluster.
- Name string
- required string → An addon name to filter by.
- Version string
- required string → An addon version to filter by.
- 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 String - required string → The ID of the kubernetes cluster.
- name String
- required string → An addon name to filter by.
- version String
- required string → An addon version to filter by.
- 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 string - required string → The ID of the kubernetes cluster.
- name string
- required string → An addon name to filter by.
- version string
- required string → An addon version to filter by.
- 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.
- name str
- required string → An addon name to filter by.
- version str
- required string → An addon version to filter by.
- region str
- optional string → The region in which to obtain the service client. If omitted, the
region
argument of the provider is used.
- cluster
Id String - required string → The ID of the kubernetes cluster.
- name String
- required string → An addon name to filter by.
- version String
- required string → An addon version to filter by.
- region String
- optional string → The region in which to obtain the service client. If omitted, the
region
argument of the provider is used.
getKubernetesAddon Result
The following output properties are available:
- Cluster
Id string - Configuration
Values string - string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
- Id string
- string → ID of the resource.
- Installed bool
- boolean → Whether the addon was installed in the cluster.
- Name string
- Region string
- Version string
- Cluster
Id string - Configuration
Values string - string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
- Id string
- string → ID of the resource.
- Installed bool
- boolean → Whether the addon was installed in the cluster.
- Name string
- Region string
- Version string
- cluster
Id String - configuration
Values String - string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
- id String
- string → ID of the resource.
- installed Boolean
- boolean → Whether the addon was installed in the cluster.
- name String
- region String
- version String
- cluster
Id string - configuration
Values string - string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
- id string
- string → ID of the resource.
- installed boolean
- boolean → Whether the addon was installed in the cluster.
- name string
- region string
- version string
- cluster_
id str - configuration_
values str - string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
- id str
- string → ID of the resource.
- installed bool
- boolean → Whether the addon was installed in the cluster.
- name str
- region str
- version str
- cluster
Id String - configuration
Values String - string → Configuration code for the addon. If the addon was installed in the cluster, this value is the user-provided configuration code, otherwise it is a template for this cluster.
- id String
- string → ID of the resource.
- installed Boolean
- boolean → Whether the addon was installed in the cluster.
- name String
- region String
- version String
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.