Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

CloudProjectKubeOidc

Creates an OIDC configuration in an OVHcloud Managed Kubernetes cluster.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;

return await Deployment.RunAsync(() => 
{
    var my_oidc = new Ovh.CloudProjectKubeOidc("my-oidc", new()
    {
        ServiceName = @var.Projectid,
        KubeId = ovh_cloud_project_kube.Mykube.Id,
        ClientId = "xxx",
        IssuerUrl = "https://ovh.com",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.NewCloudProjectKubeOidc(ctx, "my-oidc", &ovh.CloudProjectKubeOidcArgs{
			ServiceName: pulumi.Any(_var.Projectid),
			KubeId:      pulumi.Any(ovh_cloud_project_kube.Mykube.Id),
			ClientId:    pulumi.String("xxx"),
			IssuerUrl:   pulumi.String("https://ovh.com"),
		})
		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.ovh.CloudProjectKubeOidc;
import com.pulumi.ovh.CloudProjectKubeOidcArgs;
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 my_oidc = new CloudProjectKubeOidc("my-oidc", CloudProjectKubeOidcArgs.builder()        
            .serviceName(var_.projectid())
            .kubeId(ovh_cloud_project_kube.mykube().id())
            .clientId("xxx")
            .issuerUrl("https://ovh.com")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

my_oidc = ovh.CloudProjectKubeOidc("my-oidc",
    service_name=var["projectid"],
    kube_id=ovh_cloud_project_kube["mykube"]["id"],
    client_id="xxx",
    issuer_url="https://ovh.com")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@lbrlabs/pulumi-ovh";

const my_oidc = new ovh.CloudProjectKubeOidc("my-oidc", {
    serviceName: _var.projectid,
    kubeId: ovh_cloud_project_kube.mykube.id,
    clientId: "xxx",
    issuerUrl: "https://ovh.com",
});
resources:
  my-oidc:
    type: ovh:CloudProjectKubeOidc
    properties:
      serviceName: ${var.projectid}
      kubeId: ${ovh_cloud_project_kube.mykube.id}
      clientId: xxx
      issuerUrl: https://ovh.com

Create a CloudProjectKubeOidc Resource

new CloudProjectKubeOidc(name: string, args: CloudProjectKubeOidcArgs, opts?: CustomResourceOptions);
@overload
def CloudProjectKubeOidc(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         client_id: Optional[str] = None,
                         issuer_url: Optional[str] = None,
                         kube_id: Optional[str] = None,
                         service_name: Optional[str] = None)
@overload
def CloudProjectKubeOidc(resource_name: str,
                         args: CloudProjectKubeOidcArgs,
                         opts: Optional[ResourceOptions] = None)
func NewCloudProjectKubeOidc(ctx *Context, name string, args CloudProjectKubeOidcArgs, opts ...ResourceOption) (*CloudProjectKubeOidc, error)
public CloudProjectKubeOidc(string name, CloudProjectKubeOidcArgs args, CustomResourceOptions? opts = null)
public CloudProjectKubeOidc(String name, CloudProjectKubeOidcArgs args)
public CloudProjectKubeOidc(String name, CloudProjectKubeOidcArgs args, CustomResourceOptions options)
type: ovh:CloudProjectKubeOidc
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CloudProjectKubeOidcArgs
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 CloudProjectKubeOidcArgs
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 CloudProjectKubeOidcArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CloudProjectKubeOidcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CloudProjectKubeOidcArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ClientId string

The OIDC client ID.

IssuerUrl string

The OIDC issuer url.

KubeId string

The ID of the managed kubernetes cluster.

ServiceName string

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

ClientId string

The OIDC client ID.

IssuerUrl string

The OIDC issuer url.

KubeId string

The ID of the managed kubernetes cluster.

ServiceName string

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

clientId String

The OIDC client ID.

issuerUrl String

The OIDC issuer url.

kubeId String

The ID of the managed kubernetes cluster.

serviceName String

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

clientId string

The OIDC client ID.

issuerUrl string

The OIDC issuer url.

kubeId string

The ID of the managed kubernetes cluster.

serviceName string

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

client_id str

The OIDC client ID.

issuer_url str

The OIDC issuer url.

kube_id str

The ID of the managed kubernetes cluster.

service_name str

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

clientId String

The OIDC client ID.

issuerUrl String

The OIDC issuer url.

kubeId String

The ID of the managed kubernetes cluster.

serviceName String

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Outputs

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

Get an existing CloudProjectKubeOidc 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?: CloudProjectKubeOidcState, opts?: CustomResourceOptions): CloudProjectKubeOidc
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        client_id: Optional[str] = None,
        issuer_url: Optional[str] = None,
        kube_id: Optional[str] = None,
        service_name: Optional[str] = None) -> CloudProjectKubeOidc
func GetCloudProjectKubeOidc(ctx *Context, name string, id IDInput, state *CloudProjectKubeOidcState, opts ...ResourceOption) (*CloudProjectKubeOidc, error)
public static CloudProjectKubeOidc Get(string name, Input<string> id, CloudProjectKubeOidcState? state, CustomResourceOptions? opts = null)
public static CloudProjectKubeOidc get(String name, Output<String> id, CloudProjectKubeOidcState 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:
ClientId string

The OIDC client ID.

IssuerUrl string

The OIDC issuer url.

KubeId string

The ID of the managed kubernetes cluster.

ServiceName string

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

ClientId string

The OIDC client ID.

IssuerUrl string

The OIDC issuer url.

KubeId string

The ID of the managed kubernetes cluster.

ServiceName string

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

clientId String

The OIDC client ID.

issuerUrl String

The OIDC issuer url.

kubeId String

The ID of the managed kubernetes cluster.

serviceName String

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

clientId string

The OIDC client ID.

issuerUrl string

The OIDC issuer url.

kubeId string

The ID of the managed kubernetes cluster.

serviceName string

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

client_id str

The OIDC client ID.

issuer_url str

The OIDC issuer url.

kube_id str

The ID of the managed kubernetes cluster.

service_name str

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

clientId String

The OIDC client ID.

issuerUrl String

The OIDC issuer url.

kubeId String

The ID of the managed kubernetes cluster.

serviceName String

The ID of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.