@pulumi/rancher2 10.4.0-alpha.1766506762 → 11.0.0-alpha.1766596160

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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/authConfigGenericOidc.d.ts +313 -0
  3. package/authConfigGenericOidc.js +134 -0
  4. package/authConfigGenericOidc.js.map +1 -0
  5. package/authConfigGithubapp.d.ts +133 -0
  6. package/authConfigGithubapp.js +89 -0
  7. package/authConfigGithubapp.js.map +1 -0
  8. package/cluster.d.ts +36 -340
  9. package/cluster.js +36 -340
  10. package/cluster.js.map +1 -1
  11. package/clusterProxyConfigV2.d.ts +96 -0
  12. package/clusterProxyConfigV2.js +61 -0
  13. package/clusterProxyConfigV2.js.map +1 -0
  14. package/clusterSync.d.ts +4 -4
  15. package/clusterSync.js +4 -4
  16. package/getClusterProxyConfigV2.d.ts +14 -0
  17. package/getClusterProxyConfigV2.js +18 -0
  18. package/getClusterProxyConfigV2.js.map +1 -0
  19. package/index.d.ts +12 -18
  20. package/index.js +20 -26
  21. package/index.js.map +1 -1
  22. package/nodePool.d.ts +4 -4
  23. package/nodePool.js +4 -4
  24. package/package.json +2 -2
  25. package/types/input.d.ts +762 -2581
  26. package/types/output.d.ts +2358 -5036
  27. package/clusterTemplate.d.ts +0 -215
  28. package/clusterTemplate.js +0 -146
  29. package/clusterTemplate.js.map +0 -1
  30. package/etcdBackup.d.ts +0 -186
  31. package/etcdBackup.js +0 -106
  32. package/etcdBackup.js.map +0 -1
  33. package/getClusterTemplate.d.ts +0 -115
  34. package/getClusterTemplate.js +0 -60
  35. package/getClusterTemplate.js.map +0 -1
  36. package/getEtcdBackup.d.ts +0 -99
  37. package/getEtcdBackup.js +0 -54
  38. package/getEtcdBackup.js.map +0 -1
  39. package/getNodeTemplate.d.ts +0 -134
  40. package/getNodeTemplate.js +0 -52
  41. package/getNodeTemplate.js.map +0 -1
  42. package/nodeTemplate.d.ts +0 -562
  43. package/nodeTemplate.js +0 -261
  44. package/nodeTemplate.js.map +0 -1
@@ -1,215 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "./types/input";
3
- import * as outputs from "./types/output";
4
- /**
5
- * Provides a Rancher v2 Cluster Template resource. This can be used to create Cluster Templates for Rancher v2 RKE clusters and retrieve their information.
6
- *
7
- * Cluster Templates are available from Rancher v2.3.x and above.
8
- *
9
- * ## Example Usage
10
- *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as rancher2 from "@pulumi/rancher2";
14
- *
15
- * // Create a new rancher2 Cluster Template
16
- * const foo = new rancher2.ClusterTemplate("foo", {
17
- * name: "foo",
18
- * members: [{
19
- * accessType: "owner",
20
- * userPrincipalId: "local://user-XXXXX",
21
- * }],
22
- * templateRevisions: [{
23
- * name: "V1",
24
- * clusterConfig: {
25
- * rkeConfig: {
26
- * network: {
27
- * plugin: "canal",
28
- * },
29
- * services: {
30
- * etcd: {
31
- * creation: "6h",
32
- * retention: "24h",
33
- * },
34
- * },
35
- * },
36
- * },
37
- * "default": true,
38
- * }],
39
- * description: "Terraform cluster template foo",
40
- * });
41
- * ```
42
- *
43
- * Creating Rancher v2 RKE cluster template with upgrade strategy. For Rancher v2.4.x and above.
44
- *
45
- * ```typescript
46
- * import * as pulumi from "@pulumi/pulumi";
47
- * import * as rancher2 from "@pulumi/rancher2";
48
- *
49
- * // Create a new rancher2 Cluster Template
50
- * const foo = new rancher2.ClusterTemplate("foo", {
51
- * name: "foo",
52
- * members: [{
53
- * accessType: "owner",
54
- * userPrincipalId: "local://user-XXXXX",
55
- * }],
56
- * templateRevisions: [{
57
- * name: "V1",
58
- * clusterConfig: {
59
- * rkeConfig: {
60
- * network: {
61
- * plugin: "canal",
62
- * },
63
- * services: {
64
- * etcd: {
65
- * creation: "6h",
66
- * retention: "24h",
67
- * },
68
- * },
69
- * upgradeStrategy: {
70
- * drain: true,
71
- * maxUnavailableWorker: "20%",
72
- * },
73
- * },
74
- * },
75
- * "default": true,
76
- * }],
77
- * description: "Terraform cluster template foo",
78
- * });
79
- * ```
80
- *
81
- * ## Import
82
- *
83
- * Cluster Template can be imported using the rancher Cluster Template ID
84
- *
85
- * ```sh
86
- * $ pulumi import rancher2:index/clusterTemplate:ClusterTemplate foo <CLUSTER_TEMPLATE_ID>
87
- * ```
88
- */
89
- export declare class ClusterTemplate extends pulumi.CustomResource {
90
- /**
91
- * Get an existing ClusterTemplate resource's state with the given name, ID, and optional extra
92
- * properties used to qualify the lookup.
93
- *
94
- * @param name The _unique_ name of the resulting resource.
95
- * @param id The _unique_ provider ID of the resource to lookup.
96
- * @param state Any extra arguments used during the lookup.
97
- * @param opts Optional settings to control the behavior of the CustomResource.
98
- */
99
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterTemplateState, opts?: pulumi.CustomResourceOptions): ClusterTemplate;
100
- /**
101
- * Returns true if the given object is an instance of ClusterTemplate. This is designed to work even
102
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
103
- */
104
- static isInstance(obj: any): obj is ClusterTemplate;
105
- /**
106
- * Annotations for the cluster template (map)
107
- */
108
- readonly annotations: pulumi.Output<{
109
- [key: string]: string;
110
- }>;
111
- /**
112
- * (Computed) Default cluster template revision ID (string)
113
- */
114
- readonly defaultRevisionId: pulumi.Output<string>;
115
- /**
116
- * Cluster template description
117
- */
118
- readonly description: pulumi.Output<string | undefined>;
119
- /**
120
- * Labels for the cluster template (map)
121
- */
122
- readonly labels: pulumi.Output<{
123
- [key: string]: string;
124
- }>;
125
- /**
126
- * Cluster template members (list)
127
- */
128
- readonly members: pulumi.Output<outputs.ClusterTemplateMember[] | undefined>;
129
- /**
130
- * The cluster template name (string)
131
- */
132
- readonly name: pulumi.Output<string>;
133
- /**
134
- * Cluster template revisions (list)
135
- */
136
- readonly templateRevisions: pulumi.Output<outputs.ClusterTemplateTemplateRevision[]>;
137
- /**
138
- * Create a ClusterTemplate resource with the given unique name, arguments, and options.
139
- *
140
- * @param name The _unique_ name of the resource.
141
- * @param args The arguments to use to populate this resource's properties.
142
- * @param opts A bag of options that control this resource's behavior.
143
- */
144
- constructor(name: string, args?: ClusterTemplateArgs, opts?: pulumi.CustomResourceOptions);
145
- }
146
- /**
147
- * Input properties used for looking up and filtering ClusterTemplate resources.
148
- */
149
- export interface ClusterTemplateState {
150
- /**
151
- * Annotations for the cluster template (map)
152
- */
153
- annotations?: pulumi.Input<{
154
- [key: string]: pulumi.Input<string>;
155
- }>;
156
- /**
157
- * (Computed) Default cluster template revision ID (string)
158
- */
159
- defaultRevisionId?: pulumi.Input<string>;
160
- /**
161
- * Cluster template description
162
- */
163
- description?: pulumi.Input<string>;
164
- /**
165
- * Labels for the cluster template (map)
166
- */
167
- labels?: pulumi.Input<{
168
- [key: string]: pulumi.Input<string>;
169
- }>;
170
- /**
171
- * Cluster template members (list)
172
- */
173
- members?: pulumi.Input<pulumi.Input<inputs.ClusterTemplateMember>[]>;
174
- /**
175
- * The cluster template name (string)
176
- */
177
- name?: pulumi.Input<string>;
178
- /**
179
- * Cluster template revisions (list)
180
- */
181
- templateRevisions?: pulumi.Input<pulumi.Input<inputs.ClusterTemplateTemplateRevision>[]>;
182
- }
183
- /**
184
- * The set of arguments for constructing a ClusterTemplate resource.
185
- */
186
- export interface ClusterTemplateArgs {
187
- /**
188
- * Annotations for the cluster template (map)
189
- */
190
- annotations?: pulumi.Input<{
191
- [key: string]: pulumi.Input<string>;
192
- }>;
193
- /**
194
- * Cluster template description
195
- */
196
- description?: pulumi.Input<string>;
197
- /**
198
- * Labels for the cluster template (map)
199
- */
200
- labels?: pulumi.Input<{
201
- [key: string]: pulumi.Input<string>;
202
- }>;
203
- /**
204
- * Cluster template members (list)
205
- */
206
- members?: pulumi.Input<pulumi.Input<inputs.ClusterTemplateMember>[]>;
207
- /**
208
- * The cluster template name (string)
209
- */
210
- name?: pulumi.Input<string>;
211
- /**
212
- * Cluster template revisions (list)
213
- */
214
- templateRevisions?: pulumi.Input<pulumi.Input<inputs.ClusterTemplateTemplateRevision>[]>;
215
- }
@@ -1,146 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.ClusterTemplate = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Provides a Rancher v2 Cluster Template resource. This can be used to create Cluster Templates for Rancher v2 RKE clusters and retrieve their information.
10
- *
11
- * Cluster Templates are available from Rancher v2.3.x and above.
12
- *
13
- * ## Example Usage
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as rancher2 from "@pulumi/rancher2";
18
- *
19
- * // Create a new rancher2 Cluster Template
20
- * const foo = new rancher2.ClusterTemplate("foo", {
21
- * name: "foo",
22
- * members: [{
23
- * accessType: "owner",
24
- * userPrincipalId: "local://user-XXXXX",
25
- * }],
26
- * templateRevisions: [{
27
- * name: "V1",
28
- * clusterConfig: {
29
- * rkeConfig: {
30
- * network: {
31
- * plugin: "canal",
32
- * },
33
- * services: {
34
- * etcd: {
35
- * creation: "6h",
36
- * retention: "24h",
37
- * },
38
- * },
39
- * },
40
- * },
41
- * "default": true,
42
- * }],
43
- * description: "Terraform cluster template foo",
44
- * });
45
- * ```
46
- *
47
- * Creating Rancher v2 RKE cluster template with upgrade strategy. For Rancher v2.4.x and above.
48
- *
49
- * ```typescript
50
- * import * as pulumi from "@pulumi/pulumi";
51
- * import * as rancher2 from "@pulumi/rancher2";
52
- *
53
- * // Create a new rancher2 Cluster Template
54
- * const foo = new rancher2.ClusterTemplate("foo", {
55
- * name: "foo",
56
- * members: [{
57
- * accessType: "owner",
58
- * userPrincipalId: "local://user-XXXXX",
59
- * }],
60
- * templateRevisions: [{
61
- * name: "V1",
62
- * clusterConfig: {
63
- * rkeConfig: {
64
- * network: {
65
- * plugin: "canal",
66
- * },
67
- * services: {
68
- * etcd: {
69
- * creation: "6h",
70
- * retention: "24h",
71
- * },
72
- * },
73
- * upgradeStrategy: {
74
- * drain: true,
75
- * maxUnavailableWorker: "20%",
76
- * },
77
- * },
78
- * },
79
- * "default": true,
80
- * }],
81
- * description: "Terraform cluster template foo",
82
- * });
83
- * ```
84
- *
85
- * ## Import
86
- *
87
- * Cluster Template can be imported using the rancher Cluster Template ID
88
- *
89
- * ```sh
90
- * $ pulumi import rancher2:index/clusterTemplate:ClusterTemplate foo &lt;CLUSTER_TEMPLATE_ID&gt;
91
- * ```
92
- */
93
- class ClusterTemplate extends pulumi.CustomResource {
94
- /**
95
- * Get an existing ClusterTemplate resource's state with the given name, ID, and optional extra
96
- * properties used to qualify the lookup.
97
- *
98
- * @param name The _unique_ name of the resulting resource.
99
- * @param id The _unique_ provider ID of the resource to lookup.
100
- * @param state Any extra arguments used during the lookup.
101
- * @param opts Optional settings to control the behavior of the CustomResource.
102
- */
103
- static get(name, id, state, opts) {
104
- return new ClusterTemplate(name, state, { ...opts, id: id });
105
- }
106
- /**
107
- * Returns true if the given object is an instance of ClusterTemplate. This is designed to work even
108
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
109
- */
110
- static isInstance(obj) {
111
- if (obj === undefined || obj === null) {
112
- return false;
113
- }
114
- return obj['__pulumiType'] === ClusterTemplate.__pulumiType;
115
- }
116
- constructor(name, argsOrState, opts) {
117
- let resourceInputs = {};
118
- opts = opts || {};
119
- if (opts.id) {
120
- const state = argsOrState;
121
- resourceInputs["annotations"] = state?.annotations;
122
- resourceInputs["defaultRevisionId"] = state?.defaultRevisionId;
123
- resourceInputs["description"] = state?.description;
124
- resourceInputs["labels"] = state?.labels;
125
- resourceInputs["members"] = state?.members;
126
- resourceInputs["name"] = state?.name;
127
- resourceInputs["templateRevisions"] = state?.templateRevisions;
128
- }
129
- else {
130
- const args = argsOrState;
131
- resourceInputs["annotations"] = args?.annotations;
132
- resourceInputs["description"] = args?.description;
133
- resourceInputs["labels"] = args?.labels;
134
- resourceInputs["members"] = args?.members;
135
- resourceInputs["name"] = args?.name;
136
- resourceInputs["templateRevisions"] = args?.templateRevisions;
137
- resourceInputs["defaultRevisionId"] = undefined /*out*/;
138
- }
139
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
140
- super(ClusterTemplate.__pulumiType, name, resourceInputs, opts);
141
- }
142
- }
143
- exports.ClusterTemplate = ClusterTemplate;
144
- /** @internal */
145
- ClusterTemplate.__pulumiType = 'rancher2:index/clusterTemplate:ClusterTemplate';
146
- //# sourceMappingURL=clusterTemplate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clusterTemplate.js","sourceRoot":"","sources":["../clusterTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAA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AAY,GAAG,gDAAgD,CAAC"}
package/etcdBackup.d.ts DELETED
@@ -1,186 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "./types/input";
3
- import * as outputs from "./types/output";
4
- /**
5
- * Provides a Rancher v2 Etcd Backup resource. This can be used to create an Etcd Backup for Rancher v2.2.x and above, and to retrieve their information.
6
- *
7
- * The `rancher2.EtcdBackup` resource is used to define extra etcd backups for a `rancher2.Cluster`, which will be created as a local or S3 backup in accordance with the etcd backup config for the cluster. The main etcd backup config for the cluster should be set on the cluster config
8
- *
9
- * ## Example Usage
10
- *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as rancher2 from "@pulumi/rancher2";
14
- *
15
- * // Create a new rancher2 Etcd Backup
16
- * const foo = new rancher2.EtcdBackup("foo", {
17
- * backupConfig: {
18
- * enabled: true,
19
- * intervalHours: 20,
20
- * retention: 10,
21
- * s3BackupConfig: {
22
- * accessKey: "access_key",
23
- * bucketName: "bucket_name",
24
- * endpoint: "endpoint",
25
- * folder: "/folder",
26
- * region: "region",
27
- * secretKey: "secret_key",
28
- * },
29
- * },
30
- * clusterId: "<CLUSTER_ID>",
31
- * name: "foo",
32
- * filename: "<FILENAME>",
33
- * });
34
- * ```
35
- *
36
- * ## Import
37
- *
38
- * Etcd Backup can be imported using the Rancher etcd backup ID
39
- *
40
- * ```sh
41
- * $ pulumi import rancher2:index/etcdBackup:EtcdBackup foo &lt;ETCD_BACKUP_ID&gt;
42
- * ```
43
- */
44
- export declare class EtcdBackup extends pulumi.CustomResource {
45
- /**
46
- * Get an existing EtcdBackup resource's state with the given name, ID, and optional extra
47
- * properties used to qualify the lookup.
48
- *
49
- * @param name The _unique_ name of the resulting resource.
50
- * @param id The _unique_ provider ID of the resource to lookup.
51
- * @param state Any extra arguments used during the lookup.
52
- * @param opts Optional settings to control the behavior of the CustomResource.
53
- */
54
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EtcdBackupState, opts?: pulumi.CustomResourceOptions): EtcdBackup;
55
- /**
56
- * Returns true if the given object is an instance of EtcdBackup. This is designed to work even
57
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
- */
59
- static isInstance(obj: any): obj is EtcdBackup;
60
- /**
61
- * Annotations for Etcd Backup object (map)
62
- */
63
- readonly annotations: pulumi.Output<{
64
- [key: string]: string;
65
- }>;
66
- /**
67
- * Backup config for etcd backup (list maxitems:1)
68
- */
69
- readonly backupConfig: pulumi.Output<outputs.EtcdBackupBackupConfig>;
70
- /**
71
- * Cluster ID to config Etcd Backup (string)
72
- */
73
- readonly clusterId: pulumi.Output<string>;
74
- /**
75
- * Filename of the Etcd Backup (string)
76
- */
77
- readonly filename: pulumi.Output<string>;
78
- /**
79
- * Labels for Etcd Backup object (map)
80
- */
81
- readonly labels: pulumi.Output<{
82
- [key: string]: string;
83
- }>;
84
- /**
85
- * Manual execution of the Etcd Backup. Default `false` (bool)
86
- */
87
- readonly manual: pulumi.Output<boolean | undefined>;
88
- /**
89
- * The name of the Etcd Backup (string)
90
- */
91
- readonly name: pulumi.Output<string>;
92
- /**
93
- * Description for the Etcd Backup (string)
94
- */
95
- readonly namespaceId: pulumi.Output<string>;
96
- /**
97
- * Create a EtcdBackup resource with the given unique name, arguments, and options.
98
- *
99
- * @param name The _unique_ name of the resource.
100
- * @param args The arguments to use to populate this resource's properties.
101
- * @param opts A bag of options that control this resource's behavior.
102
- */
103
- constructor(name: string, args: EtcdBackupArgs, opts?: pulumi.CustomResourceOptions);
104
- }
105
- /**
106
- * Input properties used for looking up and filtering EtcdBackup resources.
107
- */
108
- export interface EtcdBackupState {
109
- /**
110
- * Annotations for Etcd Backup object (map)
111
- */
112
- annotations?: pulumi.Input<{
113
- [key: string]: pulumi.Input<string>;
114
- }>;
115
- /**
116
- * Backup config for etcd backup (list maxitems:1)
117
- */
118
- backupConfig?: pulumi.Input<inputs.EtcdBackupBackupConfig>;
119
- /**
120
- * Cluster ID to config Etcd Backup (string)
121
- */
122
- clusterId?: pulumi.Input<string>;
123
- /**
124
- * Filename of the Etcd Backup (string)
125
- */
126
- filename?: pulumi.Input<string>;
127
- /**
128
- * Labels for Etcd Backup object (map)
129
- */
130
- labels?: pulumi.Input<{
131
- [key: string]: pulumi.Input<string>;
132
- }>;
133
- /**
134
- * Manual execution of the Etcd Backup. Default `false` (bool)
135
- */
136
- manual?: pulumi.Input<boolean>;
137
- /**
138
- * The name of the Etcd Backup (string)
139
- */
140
- name?: pulumi.Input<string>;
141
- /**
142
- * Description for the Etcd Backup (string)
143
- */
144
- namespaceId?: pulumi.Input<string>;
145
- }
146
- /**
147
- * The set of arguments for constructing a EtcdBackup resource.
148
- */
149
- export interface EtcdBackupArgs {
150
- /**
151
- * Annotations for Etcd Backup object (map)
152
- */
153
- annotations?: pulumi.Input<{
154
- [key: string]: pulumi.Input<string>;
155
- }>;
156
- /**
157
- * Backup config for etcd backup (list maxitems:1)
158
- */
159
- backupConfig?: pulumi.Input<inputs.EtcdBackupBackupConfig>;
160
- /**
161
- * Cluster ID to config Etcd Backup (string)
162
- */
163
- clusterId: pulumi.Input<string>;
164
- /**
165
- * Filename of the Etcd Backup (string)
166
- */
167
- filename?: pulumi.Input<string>;
168
- /**
169
- * Labels for Etcd Backup object (map)
170
- */
171
- labels?: pulumi.Input<{
172
- [key: string]: pulumi.Input<string>;
173
- }>;
174
- /**
175
- * Manual execution of the Etcd Backup. Default `false` (bool)
176
- */
177
- manual?: pulumi.Input<boolean>;
178
- /**
179
- * The name of the Etcd Backup (string)
180
- */
181
- name?: pulumi.Input<string>;
182
- /**
183
- * Description for the Etcd Backup (string)
184
- */
185
- namespaceId?: pulumi.Input<string>;
186
- }
package/etcdBackup.js DELETED
@@ -1,106 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.EtcdBackup = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * Provides a Rancher v2 Etcd Backup resource. This can be used to create an Etcd Backup for Rancher v2.2.x and above, and to retrieve their information.
10
- *
11
- * The `rancher2.EtcdBackup` resource is used to define extra etcd backups for a `rancher2.Cluster`, which will be created as a local or S3 backup in accordance with the etcd backup config for the cluster. The main etcd backup config for the cluster should be set on the cluster config
12
- *
13
- * ## Example Usage
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as rancher2 from "@pulumi/rancher2";
18
- *
19
- * // Create a new rancher2 Etcd Backup
20
- * const foo = new rancher2.EtcdBackup("foo", {
21
- * backupConfig: {
22
- * enabled: true,
23
- * intervalHours: 20,
24
- * retention: 10,
25
- * s3BackupConfig: {
26
- * accessKey: "access_key",
27
- * bucketName: "bucket_name",
28
- * endpoint: "endpoint",
29
- * folder: "/folder",
30
- * region: "region",
31
- * secretKey: "secret_key",
32
- * },
33
- * },
34
- * clusterId: "<CLUSTER_ID>",
35
- * name: "foo",
36
- * filename: "<FILENAME>",
37
- * });
38
- * ```
39
- *
40
- * ## Import
41
- *
42
- * Etcd Backup can be imported using the Rancher etcd backup ID
43
- *
44
- * ```sh
45
- * $ pulumi import rancher2:index/etcdBackup:EtcdBackup foo &lt;ETCD_BACKUP_ID&gt;
46
- * ```
47
- */
48
- class EtcdBackup extends pulumi.CustomResource {
49
- /**
50
- * Get an existing EtcdBackup resource's state with the given name, ID, and optional extra
51
- * properties used to qualify the lookup.
52
- *
53
- * @param name The _unique_ name of the resulting resource.
54
- * @param id The _unique_ provider ID of the resource to lookup.
55
- * @param state Any extra arguments used during the lookup.
56
- * @param opts Optional settings to control the behavior of the CustomResource.
57
- */
58
- static get(name, id, state, opts) {
59
- return new EtcdBackup(name, state, { ...opts, id: id });
60
- }
61
- /**
62
- * Returns true if the given object is an instance of EtcdBackup. This is designed to work even
63
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
- */
65
- static isInstance(obj) {
66
- if (obj === undefined || obj === null) {
67
- return false;
68
- }
69
- return obj['__pulumiType'] === EtcdBackup.__pulumiType;
70
- }
71
- constructor(name, argsOrState, opts) {
72
- let resourceInputs = {};
73
- opts = opts || {};
74
- if (opts.id) {
75
- const state = argsOrState;
76
- resourceInputs["annotations"] = state?.annotations;
77
- resourceInputs["backupConfig"] = state?.backupConfig;
78
- resourceInputs["clusterId"] = state?.clusterId;
79
- resourceInputs["filename"] = state?.filename;
80
- resourceInputs["labels"] = state?.labels;
81
- resourceInputs["manual"] = state?.manual;
82
- resourceInputs["name"] = state?.name;
83
- resourceInputs["namespaceId"] = state?.namespaceId;
84
- }
85
- else {
86
- const args = argsOrState;
87
- if (args?.clusterId === undefined && !opts.urn) {
88
- throw new Error("Missing required property 'clusterId'");
89
- }
90
- resourceInputs["annotations"] = args?.annotations;
91
- resourceInputs["backupConfig"] = args?.backupConfig;
92
- resourceInputs["clusterId"] = args?.clusterId;
93
- resourceInputs["filename"] = args?.filename;
94
- resourceInputs["labels"] = args?.labels;
95
- resourceInputs["manual"] = args?.manual;
96
- resourceInputs["name"] = args?.name;
97
- resourceInputs["namespaceId"] = args?.namespaceId;
98
- }
99
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
100
- super(EtcdBackup.__pulumiType, name, resourceInputs, opts);
101
- }
102
- }
103
- exports.EtcdBackup = EtcdBackup;
104
- /** @internal */
105
- EtcdBackup.__pulumiType = 'rancher2:index/etcdBackup:EtcdBackup';
106
- //# sourceMappingURL=etcdBackup.js.map
package/etcdBackup.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"etcdBackup.js","sourceRoot":"","sources":["../etcdBackup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;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