Class NodeDriver
Provides a Rancher v2 Node Driver resource. This can be used to create Node Driver for Rancher v2 RKE clusters and retrieve their information.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
// Create a new rancher2 Node Driver
var foo = new Rancher2.NodeDriver("foo", new Rancher2.NodeDriverArgs
{
Active = true,
Builtin = false,
Checksum = "0x0",
Description = "Foo description",
ExternalId = "foo_external",
UiUrl = "local://ui",
Url = "local://",
WhitelistDomains =
{
"*.foo.com",
},
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class NodeDriver : CustomResource
Constructors
View SourceNodeDriver(String, NodeDriverArgs, CustomResourceOptions)
Create a NodeDriver resource with the given unique name, arguments, and options.
Declaration
public NodeDriver(string name, NodeDriverArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NodeDriverArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActive
Specify if the node driver state (bool)
Declaration
public Output<bool> Active { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Annotations
Annotations of the resource (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Builtin
Specify wheter the node driver is an internal node driver or not (bool)
Declaration
public Output<bool> Builtin { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Checksum
Verify that the downloaded driver matches the expected checksum (string)
Declaration
public Output<string> Checksum { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
Description of the node driver (string)
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExternalId
External ID (string)
Declaration
public Output<string> ExternalId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels of the resource (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Name
Name of the node driver (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UiUrl
The URL to load for customized Add Nodes screen for this driver (string)
Declaration
public Output<string> UiUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Url
The URL to download the machine driver binary for 64-bit Linux (string)
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WhitelistDomains
Domains to whitelist for the ui (list)
Declaration
public Output<ImmutableArray<string>> WhitelistDomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, NodeDriverState, CustomResourceOptions)
Get an existing NodeDriver resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NodeDriver Get(string name, Input<string> id, NodeDriverState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NodeDriverState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NodeDriver |