@pulumiverse/talos 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/{configuration.d.ts → getConfiguration.d.ts} +13 -13
- package/client/{configuration.js → getConfiguration.js} +10 -10
- package/client/getConfiguration.js.map +1 -0
- package/client/index.d.ts +3 -3
- package/client/index.js +4 -4
- package/client/index.js.map +1 -1
- package/cluster/getHealth.d.ts +81 -0
- package/cluster/getHealth.js +29 -0
- package/cluster/getHealth.js.map +1 -0
- package/cluster/getKubeconfig.d.ts +95 -0
- package/cluster/{kubeconfig.js → getKubeconfig.js} +8 -8
- package/cluster/getKubeconfig.js.map +1 -0
- package/cluster/index.d.ts +6 -3
- package/cluster/index.js +7 -4
- package/cluster/index.js.map +1 -1
- package/machine/{configuration.d.ts → getConfiguration.d.ts} +13 -13
- package/machine/{configuration.js → getConfiguration.js} +10 -10
- package/machine/getConfiguration.js.map +1 -0
- package/machine/{disks.d.ts → getDisks.d.ts} +25 -25
- package/machine/{disks.js → getDisks.js} +12 -12
- package/machine/getDisks.js.map +1 -0
- package/machine/index.d.ts +6 -6
- package/machine/index.js +7 -7
- package/machine/index.js.map +1 -1
- package/machine/secrets.d.ts +2 -2
- package/package.json +1 -1
- package/types/input.d.ts +157 -304
- package/types/output.d.ts +93 -223
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/client/configuration.js.map +0 -1
- package/cluster/kubeconfig.d.ts +0 -89
- package/cluster/kubeconfig.js.map +0 -1
- package/machine/configuration.js.map +0 -1
- package/machine/disks.js.map +0 -1
|
@@ -12,22 +12,22 @@ import * as outputs from "../types/output";
|
|
|
12
12
|
* import * as talos from "@pulumiverse/talos";
|
|
13
13
|
*
|
|
14
14
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
15
|
-
* const thisConfiguration = talos.client.
|
|
15
|
+
* const thisConfiguration = talos.client.getConfigurationOutput({
|
|
16
16
|
* clusterName: "example-cluster",
|
|
17
17
|
* clientConfiguration: thisSecrets.clientConfiguration,
|
|
18
18
|
* nodes: ["10.5.0.2"],
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function getConfiguration(args: GetConfigurationArgs, opts?: pulumi.InvokeOptions): Promise<GetConfigurationResult>;
|
|
23
23
|
/**
|
|
24
|
-
* A collection of arguments for invoking
|
|
24
|
+
* A collection of arguments for invoking getConfiguration.
|
|
25
25
|
*/
|
|
26
|
-
export interface
|
|
26
|
+
export interface GetConfigurationArgs {
|
|
27
27
|
/**
|
|
28
28
|
* The client configuration data
|
|
29
29
|
*/
|
|
30
|
-
clientConfiguration: inputs.client.
|
|
30
|
+
clientConfiguration: inputs.client.GetConfigurationClientConfiguration;
|
|
31
31
|
/**
|
|
32
32
|
* The name of the cluster in the generated config
|
|
33
33
|
*/
|
|
@@ -42,13 +42,13 @@ export interface ConfigurationArgs {
|
|
|
42
42
|
nodes?: string[];
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* A collection of values returned by
|
|
45
|
+
* A collection of values returned by getConfiguration.
|
|
46
46
|
*/
|
|
47
|
-
export interface
|
|
47
|
+
export interface GetConfigurationResult {
|
|
48
48
|
/**
|
|
49
49
|
* The client configuration data
|
|
50
50
|
*/
|
|
51
|
-
readonly clientConfiguration: outputs.client.
|
|
51
|
+
readonly clientConfiguration: outputs.client.GetConfigurationClientConfiguration;
|
|
52
52
|
/**
|
|
53
53
|
* The name of the cluster in the generated config
|
|
54
54
|
*/
|
|
@@ -81,22 +81,22 @@ export interface ConfigurationResult {
|
|
|
81
81
|
* import * as talos from "@pulumiverse/talos";
|
|
82
82
|
*
|
|
83
83
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
84
|
-
* const thisConfiguration = talos.client.
|
|
84
|
+
* const thisConfiguration = talos.client.getConfigurationOutput({
|
|
85
85
|
* clusterName: "example-cluster",
|
|
86
86
|
* clientConfiguration: thisSecrets.clientConfiguration,
|
|
87
87
|
* nodes: ["10.5.0.2"],
|
|
88
88
|
* });
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
91
|
-
export declare function
|
|
91
|
+
export declare function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConfigurationResult>;
|
|
92
92
|
/**
|
|
93
|
-
* A collection of arguments for invoking
|
|
93
|
+
* A collection of arguments for invoking getConfiguration.
|
|
94
94
|
*/
|
|
95
|
-
export interface
|
|
95
|
+
export interface GetConfigurationOutputArgs {
|
|
96
96
|
/**
|
|
97
97
|
* The client configuration data
|
|
98
98
|
*/
|
|
99
|
-
clientConfiguration: pulumi.Input<inputs.client.
|
|
99
|
+
clientConfiguration: pulumi.Input<inputs.client.GetConfigurationClientConfigurationArgs>;
|
|
100
100
|
/**
|
|
101
101
|
* The name of the cluster in the generated config
|
|
102
102
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.getConfigurationOutput = exports.getConfiguration = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
@@ -16,23 +16,23 @@ const utilities = require("../utilities");
|
|
|
16
16
|
* import * as talos from "@pulumiverse/talos";
|
|
17
17
|
*
|
|
18
18
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
19
|
-
* const thisConfiguration = talos.client.
|
|
19
|
+
* const thisConfiguration = talos.client.getConfigurationOutput({
|
|
20
20
|
* clusterName: "example-cluster",
|
|
21
21
|
* clientConfiguration: thisSecrets.clientConfiguration,
|
|
22
22
|
* nodes: ["10.5.0.2"],
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function getConfiguration(args, opts) {
|
|
27
27
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
-
return pulumi.runtime.invoke("talos:client/
|
|
28
|
+
return pulumi.runtime.invoke("talos:client/getConfiguration:getConfiguration", {
|
|
29
29
|
"clientConfiguration": args.clientConfiguration,
|
|
30
30
|
"clusterName": args.clusterName,
|
|
31
31
|
"endpoints": args.endpoints,
|
|
32
32
|
"nodes": args.nodes,
|
|
33
33
|
}, opts);
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
35
|
+
exports.getConfiguration = getConfiguration;
|
|
36
36
|
/**
|
|
37
37
|
* Generate client configuration for a Talos cluster
|
|
38
38
|
*
|
|
@@ -44,15 +44,15 @@ exports.configuration = configuration;
|
|
|
44
44
|
* import * as talos from "@pulumiverse/talos";
|
|
45
45
|
*
|
|
46
46
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
47
|
-
* const thisConfiguration = talos.client.
|
|
47
|
+
* const thisConfiguration = talos.client.getConfigurationOutput({
|
|
48
48
|
* clusterName: "example-cluster",
|
|
49
49
|
* clientConfiguration: thisSecrets.clientConfiguration,
|
|
50
50
|
* nodes: ["10.5.0.2"],
|
|
51
51
|
* });
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
function
|
|
55
|
-
return pulumi.output(args).apply((a) =>
|
|
54
|
+
function getConfigurationOutput(args, opts) {
|
|
55
|
+
return pulumi.output(args).apply((a) => getConfiguration(a, opts));
|
|
56
56
|
}
|
|
57
|
-
exports.
|
|
58
|
-
//# sourceMappingURL=
|
|
57
|
+
exports.getConfigurationOutput = getConfigurationOutput;
|
|
58
|
+
//# sourceMappingURL=getConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../client/getConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4CASC;AAqDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
|
package/client/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export { GetConfigurationArgs, GetConfigurationResult, GetConfigurationOutputArgs } from "./getConfiguration";
|
|
2
|
+
export declare const getConfiguration: typeof import("./getConfiguration").getConfiguration;
|
|
3
|
+
export declare const getConfigurationOutput: typeof import("./getConfiguration").getConfigurationOutput;
|
package/client/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.getConfigurationOutput = exports.getConfiguration = void 0;
|
|
6
6
|
const utilities = require("../utilities");
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
utilities.lazyLoad(exports, ["
|
|
7
|
+
exports.getConfiguration = null;
|
|
8
|
+
exports.getConfigurationOutput = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["getConfiguration", "getConfigurationOutput"], () => require("./getConfiguration"));
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../client/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,0CAA0C;AAI7B,QAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../client/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,0CAA0C;AAI7B,QAAA,gBAAgB,GAAyD,IAAW,CAAC;AACrF,QAAA,sBAAsB,GAA+D,IAAW,CAAC;AAC9G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,kBAAkB,EAAC,wBAAwB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Checks the health of a Talos cluster
|
|
6
|
+
*/
|
|
7
|
+
export declare function getHealth(args: GetHealthArgs, opts?: pulumi.InvokeOptions): Promise<GetHealthResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of arguments for invoking getHealth.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetHealthArgs {
|
|
12
|
+
/**
|
|
13
|
+
* The client configuration data
|
|
14
|
+
*/
|
|
15
|
+
clientConfiguration: inputs.cluster.GetHealthClientConfiguration;
|
|
16
|
+
/**
|
|
17
|
+
* List of control plane nodes to check for health.
|
|
18
|
+
*/
|
|
19
|
+
controlPlaneNodes: string[];
|
|
20
|
+
/**
|
|
21
|
+
* endpoints to use for the health check client. Use at least one control plane endpoint.
|
|
22
|
+
*/
|
|
23
|
+
endpoints: string[];
|
|
24
|
+
timeouts?: inputs.cluster.GetHealthTimeouts;
|
|
25
|
+
/**
|
|
26
|
+
* List of worker nodes to check for health.
|
|
27
|
+
*/
|
|
28
|
+
workerNodes?: string[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A collection of values returned by getHealth.
|
|
32
|
+
*/
|
|
33
|
+
export interface GetHealthResult {
|
|
34
|
+
/**
|
|
35
|
+
* The client configuration data
|
|
36
|
+
*/
|
|
37
|
+
readonly clientConfiguration: outputs.cluster.GetHealthClientConfiguration;
|
|
38
|
+
/**
|
|
39
|
+
* List of control plane nodes to check for health.
|
|
40
|
+
*/
|
|
41
|
+
readonly controlPlaneNodes: string[];
|
|
42
|
+
/**
|
|
43
|
+
* endpoints to use for the health check client. Use at least one control plane endpoint.
|
|
44
|
+
*/
|
|
45
|
+
readonly endpoints: string[];
|
|
46
|
+
/**
|
|
47
|
+
* The ID of this resource.
|
|
48
|
+
*/
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly timeouts?: outputs.cluster.GetHealthTimeouts;
|
|
51
|
+
/**
|
|
52
|
+
* List of worker nodes to check for health.
|
|
53
|
+
*/
|
|
54
|
+
readonly workerNodes?: string[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Checks the health of a Talos cluster
|
|
58
|
+
*/
|
|
59
|
+
export declare function getHealthOutput(args: GetHealthOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetHealthResult>;
|
|
60
|
+
/**
|
|
61
|
+
* A collection of arguments for invoking getHealth.
|
|
62
|
+
*/
|
|
63
|
+
export interface GetHealthOutputArgs {
|
|
64
|
+
/**
|
|
65
|
+
* The client configuration data
|
|
66
|
+
*/
|
|
67
|
+
clientConfiguration: pulumi.Input<inputs.cluster.GetHealthClientConfigurationArgs>;
|
|
68
|
+
/**
|
|
69
|
+
* List of control plane nodes to check for health.
|
|
70
|
+
*/
|
|
71
|
+
controlPlaneNodes: pulumi.Input<pulumi.Input<string>[]>;
|
|
72
|
+
/**
|
|
73
|
+
* endpoints to use for the health check client. Use at least one control plane endpoint.
|
|
74
|
+
*/
|
|
75
|
+
endpoints: pulumi.Input<pulumi.Input<string>[]>;
|
|
76
|
+
timeouts?: pulumi.Input<inputs.cluster.GetHealthTimeoutsArgs>;
|
|
77
|
+
/**
|
|
78
|
+
* List of worker nodes to check for health.
|
|
79
|
+
*/
|
|
80
|
+
workerNodes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getHealthOutput = exports.getHealth = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Checks the health of a Talos cluster
|
|
10
|
+
*/
|
|
11
|
+
function getHealth(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("talos:cluster/getHealth:getHealth", {
|
|
14
|
+
"clientConfiguration": args.clientConfiguration,
|
|
15
|
+
"controlPlaneNodes": args.controlPlaneNodes,
|
|
16
|
+
"endpoints": args.endpoints,
|
|
17
|
+
"timeouts": args.timeouts,
|
|
18
|
+
"workerNodes": args.workerNodes,
|
|
19
|
+
}, opts);
|
|
20
|
+
}
|
|
21
|
+
exports.getHealth = getHealth;
|
|
22
|
+
/**
|
|
23
|
+
* Checks the health of a Talos cluster
|
|
24
|
+
*/
|
|
25
|
+
function getHealthOutput(args, opts) {
|
|
26
|
+
return pulumi.output(args).apply((a) => getHealth(a, opts));
|
|
27
|
+
}
|
|
28
|
+
exports.getHealthOutput = getHealthOutput;
|
|
29
|
+
//# sourceMappingURL=getHealth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHealth.js","sourceRoot":"","sources":["../../cluster/getHealth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AAmDD;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the kubeconfig for a Talos cluster
|
|
6
|
+
*/
|
|
7
|
+
export declare function getKubeconfig(args: GetKubeconfigArgs, opts?: pulumi.InvokeOptions): Promise<GetKubeconfigResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of arguments for invoking getKubeconfig.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetKubeconfigArgs {
|
|
12
|
+
/**
|
|
13
|
+
* The client configuration data
|
|
14
|
+
*/
|
|
15
|
+
clientConfiguration: inputs.cluster.GetKubeconfigClientConfiguration;
|
|
16
|
+
/**
|
|
17
|
+
* endpoint to use for the talosclient. If not set, the node value will be used
|
|
18
|
+
*/
|
|
19
|
+
endpoint?: string;
|
|
20
|
+
/**
|
|
21
|
+
* controlplane node to retrieve the kubeconfig from
|
|
22
|
+
*/
|
|
23
|
+
node: string;
|
|
24
|
+
timeouts?: inputs.cluster.GetKubeconfigTimeouts;
|
|
25
|
+
/**
|
|
26
|
+
* Wait for the kubernetes api to be available
|
|
27
|
+
*
|
|
28
|
+
* @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos_cluster_health instead.
|
|
29
|
+
*/
|
|
30
|
+
wait?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A collection of values returned by getKubeconfig.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetKubeconfigResult {
|
|
36
|
+
/**
|
|
37
|
+
* The client configuration data
|
|
38
|
+
*/
|
|
39
|
+
readonly clientConfiguration: outputs.cluster.GetKubeconfigClientConfiguration;
|
|
40
|
+
/**
|
|
41
|
+
* endpoint to use for the talosclient. If not set, the node value will be used
|
|
42
|
+
*/
|
|
43
|
+
readonly endpoint: string;
|
|
44
|
+
/**
|
|
45
|
+
* The ID of this resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly id: string;
|
|
48
|
+
/**
|
|
49
|
+
* The raw kubeconfig
|
|
50
|
+
*/
|
|
51
|
+
readonly kubeconfigRaw: string;
|
|
52
|
+
/**
|
|
53
|
+
* The kubernetes client configuration
|
|
54
|
+
*/
|
|
55
|
+
readonly kubernetesClientConfiguration: outputs.cluster.GetKubeconfigKubernetesClientConfiguration;
|
|
56
|
+
/**
|
|
57
|
+
* controlplane node to retrieve the kubeconfig from
|
|
58
|
+
*/
|
|
59
|
+
readonly node: string;
|
|
60
|
+
readonly timeouts?: outputs.cluster.GetKubeconfigTimeouts;
|
|
61
|
+
/**
|
|
62
|
+
* Wait for the kubernetes api to be available
|
|
63
|
+
*
|
|
64
|
+
* @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos_cluster_health instead.
|
|
65
|
+
*/
|
|
66
|
+
readonly wait?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves the kubeconfig for a Talos cluster
|
|
70
|
+
*/
|
|
71
|
+
export declare function getKubeconfigOutput(args: GetKubeconfigOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetKubeconfigResult>;
|
|
72
|
+
/**
|
|
73
|
+
* A collection of arguments for invoking getKubeconfig.
|
|
74
|
+
*/
|
|
75
|
+
export interface GetKubeconfigOutputArgs {
|
|
76
|
+
/**
|
|
77
|
+
* The client configuration data
|
|
78
|
+
*/
|
|
79
|
+
clientConfiguration: pulumi.Input<inputs.cluster.GetKubeconfigClientConfigurationArgs>;
|
|
80
|
+
/**
|
|
81
|
+
* endpoint to use for the talosclient. If not set, the node value will be used
|
|
82
|
+
*/
|
|
83
|
+
endpoint?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* controlplane node to retrieve the kubeconfig from
|
|
86
|
+
*/
|
|
87
|
+
node: pulumi.Input<string>;
|
|
88
|
+
timeouts?: pulumi.Input<inputs.cluster.GetKubeconfigTimeoutsArgs>;
|
|
89
|
+
/**
|
|
90
|
+
* Wait for the kubernetes api to be available
|
|
91
|
+
*
|
|
92
|
+
* @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos_cluster_health instead.
|
|
93
|
+
*/
|
|
94
|
+
wait?: pulumi.Input<boolean>;
|
|
95
|
+
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.getKubeconfigOutput = exports.getKubeconfig = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Retrieves the kubeconfig for a Talos cluster
|
|
10
10
|
*/
|
|
11
|
-
function
|
|
11
|
+
function getKubeconfig(args, opts) {
|
|
12
12
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
-
return pulumi.runtime.invoke("talos:cluster/
|
|
13
|
+
return pulumi.runtime.invoke("talos:cluster/getKubeconfig:getKubeconfig", {
|
|
14
14
|
"clientConfiguration": args.clientConfiguration,
|
|
15
15
|
"endpoint": args.endpoint,
|
|
16
16
|
"node": args.node,
|
|
@@ -18,12 +18,12 @@ function kubeconfig(args, opts) {
|
|
|
18
18
|
"wait": args.wait,
|
|
19
19
|
}, opts);
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.getKubeconfig = getKubeconfig;
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves the kubeconfig for a Talos cluster
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
26
|
-
return pulumi.output(args).apply((a) =>
|
|
25
|
+
function getKubeconfigOutput(args, opts) {
|
|
26
|
+
return pulumi.output(args).apply((a) => getKubeconfig(a, opts));
|
|
27
27
|
}
|
|
28
|
-
exports.
|
|
29
|
-
//# sourceMappingURL=
|
|
28
|
+
exports.getKubeconfigOutput = getKubeconfigOutput;
|
|
29
|
+
//# sourceMappingURL=getKubeconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKubeconfig.js","sourceRoot":"","sources":["../../cluster/getKubeconfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;AA+DD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/cluster/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export { GetHealthArgs, GetHealthResult, GetHealthOutputArgs } from "./getHealth";
|
|
2
|
+
export declare const getHealth: typeof import("./getHealth").getHealth;
|
|
3
|
+
export declare const getHealthOutput: typeof import("./getHealth").getHealthOutput;
|
|
4
|
+
export { GetKubeconfigArgs, GetKubeconfigResult, GetKubeconfigOutputArgs } from "./getKubeconfig";
|
|
5
|
+
export declare const getKubeconfig: typeof import("./getKubeconfig").getKubeconfig;
|
|
6
|
+
export declare const getKubeconfigOutput: typeof import("./getKubeconfig").getKubeconfigOutput;
|
package/cluster/index.js
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.getKubeconfigOutput = exports.getKubeconfig = exports.getHealthOutput = exports.getHealth = void 0;
|
|
6
6
|
const utilities = require("../utilities");
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
utilities.lazyLoad(exports, ["
|
|
7
|
+
exports.getHealth = null;
|
|
8
|
+
exports.getHealthOutput = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["getHealth", "getHealthOutput"], () => require("./getHealth"));
|
|
10
|
+
exports.getKubeconfig = null;
|
|
11
|
+
exports.getKubeconfigOutput = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["getKubeconfig", "getKubeconfigOutput"], () => require("./getKubeconfig"));
|
|
10
13
|
//# sourceMappingURL=index.js.map
|
package/cluster/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cluster/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,0CAA0C;AAI7B,QAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cluster/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,0CAA0C;AAI7B,QAAA,SAAS,GAA2C,IAAW,CAAC;AAChE,QAAA,eAAe,GAAiD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,EAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAG9E,QAAA,aAAa,GAAmD,IAAW,CAAC;AAC5E,QAAA,mBAAmB,GAAyD,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,EAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@ import * as outputs from "../types/output";
|
|
|
14
14
|
* import * as talos from "@pulumiverse/talos";
|
|
15
15
|
*
|
|
16
16
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
17
|
-
* const thisConfiguration = talos.machine.
|
|
17
|
+
* const thisConfiguration = talos.machine.getConfigurationOutput({
|
|
18
18
|
* clusterName: "example-cluster",
|
|
19
19
|
* machineType: "controlplane",
|
|
20
20
|
* clusterEndpoint: "https://cluster.local:6443",
|
|
@@ -22,11 +22,11 @@ import * as outputs from "../types/output";
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function getConfiguration(args: GetConfigurationArgs, opts?: pulumi.InvokeOptions): Promise<GetConfigurationResult>;
|
|
26
26
|
/**
|
|
27
|
-
* A collection of arguments for invoking
|
|
27
|
+
* A collection of arguments for invoking getConfiguration.
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface GetConfigurationArgs {
|
|
30
30
|
/**
|
|
31
31
|
* The endpoint of the talos kubernetes cluster
|
|
32
32
|
*/
|
|
@@ -54,7 +54,7 @@ export interface ConfigurationArgs {
|
|
|
54
54
|
/**
|
|
55
55
|
* The secrets for the talos cluster
|
|
56
56
|
*/
|
|
57
|
-
machineSecrets: inputs.machine.
|
|
57
|
+
machineSecrets: inputs.machine.MachineSecrets;
|
|
58
58
|
/**
|
|
59
59
|
* The type of machine to generate the configuration for
|
|
60
60
|
*/
|
|
@@ -65,9 +65,9 @@ export interface ConfigurationArgs {
|
|
|
65
65
|
talosVersion?: string;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* A collection of values returned by
|
|
68
|
+
* A collection of values returned by getConfiguration.
|
|
69
69
|
*/
|
|
70
|
-
export interface
|
|
70
|
+
export interface GetConfigurationResult {
|
|
71
71
|
/**
|
|
72
72
|
* The endpoint of the talos kubernetes cluster
|
|
73
73
|
*/
|
|
@@ -103,7 +103,7 @@ export interface ConfigurationResult {
|
|
|
103
103
|
/**
|
|
104
104
|
* The secrets for the talos cluster
|
|
105
105
|
*/
|
|
106
|
-
readonly machineSecrets: outputs.machine.
|
|
106
|
+
readonly machineSecrets: outputs.machine.MachineSecrets;
|
|
107
107
|
/**
|
|
108
108
|
* The type of machine to generate the configuration for
|
|
109
109
|
*/
|
|
@@ -126,7 +126,7 @@ export interface ConfigurationResult {
|
|
|
126
126
|
* import * as talos from "@pulumiverse/talos";
|
|
127
127
|
*
|
|
128
128
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
129
|
-
* const thisConfiguration = talos.machine.
|
|
129
|
+
* const thisConfiguration = talos.machine.getConfigurationOutput({
|
|
130
130
|
* clusterName: "example-cluster",
|
|
131
131
|
* machineType: "controlplane",
|
|
132
132
|
* clusterEndpoint: "https://cluster.local:6443",
|
|
@@ -134,11 +134,11 @@ export interface ConfigurationResult {
|
|
|
134
134
|
* });
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
|
-
export declare function
|
|
137
|
+
export declare function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConfigurationResult>;
|
|
138
138
|
/**
|
|
139
|
-
* A collection of arguments for invoking
|
|
139
|
+
* A collection of arguments for invoking getConfiguration.
|
|
140
140
|
*/
|
|
141
|
-
export interface
|
|
141
|
+
export interface GetConfigurationOutputArgs {
|
|
142
142
|
/**
|
|
143
143
|
* The endpoint of the talos kubernetes cluster
|
|
144
144
|
*/
|
|
@@ -166,7 +166,7 @@ export interface ConfigurationOutputArgs {
|
|
|
166
166
|
/**
|
|
167
167
|
* The secrets for the talos cluster
|
|
168
168
|
*/
|
|
169
|
-
machineSecrets: pulumi.Input<inputs.machine.
|
|
169
|
+
machineSecrets: pulumi.Input<inputs.machine.MachineSecretsArgs>;
|
|
170
170
|
/**
|
|
171
171
|
* The type of machine to generate the configuration for
|
|
172
172
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.getConfigurationOutput = exports.getConfiguration = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
@@ -18,7 +18,7 @@ const utilities = require("../utilities");
|
|
|
18
18
|
* import * as talos from "@pulumiverse/talos";
|
|
19
19
|
*
|
|
20
20
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
21
|
-
* const thisConfiguration = talos.machine.
|
|
21
|
+
* const thisConfiguration = talos.machine.getConfigurationOutput({
|
|
22
22
|
* clusterName: "example-cluster",
|
|
23
23
|
* machineType: "controlplane",
|
|
24
24
|
* clusterEndpoint: "https://cluster.local:6443",
|
|
@@ -26,9 +26,9 @@ const utilities = require("../utilities");
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
function
|
|
29
|
+
function getConfiguration(args, opts) {
|
|
30
30
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
31
|
-
return pulumi.runtime.invoke("talos:machine/
|
|
31
|
+
return pulumi.runtime.invoke("talos:machine/getConfiguration:getConfiguration", {
|
|
32
32
|
"clusterEndpoint": args.clusterEndpoint,
|
|
33
33
|
"clusterName": args.clusterName,
|
|
34
34
|
"configPatches": args.configPatches,
|
|
@@ -40,7 +40,7 @@ function configuration(args, opts) {
|
|
|
40
40
|
"talosVersion": args.talosVersion,
|
|
41
41
|
}, opts);
|
|
42
42
|
}
|
|
43
|
-
exports.
|
|
43
|
+
exports.getConfiguration = getConfiguration;
|
|
44
44
|
/**
|
|
45
45
|
* Generate a machine configuration for a node type
|
|
46
46
|
*
|
|
@@ -54,7 +54,7 @@ exports.configuration = configuration;
|
|
|
54
54
|
* import * as talos from "@pulumiverse/talos";
|
|
55
55
|
*
|
|
56
56
|
* const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
|
|
57
|
-
* const thisConfiguration = talos.machine.
|
|
57
|
+
* const thisConfiguration = talos.machine.getConfigurationOutput({
|
|
58
58
|
* clusterName: "example-cluster",
|
|
59
59
|
* machineType: "controlplane",
|
|
60
60
|
* clusterEndpoint: "https://cluster.local:6443",
|
|
@@ -62,8 +62,8 @@ exports.configuration = configuration;
|
|
|
62
62
|
* });
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
function
|
|
66
|
-
return pulumi.output(args).apply((a) =>
|
|
65
|
+
function getConfigurationOutput(args, opts) {
|
|
66
|
+
return pulumi.output(args).apply((a) => getConfiguration(a, opts));
|
|
67
67
|
}
|
|
68
|
-
exports.
|
|
69
|
-
//# sourceMappingURL=
|
|
68
|
+
exports.getConfigurationOutput = getConfigurationOutput;
|
|
69
|
+
//# sourceMappingURL=getConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../machine/getConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;QAC3C,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,4CAcC;AA6FD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
|