@pulumiverse/talos 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -27,6 +27,30 @@ To use from Python, install using `pip`:
27
27
  ```bash
28
28
  pip install pulumiverse_talos
29
29
  ```
30
+ If you see an error as such.
31
+ ```
32
+ import pulumiverse_talos
33
+ Traceback (most recent call last):
34
+ File "<stdin>", line 1, in <module>
35
+ File "/venv/lib/python3.12/site-packages/pulumiverse_talos/__init__.py", line 5, in <module>
36
+ from . import _utilities
37
+ File "/venv/lib/python3.12/site-packages/pulumiverse_talos/_utilities.py", line 11, in <module>
38
+ import pkg_resources
39
+ ModuleNotFoundError: No module named 'pkg_resources'
40
+ ```
41
+ Try installing
42
+ ```
43
+ pip install setuptools
44
+ ```
45
+ If you're using a Python Virtual Env
46
+ ```
47
+ python3 -m venv venv
48
+ source venv/bin/activate
49
+ pip install setuptools
50
+ pip install pulumiverse_talos
51
+ # Test if the import works
52
+ python -c "import pulumiverse_talos"
53
+ ```
30
54
 
31
55
  ### Go
32
56
 
@@ -11,8 +11,8 @@ import * as outputs from "../types/output";
11
11
  * import * as talos from "@pulumi/talos";
12
12
  * import * as talos from "@pulumiverse/talos";
13
13
  *
14
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
15
- * const thisConfiguration = talos.client.getConfigurationOutput({
14
+ * const thisSecrets = new talos.machine.Secrets("this", {});
15
+ * const this = talos.client.getConfigurationOutput({
16
16
  * clusterName: "example-cluster",
17
17
  * clientConfiguration: thisSecrets.clientConfiguration,
18
18
  * nodes: ["10.5.0.2"],
@@ -80,8 +80,8 @@ export interface GetConfigurationResult {
80
80
  * import * as talos from "@pulumi/talos";
81
81
  * import * as talos from "@pulumiverse/talos";
82
82
  *
83
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
84
- * const thisConfiguration = talos.client.getConfigurationOutput({
83
+ * const thisSecrets = new talos.machine.Secrets("this", {});
84
+ * const this = talos.client.getConfigurationOutput({
85
85
  * clusterName: "example-cluster",
86
86
  * clientConfiguration: thisSecrets.clientConfiguration,
87
87
  * nodes: ["10.5.0.2"],
@@ -15,8 +15,8 @@ const utilities = require("../utilities");
15
15
  * import * as talos from "@pulumi/talos";
16
16
  * import * as talos from "@pulumiverse/talos";
17
17
  *
18
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
19
- * const thisConfiguration = talos.client.getConfigurationOutput({
18
+ * const thisSecrets = new talos.machine.Secrets("this", {});
19
+ * const this = talos.client.getConfigurationOutput({
20
20
  * clusterName: "example-cluster",
21
21
  * clientConfiguration: thisSecrets.clientConfiguration,
22
22
  * nodes: ["10.5.0.2"],
@@ -43,8 +43,8 @@ exports.getConfiguration = getConfiguration;
43
43
  * import * as talos from "@pulumi/talos";
44
44
  * import * as talos from "@pulumiverse/talos";
45
45
  *
46
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
47
- * const thisConfiguration = talos.client.getConfigurationOutput({
46
+ * const thisSecrets = new talos.machine.Secrets("this", {});
47
+ * const this = talos.client.getConfigurationOutput({
48
48
  * clusterName: "example-cluster",
49
49
  * clientConfiguration: thisSecrets.clientConfiguration,
50
50
  * nodes: ["10.5.0.2"],
@@ -52,7 +52,13 @@ exports.getConfiguration = getConfiguration;
52
52
  * ```
53
53
  */
54
54
  function getConfigurationOutput(args, opts) {
55
- return pulumi.output(args).apply((a) => getConfiguration(a, opts));
55
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
56
+ return pulumi.runtime.invokeOutput("talos:client/getConfiguration:getConfiguration", {
57
+ "clientConfiguration": args.clientConfiguration,
58
+ "clusterName": args.clusterName,
59
+ "endpoints": args.endpoints,
60
+ "nodes": args.nodes,
61
+ }, opts);
56
62
  }
57
63
  exports.getConfigurationOutput = getConfigurationOutput;
58
64
  //# sourceMappingURL=getConfiguration.js.map
@@ -1 +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"}
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;IACpF,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;AARD,4CAQC;AAqDD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,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;AARD,wDAQC"}
@@ -23,7 +23,14 @@ exports.getHealth = getHealth;
23
23
  * Checks the health of a Talos cluster
24
24
  */
25
25
  function getHealthOutput(args, opts) {
26
- return pulumi.output(args).apply((a) => getHealth(a, opts));
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
+ return pulumi.runtime.invokeOutput("talos:cluster/getHealth:getHealth", {
28
+ "clientConfiguration": args.clientConfiguration,
29
+ "controlPlaneNodes": args.controlPlaneNodes,
30
+ "endpoints": args.endpoints,
31
+ "timeouts": args.timeouts,
32
+ "workerNodes": args.workerNodes,
33
+ }, opts);
27
34
  }
28
35
  exports.getHealthOutput = getHealthOutput;
29
36
  //# sourceMappingURL=getHealth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHealth.js","sourceRoot":"","sources":["../../cluster/getHealth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;A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IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,8BASC;AAmDD;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,mCAAmC,EAAE;QACpE,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;AATD,0CASC"}
@@ -25,7 +25,7 @@ export interface GetKubeconfigArgs {
25
25
  /**
26
26
  * Wait for the kubernetes api to be available
27
27
  *
28
- * @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos_cluster_health instead.
28
+ * @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos.cluster.getHealth instead.
29
29
  */
30
30
  wait?: boolean;
31
31
  }
@@ -61,7 +61,7 @@ export interface GetKubeconfigResult {
61
61
  /**
62
62
  * Wait for the kubernetes api to be available
63
63
  *
64
- * @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos_cluster_health instead.
64
+ * @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos.cluster.getHealth instead.
65
65
  */
66
66
  readonly wait?: boolean;
67
67
  }
@@ -89,7 +89,7 @@ export interface GetKubeconfigOutputArgs {
89
89
  /**
90
90
  * Wait for the kubernetes api to be available
91
91
  *
92
- * @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos_cluster_health instead.
92
+ * @deprecated This attribute is deprecated and no-op. Will be removed in a future version. Use talos.cluster.getHealth instead.
93
93
  */
94
94
  wait?: pulumi.Input<boolean>;
95
95
  }
@@ -23,7 +23,14 @@ exports.getKubeconfig = getKubeconfig;
23
23
  * Retrieves the kubeconfig for a Talos cluster
24
24
  */
25
25
  function getKubeconfigOutput(args, opts) {
26
- return pulumi.output(args).apply((a) => getKubeconfig(a, opts));
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
+ return pulumi.runtime.invokeOutput("talos:cluster/getKubeconfig:getKubeconfig", {
28
+ "clientConfiguration": args.clientConfiguration,
29
+ "endpoint": args.endpoint,
30
+ "node": args.node,
31
+ "timeouts": args.timeouts,
32
+ "wait": args.wait,
33
+ }, opts);
27
34
  }
28
35
  exports.getKubeconfigOutput = getKubeconfigOutput;
29
36
  //# sourceMappingURL=getKubeconfig.js.map
@@ -1 +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"}
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;IAC9E,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;AATD,sCASC;AA+DD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2CAA2C,EAAE;QAC5E,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;AATD,kDASC"}
@@ -6,10 +6,12 @@ import * as outputs from "../types/output";
6
6
  *
7
7
  * ## Import
8
8
  *
9
- * terraform machine bootstrap can be imported to let terraform know that the machine is already bootstrapped
9
+ * terraform
10
+ *
11
+ * machine bootstrap can be imported to let terraform know that the machine is already bootstrapped
10
12
  *
11
13
  * ```sh
12
- * $ pulumi import talos:machine/bootstrap:Bootstrap this <any id>
14
+ * $ pulumi import talos:machine/bootstrap:Bootstrap this <any id>
13
15
  * ```
14
16
  */
15
17
  export declare class Bootstrap extends pulumi.CustomResource {
@@ -31,7 +33,7 @@ export declare class Bootstrap extends pulumi.CustomResource {
31
33
  /**
32
34
  * The client configuration data
33
35
  */
34
- readonly clientConfiguration: pulumi.Output<outputs.machine.BootstrapClientConfiguration>;
36
+ readonly clientConfiguration: pulumi.Output<outputs.machine.ClientConfiguration>;
35
37
  /**
36
38
  * The endpoint of the machine to bootstrap
37
39
  */
@@ -57,7 +59,7 @@ export interface BootstrapState {
57
59
  /**
58
60
  * The client configuration data
59
61
  */
60
- clientConfiguration?: pulumi.Input<inputs.machine.BootstrapClientConfiguration>;
62
+ clientConfiguration?: pulumi.Input<inputs.machine.ClientConfiguration>;
61
63
  /**
62
64
  * The endpoint of the machine to bootstrap
63
65
  */
@@ -75,7 +77,7 @@ export interface BootstrapArgs {
75
77
  /**
76
78
  * The client configuration data
77
79
  */
78
- clientConfiguration: pulumi.Input<inputs.machine.BootstrapClientConfiguration>;
80
+ clientConfiguration: pulumi.Input<inputs.machine.ClientConfiguration>;
79
81
  /**
80
82
  * The endpoint of the machine to bootstrap
81
83
  */
@@ -10,10 +10,12 @@ const utilities = require("../utilities");
10
10
  *
11
11
  * ## Import
12
12
  *
13
- * terraform machine bootstrap can be imported to let terraform know that the machine is already bootstrapped
13
+ * terraform
14
+ *
15
+ * machine bootstrap can be imported to let terraform know that the machine is already bootstrapped
14
16
  *
15
17
  * ```sh
16
- * $ pulumi import talos:machine/bootstrap:Bootstrap this <any id>
18
+ * $ pulumi import talos:machine/bootstrap:Bootstrap this <any id>
17
19
  * ```
18
20
  */
19
21
  class Bootstrap extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../machine/bootstrap.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;GAUG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAwBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC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G,WAAwC,CAAC;YACtD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,mBAAmB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;aACtE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA1EL,8BA2EC;AA7DG,gBAAgB;AACO,sBAAY,GAAG,mCAAmC,CAAC"}
@@ -27,7 +27,7 @@ export declare class ConfigurationApply extends pulumi.CustomResource {
27
27
  /**
28
28
  * The client configuration data
29
29
  */
30
- readonly clientConfiguration: pulumi.Output<outputs.machine.ConfigurationApplyClientConfiguration>;
30
+ readonly clientConfiguration: pulumi.Output<outputs.machine.ClientConfiguration>;
31
31
  /**
32
32
  * The list of config patches to apply
33
33
  */
@@ -69,7 +69,7 @@ export interface ConfigurationApplyState {
69
69
  /**
70
70
  * The client configuration data
71
71
  */
72
- clientConfiguration?: pulumi.Input<inputs.machine.ConfigurationApplyClientConfiguration>;
72
+ clientConfiguration?: pulumi.Input<inputs.machine.ClientConfiguration>;
73
73
  /**
74
74
  * The list of config patches to apply
75
75
  */
@@ -103,7 +103,7 @@ export interface ConfigurationApplyArgs {
103
103
  /**
104
104
  * The client configuration data
105
105
  */
106
- clientConfiguration: pulumi.Input<inputs.machine.ConfigurationApplyClientConfiguration>;
106
+ clientConfiguration: pulumi.Input<inputs.machine.ClientConfiguration>;
107
107
  /**
108
108
  * The list of config patches to apply
109
109
  */
@@ -13,8 +13,8 @@ import * as outputs from "../types/output";
13
13
  * import * as talos from "@pulumi/talos";
14
14
  * import * as talos from "@pulumiverse/talos";
15
15
  *
16
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
17
- * const thisConfiguration = talos.machine.getConfigurationOutput({
16
+ * const thisSecrets = new talos.machine.Secrets("this", {});
17
+ * const this = talos.machine.getConfigurationOutput({
18
18
  * clusterName: "example-cluster",
19
19
  * machineType: "controlplane",
20
20
  * clusterEndpoint: "https://cluster.local:6443",
@@ -125,8 +125,8 @@ export interface GetConfigurationResult {
125
125
  * import * as talos from "@pulumi/talos";
126
126
  * import * as talos from "@pulumiverse/talos";
127
127
  *
128
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
129
- * const thisConfiguration = talos.machine.getConfigurationOutput({
128
+ * const thisSecrets = new talos.machine.Secrets("this", {});
129
+ * const this = talos.machine.getConfigurationOutput({
130
130
  * clusterName: "example-cluster",
131
131
  * machineType: "controlplane",
132
132
  * clusterEndpoint: "https://cluster.local:6443",
@@ -17,8 +17,8 @@ const utilities = require("../utilities");
17
17
  * import * as talos from "@pulumi/talos";
18
18
  * import * as talos from "@pulumiverse/talos";
19
19
  *
20
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
21
- * const thisConfiguration = talos.machine.getConfigurationOutput({
20
+ * const thisSecrets = new talos.machine.Secrets("this", {});
21
+ * const this = talos.machine.getConfigurationOutput({
22
22
  * clusterName: "example-cluster",
23
23
  * machineType: "controlplane",
24
24
  * clusterEndpoint: "https://cluster.local:6443",
@@ -53,8 +53,8 @@ exports.getConfiguration = getConfiguration;
53
53
  * import * as talos from "@pulumi/talos";
54
54
  * import * as talos from "@pulumiverse/talos";
55
55
  *
56
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
57
- * const thisConfiguration = talos.machine.getConfigurationOutput({
56
+ * const thisSecrets = new talos.machine.Secrets("this", {});
57
+ * const this = talos.machine.getConfigurationOutput({
58
58
  * clusterName: "example-cluster",
59
59
  * machineType: "controlplane",
60
60
  * clusterEndpoint: "https://cluster.local:6443",
@@ -63,7 +63,18 @@ exports.getConfiguration = getConfiguration;
63
63
  * ```
64
64
  */
65
65
  function getConfigurationOutput(args, opts) {
66
- return pulumi.output(args).apply((a) => getConfiguration(a, opts));
66
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
67
+ return pulumi.runtime.invokeOutput("talos:machine/getConfiguration:getConfiguration", {
68
+ "clusterEndpoint": args.clusterEndpoint,
69
+ "clusterName": args.clusterName,
70
+ "configPatches": args.configPatches,
71
+ "docs": args.docs,
72
+ "examples": args.examples,
73
+ "kubernetesVersion": args.kubernetesVersion,
74
+ "machineSecrets": args.machineSecrets,
75
+ "machineType": args.machineType,
76
+ "talosVersion": args.talosVersion,
77
+ }, opts);
67
78
  }
68
79
  exports.getConfigurationOutput = getConfigurationOutput;
69
80
  //# sourceMappingURL=getConfiguration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../machine/getConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;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,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;AAbD,4CAaC;AA6FD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iDAAiD,EAAE;QAClF,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;AAbD,wDAaC"}
@@ -13,8 +13,8 @@ import * as outputs from "../types/output";
13
13
  * import * as talos from "@pulumi/talos";
14
14
  * import * as talos from "@pulumiverse/talos";
15
15
  *
16
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
17
- * const thisDisks = talos.machine.getDisksOutput({
16
+ * const thisSecrets = new talos.machine.Secrets("this", {});
17
+ * const this = talos.machine.getDisksOutput({
18
18
  * clientConfiguration: thisSecrets.clientConfiguration,
19
19
  * node: "10.5.0.2",
20
20
  * filters: {
@@ -22,7 +22,7 @@ import * as outputs from "../types/output";
22
22
  * type: "nvme",
23
23
  * },
24
24
  * });
25
- * export const nvmeDisks = thisDisks.apply(thisDisks => thisDisks.disks.map(__item => __item.name));
25
+ * export const nvmeDisks = _this.apply(_this => _this.disks.map(__item => __item.name));
26
26
  * ```
27
27
  */
28
28
  export declare function getDisks(args: GetDisksArgs, opts?: pulumi.InvokeOptions): Promise<GetDisksResult>;
@@ -90,8 +90,8 @@ export interface GetDisksResult {
90
90
  * import * as talos from "@pulumi/talos";
91
91
  * import * as talos from "@pulumiverse/talos";
92
92
  *
93
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
94
- * const thisDisks = talos.machine.getDisksOutput({
93
+ * const thisSecrets = new talos.machine.Secrets("this", {});
94
+ * const this = talos.machine.getDisksOutput({
95
95
  * clientConfiguration: thisSecrets.clientConfiguration,
96
96
  * node: "10.5.0.2",
97
97
  * filters: {
@@ -99,7 +99,7 @@ export interface GetDisksResult {
99
99
  * type: "nvme",
100
100
  * },
101
101
  * });
102
- * export const nvmeDisks = thisDisks.apply(thisDisks => thisDisks.disks.map(__item => __item.name));
102
+ * export const nvmeDisks = _this.apply(_this => _this.disks.map(__item => __item.name));
103
103
  * ```
104
104
  */
105
105
  export declare function getDisksOutput(args: GetDisksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDisksResult>;
@@ -17,8 +17,8 @@ const utilities = require("../utilities");
17
17
  * import * as talos from "@pulumi/talos";
18
18
  * import * as talos from "@pulumiverse/talos";
19
19
  *
20
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
21
- * const thisDisks = talos.machine.getDisksOutput({
20
+ * const thisSecrets = new talos.machine.Secrets("this", {});
21
+ * const this = talos.machine.getDisksOutput({
22
22
  * clientConfiguration: thisSecrets.clientConfiguration,
23
23
  * node: "10.5.0.2",
24
24
  * filters: {
@@ -26,7 +26,7 @@ const utilities = require("../utilities");
26
26
  * type: "nvme",
27
27
  * },
28
28
  * });
29
- * export const nvmeDisks = thisDisks.apply(thisDisks => thisDisks.disks.map(__item => __item.name));
29
+ * export const nvmeDisks = _this.apply(_this => _this.disks.map(__item => __item.name));
30
30
  * ```
31
31
  */
32
32
  function getDisks(args, opts) {
@@ -52,8 +52,8 @@ exports.getDisks = getDisks;
52
52
  * import * as talos from "@pulumi/talos";
53
53
  * import * as talos from "@pulumiverse/talos";
54
54
  *
55
- * const thisSecrets = new talos.machine.Secrets("thisSecrets", {});
56
- * const thisDisks = talos.machine.getDisksOutput({
55
+ * const thisSecrets = new talos.machine.Secrets("this", {});
56
+ * const this = talos.machine.getDisksOutput({
57
57
  * clientConfiguration: thisSecrets.clientConfiguration,
58
58
  * node: "10.5.0.2",
59
59
  * filters: {
@@ -61,11 +61,18 @@ exports.getDisks = getDisks;
61
61
  * type: "nvme",
62
62
  * },
63
63
  * });
64
- * export const nvmeDisks = thisDisks.apply(thisDisks => thisDisks.disks.map(__item => __item.name));
64
+ * export const nvmeDisks = _this.apply(_this => _this.disks.map(__item => __item.name));
65
65
  * ```
66
66
  */
67
67
  function getDisksOutput(args, opts) {
68
- return pulumi.output(args).apply((a) => getDisks(a, opts));
68
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
69
+ return pulumi.runtime.invokeOutput("talos:machine/getDisks:getDisks", {
70
+ "clientConfiguration": args.clientConfiguration,
71
+ "endpoint": args.endpoint,
72
+ "filters": args.filters,
73
+ "node": args.node,
74
+ "timeouts": args.timeouts,
75
+ }, opts);
69
76
  }
70
77
  exports.getDisksOutput = getDisksOutput;
71
78
  //# sourceMappingURL=getDisks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDisks.js","sourceRoot":"","sources":["../../machine/getDisks.ts"],"names":[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,EAAE,IAAI,CAAC,mBAAmB;QAC/C,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4BASC;AAuDD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iCAAiC,EAAE;QAClE,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,wCASC"}
@@ -10,15 +10,17 @@ import * as outputs from "../types/output";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as talos from "@pulumiverse/talos";
12
12
  *
13
- * const machineSecrets = new talos.machine.Secrets("machineSecrets", {});
13
+ * const machineSecrets = new talos.machine.Secrets("machine_secrets", {});
14
14
  * ```
15
15
  *
16
16
  * ## Import
17
17
  *
18
- * terraform machine secrets can be imported from an existing secrets file
18
+ * terraform
19
+ *
20
+ * machine secrets can be imported from an existing secrets file
19
21
  *
20
22
  * ```sh
21
- * $ pulumi import talos:machine/secrets:Secrets this <path-to-secrets.yaml>
23
+ * $ pulumi import talos:machine/secrets:Secrets this <path-to-secrets.yaml>
22
24
  * ```
23
25
  */
24
26
  export declare class Secrets extends pulumi.CustomResource {
@@ -40,7 +42,7 @@ export declare class Secrets extends pulumi.CustomResource {
40
42
  /**
41
43
  * The generated client configuration data
42
44
  */
43
- readonly clientConfiguration: pulumi.Output<outputs.machine.SecretsClientConfiguration>;
45
+ readonly clientConfiguration: pulumi.Output<outputs.machine.ClientConfiguration>;
44
46
  /**
45
47
  * The secrets for the talos cluster
46
48
  */
@@ -65,7 +67,7 @@ export interface SecretsState {
65
67
  /**
66
68
  * The generated client configuration data
67
69
  */
68
- clientConfiguration?: pulumi.Input<inputs.machine.SecretsClientConfiguration>;
70
+ clientConfiguration?: pulumi.Input<inputs.machine.ClientConfiguration>;
69
71
  /**
70
72
  * The secrets for the talos cluster
71
73
  */
@@ -14,15 +14,17 @@ const utilities = require("../utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as talos from "@pulumiverse/talos";
16
16
  *
17
- * const machineSecrets = new talos.machine.Secrets("machineSecrets", {});
17
+ * const machineSecrets = new talos.machine.Secrets("machine_secrets", {});
18
18
  * ```
19
19
  *
20
20
  * ## Import
21
21
  *
22
- * terraform machine secrets can be imported from an existing secrets file
22
+ * terraform
23
+ *
24
+ * machine secrets can be imported from an existing secrets file
23
25
  *
24
26
  * ```sh
25
- * $ pulumi import talos:machine/secrets:Secrets this <path-to-secrets.yaml>
27
+ * $ pulumi import talos:machine/secrets:Secrets this <path-to-secrets.yaml>
26
28
  * ```
27
29
  */
28
30
  class Secrets extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../machine/secrets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,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K,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;aAAM;YACH,MAAM,IAAI,GAAG,WAAsC,CAAC;YACpD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1D,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAjEL,0BAkEC;AApDG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/talos",
3
- "version": "v0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A Pulumi package for creating and managing Talos Linux machines and clusters.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,6 +24,7 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "talos",
27
+ "version": "0.2.1",
27
28
  "server": "github://api.github.com/pulumiverse"
28
29
  }
29
30
  }
package/types/input.d.ts CHANGED
@@ -113,20 +113,6 @@ export declare namespace cluster {
113
113
  }
114
114
  }
115
115
  export declare namespace machine {
116
- interface BootstrapClientConfiguration {
117
- /**
118
- * The client CA certificate
119
- */
120
- caCertificate: pulumi.Input<string>;
121
- /**
122
- * The client certificate
123
- */
124
- clientCertificate: pulumi.Input<string>;
125
- /**
126
- * The client key
127
- */
128
- clientKey: pulumi.Input<string>;
129
- }
130
116
  interface BootstrapTimeouts {
131
117
  /**
132
118
  * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
@@ -165,8 +151,8 @@ export declare namespace machine {
165
151
  interface Certificates {
166
152
  etcd: inputs.machine.Certificate;
167
153
  k8s: inputs.machine.Certificate;
168
- k8s_aggregator: inputs.machine.Certificate;
169
- k8s_serviceaccount: inputs.machine.Key;
154
+ k8sAggregator: inputs.machine.Certificate;
155
+ k8sServiceaccount: inputs.machine.Key;
170
156
  os: inputs.machine.Certificate;
171
157
  }
172
158
  /**
@@ -175,10 +161,27 @@ export declare namespace machine {
175
161
  interface CertificatesArgs {
176
162
  etcd: pulumi.Input<inputs.machine.CertificateArgs>;
177
163
  k8s: pulumi.Input<inputs.machine.CertificateArgs>;
178
- k8s_aggregator: pulumi.Input<inputs.machine.CertificateArgs>;
179
- k8s_serviceaccount: pulumi.Input<inputs.machine.KeyArgs>;
164
+ k8sAggregator: pulumi.Input<inputs.machine.CertificateArgs>;
165
+ k8sServiceaccount: pulumi.Input<inputs.machine.KeyArgs>;
180
166
  os: pulumi.Input<inputs.machine.CertificateArgs>;
181
167
  }
168
+ /**
169
+ * A Client Configuration
170
+ */
171
+ interface ClientConfiguration {
172
+ /**
173
+ * The client CA certificate
174
+ */
175
+ caCertificate: pulumi.Input<string>;
176
+ /**
177
+ * The client certificate
178
+ */
179
+ clientCertificate: pulumi.Input<string>;
180
+ /**
181
+ * The client private key
182
+ */
183
+ clientKey: pulumi.Input<string>;
184
+ }
182
185
  /**
183
186
  * A Machine Secrets Cluster Info
184
187
  */
@@ -205,20 +208,6 @@ export declare namespace machine {
205
208
  */
206
209
  secret: pulumi.Input<string>;
207
210
  }
208
- interface ConfigurationApplyClientConfiguration {
209
- /**
210
- * The client CA certificate
211
- */
212
- caCertificate: pulumi.Input<string>;
213
- /**
214
- * The client certificate
215
- */
216
- clientCertificate: pulumi.Input<string>;
217
- /**
218
- * The client key
219
- */
220
- clientKey: pulumi.Input<string>;
221
- }
222
211
  interface GetDisksClientConfiguration {
223
212
  /**
224
213
  * The client CA certificate
@@ -353,63 +342,57 @@ export declare namespace machine {
353
342
  */
354
343
  key: pulumi.Input<string>;
355
344
  }
356
- /**
357
- * A complete Machine Secrets configuration
358
- */
359
- interface MachineSecrets {
360
- certs: inputs.machine.Certificates;
361
- cluster: inputs.machine.Cluster;
362
- secrets: inputs.machine.Secrets;
363
- trustdinfo: inputs.machine.TrustdInfo;
364
- }
365
- /**
366
- * A complete Machine Secrets configuration
367
- */
368
- interface MachineSecretsArgs {
369
- certs: pulumi.Input<inputs.machine.CertificatesArgs>;
370
- cluster: pulumi.Input<inputs.machine.ClusterArgs>;
371
- secrets: pulumi.Input<inputs.machine.SecretsArgs>;
372
- trustdinfo: pulumi.Input<inputs.machine.TrustdInfoArgs>;
373
- }
374
345
  /**
375
346
  * A Machine Secrets Bootstrap data
376
347
  */
377
- interface Secrets {
348
+ interface KubernetesSecrets {
349
+ /**
350
+ * The aescbc encryption secret for the talos kubernetes cluster
351
+ */
352
+ aescbcEncryptionSecret?: string;
378
353
  /**
379
354
  * The bootstrap token for the talos kubernetes cluster
380
355
  */
381
- bootstrap_token: string;
356
+ bootstrapToken: string;
382
357
  /**
383
358
  * The secretbox encryption secret for the talos kubernetes cluster
384
359
  */
385
- secretbox_encryption_secret: string;
360
+ secretboxEncryptionSecret: string;
386
361
  }
387
362
  /**
388
363
  * A Machine Secrets Bootstrap data
389
364
  */
390
- interface SecretsArgs {
365
+ interface KubernetesSecretsArgs {
366
+ /**
367
+ * The aescbc encryption secret for the talos kubernetes cluster
368
+ */
369
+ aescbcEncryptionSecret?: pulumi.Input<string>;
391
370
  /**
392
371
  * The bootstrap token for the talos kubernetes cluster
393
372
  */
394
- bootstrap_token: pulumi.Input<string>;
373
+ bootstrapToken: pulumi.Input<string>;
395
374
  /**
396
375
  * The secretbox encryption secret for the talos kubernetes cluster
397
376
  */
398
- secretbox_encryption_secret: pulumi.Input<string>;
377
+ secretboxEncryptionSecret: pulumi.Input<string>;
399
378
  }
400
- interface SecretsClientConfiguration {
401
- /**
402
- * The client CA certificate
403
- */
404
- caCertificate?: pulumi.Input<string>;
405
- /**
406
- * The client certificate
407
- */
408
- clientCertificate?: pulumi.Input<string>;
409
- /**
410
- * The client key
411
- */
412
- clientKey?: pulumi.Input<string>;
379
+ /**
380
+ * A complete Machine Secrets configuration
381
+ */
382
+ interface MachineSecrets {
383
+ certs: inputs.machine.Certificates;
384
+ cluster: inputs.machine.Cluster;
385
+ secrets: inputs.machine.KubernetesSecrets;
386
+ trustdinfo: inputs.machine.TrustdInfo;
387
+ }
388
+ /**
389
+ * A complete Machine Secrets configuration
390
+ */
391
+ interface MachineSecretsArgs {
392
+ certs: pulumi.Input<inputs.machine.CertificatesArgs>;
393
+ cluster: pulumi.Input<inputs.machine.ClusterArgs>;
394
+ secrets: pulumi.Input<inputs.machine.KubernetesSecretsArgs>;
395
+ trustdinfo: pulumi.Input<inputs.machine.TrustdInfoArgs>;
413
396
  }
414
397
  interface Timeout {
415
398
  /**
package/types/output.d.ts CHANGED
@@ -76,20 +76,6 @@ export declare namespace cluster {
76
76
  }
77
77
  }
78
78
  export declare namespace machine {
79
- interface BootstrapClientConfiguration {
80
- /**
81
- * The client CA certificate
82
- */
83
- caCertificate: string;
84
- /**
85
- * The client certificate
86
- */
87
- clientCertificate: string;
88
- /**
89
- * The client key
90
- */
91
- clientKey: string;
92
- }
93
79
  interface BootstrapTimeouts {
94
80
  /**
95
81
  * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
@@ -115,24 +101,14 @@ export declare namespace machine {
115
101
  interface Certificates {
116
102
  etcd: outputs.machine.Certificate;
117
103
  k8s: outputs.machine.Certificate;
118
- k8s_aggregator: outputs.machine.Certificate;
119
- k8s_serviceaccount: outputs.machine.Key;
104
+ k8sAggregator: outputs.machine.Certificate;
105
+ k8sServiceaccount: outputs.machine.Key;
120
106
  os: outputs.machine.Certificate;
121
107
  }
122
108
  /**
123
- * A Machine Secrets Cluster Info
109
+ * A Client Configuration
124
110
  */
125
- interface Cluster {
126
- /**
127
- * Certificate
128
- */
129
- id: string;
130
- /**
131
- * Private Key
132
- */
133
- secret: string;
134
- }
135
- interface ConfigurationApplyClientConfiguration {
111
+ interface ClientConfiguration {
136
112
  /**
137
113
  * The client CA certificate
138
114
  */
@@ -142,10 +118,23 @@ export declare namespace machine {
142
118
  */
143
119
  clientCertificate: string;
144
120
  /**
145
- * The client key
121
+ * The client private key
146
122
  */
147
123
  clientKey: string;
148
124
  }
125
+ /**
126
+ * A Machine Secrets Cluster Info
127
+ */
128
+ interface Cluster {
129
+ /**
130
+ * Certificate
131
+ */
132
+ id: string;
133
+ /**
134
+ * Private Key
135
+ */
136
+ secret: string;
137
+ }
149
138
  interface GetDisksClientConfiguration {
150
139
  /**
151
140
  * The client CA certificate
@@ -251,41 +240,31 @@ export declare namespace machine {
251
240
  */
252
241
  key: string;
253
242
  }
254
- /**
255
- * A complete Machine Secrets configuration
256
- */
257
- interface MachineSecrets {
258
- certs: outputs.machine.Certificates;
259
- cluster: outputs.machine.Cluster;
260
- secrets: outputs.machine.Secrets;
261
- trustdinfo: outputs.machine.TrustdInfo;
262
- }
263
243
  /**
264
244
  * A Machine Secrets Bootstrap data
265
245
  */
266
- interface Secrets {
246
+ interface KubernetesSecrets {
247
+ /**
248
+ * The aescbc encryption secret for the talos kubernetes cluster
249
+ */
250
+ aescbcEncryptionSecret?: string;
267
251
  /**
268
252
  * The bootstrap token for the talos kubernetes cluster
269
253
  */
270
- bootstrap_token: string;
254
+ bootstrapToken: string;
271
255
  /**
272
256
  * The secretbox encryption secret for the talos kubernetes cluster
273
257
  */
274
- secretbox_encryption_secret: string;
258
+ secretboxEncryptionSecret: string;
275
259
  }
276
- interface SecretsClientConfiguration {
277
- /**
278
- * The client CA certificate
279
- */
280
- caCertificate: string;
281
- /**
282
- * The client certificate
283
- */
284
- clientCertificate: string;
285
- /**
286
- * The client key
287
- */
288
- clientKey: string;
260
+ /**
261
+ * A complete Machine Secrets configuration
262
+ */
263
+ interface MachineSecrets {
264
+ certs: outputs.machine.Certificates;
265
+ cluster: outputs.machine.Cluster;
266
+ secrets: outputs.machine.KubernetesSecrets;
267
+ trustdinfo: outputs.machine.TrustdInfo;
289
268
  }
290
269
  interface Timeout {
291
270
  /**
package/package.json.bak DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "name": "@pulumiverse/talos",
3
- "version": "${VERSION}",
4
- "description": "A Pulumi package for creating and managing Talos Linux machines and clusters.",
5
- "keywords": [
6
- "pulumi",
7
- "talos",
8
- "category/infrastructure"
9
- ],
10
- "homepage": "https://talos.dev",
11
- "repository": "https://github.com/pulumiverse/pulumi-talos",
12
- "license": "MPL-2.0",
13
- "scripts": {
14
- "build": "tsc"
15
- },
16
- "dependencies": {
17
- "@pulumi/pulumi": "^3.0.0"
18
- },
19
- "devDependencies": {
20
- "@types/mime": "^2.0.0",
21
- "@types/node": "^10.0.0",
22
- "typescript": "^4.3.5"
23
- },
24
- "pulumi": {
25
- "resource": true,
26
- "name": "talos",
27
- "server": "github://api.github.com/pulumiverse"
28
- }
29
- }