pulumi-nomad 2.2.0a1710332982__py3-none-any.whl → 2.3.0__py3-none-any.whl
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.
- pulumi_nomad/__init__.py +1 -0
- pulumi_nomad/_inputs.py +221 -189
- pulumi_nomad/acl_auth_method.py +18 -20
- pulumi_nomad/acl_policy.py +0 -64
- pulumi_nomad/acl_token.py +18 -26
- pulumi_nomad/csi_volume.py +0 -72
- pulumi_nomad/csi_volume_registration.py +0 -72
- pulumi_nomad/external_volume.py +6 -78
- pulumi_nomad/get_acl_policies.py +0 -4
- pulumi_nomad/get_acl_policy.py +0 -4
- pulumi_nomad/get_acl_role.py +0 -4
- pulumi_nomad/get_acl_roles.py +0 -4
- pulumi_nomad/get_acl_token.py +0 -4
- pulumi_nomad/get_acl_tokens.py +0 -4
- pulumi_nomad/get_allocations.py +0 -4
- pulumi_nomad/get_datacenters.py +4 -8
- pulumi_nomad/get_deployments.py +5 -4
- pulumi_nomad/get_job.py +0 -4
- pulumi_nomad/get_job_parser.py +0 -24
- pulumi_nomad/get_jwks.py +116 -0
- pulumi_nomad/get_namespace.py +0 -4
- pulumi_nomad/get_namespaces.py +2 -4
- pulumi_nomad/get_node_pool.py +0 -4
- pulumi_nomad/get_node_pools.py +0 -4
- pulumi_nomad/get_plugin.py +0 -4
- pulumi_nomad/get_plugins.py +0 -4
- pulumi_nomad/get_regions.py +34 -0
- pulumi_nomad/get_scaling_policies.py +0 -4
- pulumi_nomad/get_scaling_policy.py +0 -4
- pulumi_nomad/get_scheduler_policy.py +0 -4
- pulumi_nomad/get_variable.py +0 -4
- pulumi_nomad/get_volumes.py +0 -4
- pulumi_nomad/job.py +16 -16
- pulumi_nomad/namespace.py +14 -16
- pulumi_nomad/node_pool.py +2 -4
- pulumi_nomad/outputs.py +274 -182
- pulumi_nomad/pulumi-plugin.json +2 -1
- pulumi_nomad/quote_specification.py +4 -6
- pulumi_nomad/scheduler_config.py +6 -10
- pulumi_nomad/sentinel_policy.py +6 -10
- pulumi_nomad/variable.py +14 -18
- pulumi_nomad/volume.py +8 -80
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.3.0.dist-info}/METADATA +1 -1
- pulumi_nomad-2.3.0.dist-info/RECORD +55 -0
- pulumi_nomad-2.2.0a1710332982.dist-info/RECORD +0 -54
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.3.0.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.3.0.dist-info}/top_level.txt +0 -0
pulumi_nomad/acl_auth_method.py
CHANGED
@@ -32,8 +32,8 @@ class AclAuthMethodArgs:
|
|
32
32
|
:param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
|
33
33
|
creates a local or global token when performing SSO login. This field must be
|
34
34
|
set to either `local` or `global`.
|
35
|
-
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type.
|
36
|
-
|
35
|
+
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
36
|
+
are `OIDC` and `JWT`.
|
37
37
|
:param pulumi.Input[bool] default: `(bool: false)` - Defines whether this ACL Auth Method is to be set
|
38
38
|
as default.
|
39
39
|
:param pulumi.Input[str] name: `(string: <required>)` - The identifier of the ACL Auth Method.
|
@@ -96,8 +96,8 @@ class AclAuthMethodArgs:
|
|
96
96
|
@pulumi.getter
|
97
97
|
def type(self) -> pulumi.Input[str]:
|
98
98
|
"""
|
99
|
-
`(string: <required>)` - ACL Auth Method SSO workflow type.
|
100
|
-
|
99
|
+
`(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
100
|
+
are `OIDC` and `JWT`.
|
101
101
|
"""
|
102
102
|
return pulumi.get(self, "type")
|
103
103
|
|
@@ -170,8 +170,8 @@ class _AclAuthMethodState:
|
|
170
170
|
:param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
|
171
171
|
Defines the token name format for the generated tokens This can be lightly
|
172
172
|
templated using HIL '${foo}' syntax.
|
173
|
-
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type.
|
174
|
-
|
173
|
+
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
174
|
+
are `OIDC` and `JWT`.
|
175
175
|
"""
|
176
176
|
if config is not None:
|
177
177
|
pulumi.set(__self__, "config", config)
|
@@ -271,8 +271,8 @@ class _AclAuthMethodState:
|
|
271
271
|
@pulumi.getter
|
272
272
|
def type(self) -> Optional[pulumi.Input[str]]:
|
273
273
|
"""
|
274
|
-
`(string: <required>)` - ACL Auth Method SSO workflow type.
|
275
|
-
|
274
|
+
`(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
275
|
+
are `OIDC` and `JWT`.
|
276
276
|
"""
|
277
277
|
return pulumi.get(self, "type")
|
278
278
|
|
@@ -301,12 +301,12 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
301
301
|
|
302
302
|
Creating an ALC Auth Method:
|
303
303
|
|
304
|
-
<!--Start PulumiCodeChooser -->
|
305
304
|
```python
|
306
305
|
import pulumi
|
307
306
|
import pulumi_nomad as nomad
|
308
307
|
|
309
|
-
my_nomad_acl_auth_method = nomad.AclAuthMethod("
|
308
|
+
my_nomad_acl_auth_method = nomad.AclAuthMethod("my_nomad_acl_auth_method",
|
309
|
+
name="my-nomad-acl-auth-method",
|
310
310
|
type="OIDC",
|
311
311
|
token_locality="global",
|
312
312
|
max_token_ttl="10m0s",
|
@@ -326,7 +326,6 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
326
326
|
},
|
327
327
|
))
|
328
328
|
```
|
329
|
-
<!--End PulumiCodeChooser -->
|
330
329
|
|
331
330
|
:param str resource_name: The name of the resource.
|
332
331
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -343,8 +342,8 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
343
342
|
:param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
|
344
343
|
Defines the token name format for the generated tokens This can be lightly
|
345
344
|
templated using HIL '${foo}' syntax.
|
346
|
-
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type.
|
347
|
-
|
345
|
+
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
346
|
+
are `OIDC` and `JWT`.
|
348
347
|
"""
|
349
348
|
...
|
350
349
|
@overload
|
@@ -359,12 +358,12 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
359
358
|
|
360
359
|
Creating an ALC Auth Method:
|
361
360
|
|
362
|
-
<!--Start PulumiCodeChooser -->
|
363
361
|
```python
|
364
362
|
import pulumi
|
365
363
|
import pulumi_nomad as nomad
|
366
364
|
|
367
|
-
my_nomad_acl_auth_method = nomad.AclAuthMethod("
|
365
|
+
my_nomad_acl_auth_method = nomad.AclAuthMethod("my_nomad_acl_auth_method",
|
366
|
+
name="my-nomad-acl-auth-method",
|
368
367
|
type="OIDC",
|
369
368
|
token_locality="global",
|
370
369
|
max_token_ttl="10m0s",
|
@@ -384,7 +383,6 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
384
383
|
},
|
385
384
|
))
|
386
385
|
```
|
387
|
-
<!--End PulumiCodeChooser -->
|
388
386
|
|
389
387
|
:param str resource_name: The name of the resource.
|
390
388
|
:param AclAuthMethodArgs args: The arguments to use to populate this resource's properties.
|
@@ -469,8 +467,8 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
469
467
|
:param pulumi.Input[str] token_name_format: `(string: "${auth_method_type}-${auth_method_name}")` -
|
470
468
|
Defines the token name format for the generated tokens This can be lightly
|
471
469
|
templated using HIL '${foo}' syntax.
|
472
|
-
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type.
|
473
|
-
|
470
|
+
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
471
|
+
are `OIDC` and `JWT`.
|
474
472
|
"""
|
475
473
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
476
474
|
|
@@ -544,8 +542,8 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
544
542
|
@pulumi.getter
|
545
543
|
def type(self) -> pulumi.Output[str]:
|
546
544
|
"""
|
547
|
-
`(string: <required>)` - ACL Auth Method SSO workflow type.
|
548
|
-
|
545
|
+
`(string: <required>)` - ACL Auth Method SSO workflow type. Valid values,
|
546
|
+
are `OIDC` and `JWT`.
|
549
547
|
"""
|
550
548
|
return pulumi.get(self, "type")
|
551
549
|
|
pulumi_nomad/acl_policy.py
CHANGED
@@ -173,38 +173,6 @@ class AclPolicy(pulumi.CustomResource):
|
|
173
173
|
"""
|
174
174
|
Manages an ACL policy registered in Nomad.
|
175
175
|
|
176
|
-
## Example Usage
|
177
|
-
|
178
|
-
Registering a policy from a HCL file:
|
179
|
-
|
180
|
-
<!--Start PulumiCodeChooser -->
|
181
|
-
```python
|
182
|
-
import pulumi
|
183
|
-
import pulumi_nomad as nomad
|
184
|
-
|
185
|
-
dev = nomad.AclPolicy("dev",
|
186
|
-
description="Submit jobs to the dev environment.",
|
187
|
-
rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
|
188
|
-
```
|
189
|
-
<!--End PulumiCodeChooser -->
|
190
|
-
|
191
|
-
Registering a policy from inline HCL:
|
192
|
-
|
193
|
-
<!--Start PulumiCodeChooser -->
|
194
|
-
```python
|
195
|
-
import pulumi
|
196
|
-
import pulumi_nomad as nomad
|
197
|
-
|
198
|
-
dev = nomad.AclPolicy("dev",
|
199
|
-
description="Submit jobs to the dev environment.",
|
200
|
-
rules_hcl=\"\"\"namespace "dev" {
|
201
|
-
policy = "write"
|
202
|
-
}
|
203
|
-
|
204
|
-
\"\"\")
|
205
|
-
```
|
206
|
-
<!--End PulumiCodeChooser -->
|
207
|
-
|
208
176
|
:param str resource_name: The name of the resource.
|
209
177
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
210
178
|
:param pulumi.Input[str] description: `(string: "")` - A description of the policy.
|
@@ -222,38 +190,6 @@ class AclPolicy(pulumi.CustomResource):
|
|
222
190
|
"""
|
223
191
|
Manages an ACL policy registered in Nomad.
|
224
192
|
|
225
|
-
## Example Usage
|
226
|
-
|
227
|
-
Registering a policy from a HCL file:
|
228
|
-
|
229
|
-
<!--Start PulumiCodeChooser -->
|
230
|
-
```python
|
231
|
-
import pulumi
|
232
|
-
import pulumi_nomad as nomad
|
233
|
-
|
234
|
-
dev = nomad.AclPolicy("dev",
|
235
|
-
description="Submit jobs to the dev environment.",
|
236
|
-
rules_hcl=(lambda path: open(path).read())(f"{path['module']}/dev.hcl"))
|
237
|
-
```
|
238
|
-
<!--End PulumiCodeChooser -->
|
239
|
-
|
240
|
-
Registering a policy from inline HCL:
|
241
|
-
|
242
|
-
<!--Start PulumiCodeChooser -->
|
243
|
-
```python
|
244
|
-
import pulumi
|
245
|
-
import pulumi_nomad as nomad
|
246
|
-
|
247
|
-
dev = nomad.AclPolicy("dev",
|
248
|
-
description="Submit jobs to the dev environment.",
|
249
|
-
rules_hcl=\"\"\"namespace "dev" {
|
250
|
-
policy = "write"
|
251
|
-
}
|
252
|
-
|
253
|
-
\"\"\")
|
254
|
-
```
|
255
|
-
<!--End PulumiCodeChooser -->
|
256
|
-
|
257
193
|
:param str resource_name: The name of the resource.
|
258
194
|
:param AclPolicyArgs args: The arguments to use to populate this resource's properties.
|
259
195
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
pulumi_nomad/acl_token.py
CHANGED
@@ -351,51 +351,48 @@ class AclToken(pulumi.CustomResource):
|
|
351
351
|
|
352
352
|
Creating a token with limited policies:
|
353
353
|
|
354
|
-
<!--Start PulumiCodeChooser -->
|
355
354
|
```python
|
356
355
|
import pulumi
|
357
356
|
import pulumi_nomad as nomad
|
358
357
|
|
359
358
|
dakota = nomad.AclToken("dakota",
|
359
|
+
name="Dakota",
|
360
|
+
type="client",
|
360
361
|
policies=[
|
361
362
|
"dev",
|
362
363
|
"qa",
|
363
|
-
]
|
364
|
-
type="client")
|
364
|
+
])
|
365
365
|
```
|
366
|
-
<!--End PulumiCodeChooser -->
|
367
366
|
|
368
367
|
Creating a global token that will be replicated to all regions:
|
369
368
|
|
370
|
-
<!--Start PulumiCodeChooser -->
|
371
369
|
```python
|
372
370
|
import pulumi
|
373
371
|
import pulumi_nomad as nomad
|
374
372
|
|
375
373
|
dakota = nomad.AclToken("dakota",
|
376
|
-
|
374
|
+
name="Dakota",
|
375
|
+
type="client",
|
377
376
|
policies=[
|
378
377
|
"dev",
|
379
378
|
"qa",
|
380
379
|
],
|
381
|
-
|
380
|
+
global_=True)
|
382
381
|
```
|
383
|
-
<!--End PulumiCodeChooser -->
|
384
382
|
|
385
383
|
Creating a token with full access to the cluster:
|
386
384
|
|
387
|
-
<!--Start PulumiCodeChooser -->
|
388
385
|
```python
|
389
386
|
import pulumi
|
390
387
|
import pulumi_nomad as nomad
|
391
388
|
|
392
|
-
iman = nomad.AclToken("iman",
|
389
|
+
iman = nomad.AclToken("iman",
|
390
|
+
name="Iman",
|
391
|
+
type="management")
|
393
392
|
```
|
394
|
-
<!--End PulumiCodeChooser -->
|
395
393
|
|
396
394
|
Accessing the token:
|
397
395
|
|
398
|
-
<!--Start PulumiCodeChooser -->
|
399
396
|
```python
|
400
397
|
import pulumi
|
401
398
|
import pulumi_nomad as nomad
|
@@ -405,7 +402,6 @@ class AclToken(pulumi.CustomResource):
|
|
405
402
|
policies=["dev"])
|
406
403
|
pulumi.export("nomadToken", token.secret_id)
|
407
404
|
```
|
408
|
-
<!--End PulumiCodeChooser -->
|
409
405
|
|
410
406
|
:param str resource_name: The name of the resource.
|
411
407
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -438,51 +434,48 @@ class AclToken(pulumi.CustomResource):
|
|
438
434
|
|
439
435
|
Creating a token with limited policies:
|
440
436
|
|
441
|
-
<!--Start PulumiCodeChooser -->
|
442
437
|
```python
|
443
438
|
import pulumi
|
444
439
|
import pulumi_nomad as nomad
|
445
440
|
|
446
441
|
dakota = nomad.AclToken("dakota",
|
442
|
+
name="Dakota",
|
443
|
+
type="client",
|
447
444
|
policies=[
|
448
445
|
"dev",
|
449
446
|
"qa",
|
450
|
-
]
|
451
|
-
type="client")
|
447
|
+
])
|
452
448
|
```
|
453
|
-
<!--End PulumiCodeChooser -->
|
454
449
|
|
455
450
|
Creating a global token that will be replicated to all regions:
|
456
451
|
|
457
|
-
<!--Start PulumiCodeChooser -->
|
458
452
|
```python
|
459
453
|
import pulumi
|
460
454
|
import pulumi_nomad as nomad
|
461
455
|
|
462
456
|
dakota = nomad.AclToken("dakota",
|
463
|
-
|
457
|
+
name="Dakota",
|
458
|
+
type="client",
|
464
459
|
policies=[
|
465
460
|
"dev",
|
466
461
|
"qa",
|
467
462
|
],
|
468
|
-
|
463
|
+
global_=True)
|
469
464
|
```
|
470
|
-
<!--End PulumiCodeChooser -->
|
471
465
|
|
472
466
|
Creating a token with full access to the cluster:
|
473
467
|
|
474
|
-
<!--Start PulumiCodeChooser -->
|
475
468
|
```python
|
476
469
|
import pulumi
|
477
470
|
import pulumi_nomad as nomad
|
478
471
|
|
479
|
-
iman = nomad.AclToken("iman",
|
472
|
+
iman = nomad.AclToken("iman",
|
473
|
+
name="Iman",
|
474
|
+
type="management")
|
480
475
|
```
|
481
|
-
<!--End PulumiCodeChooser -->
|
482
476
|
|
483
477
|
Accessing the token:
|
484
478
|
|
485
|
-
<!--Start PulumiCodeChooser -->
|
486
479
|
```python
|
487
480
|
import pulumi
|
488
481
|
import pulumi_nomad as nomad
|
@@ -492,7 +485,6 @@ class AclToken(pulumi.CustomResource):
|
|
492
485
|
policies=["dev"])
|
493
486
|
pulumi.export("nomadToken", token.secret_id)
|
494
487
|
```
|
495
|
-
<!--End PulumiCodeChooser -->
|
496
488
|
|
497
489
|
:param str resource_name: The name of the resource.
|
498
490
|
:param AclTokenArgs args: The arguments to use to populate this resource's properties.
|
pulumi_nomad/csi_volume.py
CHANGED
@@ -261,23 +261,14 @@ class _CsiVolumeState:
|
|
261
261
|
:param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
262
262
|
:param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
263
263
|
:param pulumi.Input[str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
|
264
|
-
:param pulumi.Input[bool] controller_required: `(boolean)`
|
265
|
-
:param pulumi.Input[int] controllers_expected: `(integer)`
|
266
|
-
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
267
264
|
:param pulumi.Input[str] external_id: The ID of the physical volume from the storage provider.
|
268
265
|
:param pulumi.Input['CsiVolumeMountOptionsArgs'] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
269
266
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
270
267
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
271
|
-
:param pulumi.Input[int] nodes_expected: `(integer)`
|
272
|
-
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
273
268
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: optional)` An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
|
274
269
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
275
|
-
:param pulumi.Input[str] plugin_provider: `(string)`
|
276
|
-
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
277
|
-
:param pulumi.Input[bool] schedulable: `(boolean)`
|
278
270
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: optional)` An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
|
279
271
|
:param pulumi.Input[str] snapshot_id: `(string: <optional>)` - The external ID of a snapshot to restore. If ommited, the volume will be created from scratch. Conflicts with `clone_id`.
|
280
|
-
:param pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyArgs']]] topologies: `(List of topologies)`
|
281
272
|
:param pulumi.Input['CsiVolumeTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
282
273
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
283
274
|
"""
|
@@ -412,9 +403,6 @@ class _CsiVolumeState:
|
|
412
403
|
@property
|
413
404
|
@pulumi.getter(name="controllerRequired")
|
414
405
|
def controller_required(self) -> Optional[pulumi.Input[bool]]:
|
415
|
-
"""
|
416
|
-
`(boolean)`
|
417
|
-
"""
|
418
406
|
return pulumi.get(self, "controller_required")
|
419
407
|
|
420
408
|
@controller_required.setter
|
@@ -424,9 +412,6 @@ class _CsiVolumeState:
|
|
424
412
|
@property
|
425
413
|
@pulumi.getter(name="controllersExpected")
|
426
414
|
def controllers_expected(self) -> Optional[pulumi.Input[int]]:
|
427
|
-
"""
|
428
|
-
`(integer)`
|
429
|
-
"""
|
430
415
|
return pulumi.get(self, "controllers_expected")
|
431
416
|
|
432
417
|
@controllers_expected.setter
|
@@ -436,9 +421,6 @@ class _CsiVolumeState:
|
|
436
421
|
@property
|
437
422
|
@pulumi.getter(name="controllersHealthy")
|
438
423
|
def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
|
439
|
-
"""
|
440
|
-
`(integer)`
|
441
|
-
"""
|
442
424
|
return pulumi.get(self, "controllers_healthy")
|
443
425
|
|
444
426
|
@controllers_healthy.setter
|
@@ -496,9 +478,6 @@ class _CsiVolumeState:
|
|
496
478
|
@property
|
497
479
|
@pulumi.getter(name="nodesExpected")
|
498
480
|
def nodes_expected(self) -> Optional[pulumi.Input[int]]:
|
499
|
-
"""
|
500
|
-
`(integer)`
|
501
|
-
"""
|
502
481
|
return pulumi.get(self, "nodes_expected")
|
503
482
|
|
504
483
|
@nodes_expected.setter
|
@@ -508,9 +487,6 @@ class _CsiVolumeState:
|
|
508
487
|
@property
|
509
488
|
@pulumi.getter(name="nodesHealthy")
|
510
489
|
def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
|
511
|
-
"""
|
512
|
-
`(integer)`
|
513
|
-
"""
|
514
490
|
return pulumi.get(self, "nodes_healthy")
|
515
491
|
|
516
492
|
@nodes_healthy.setter
|
@@ -544,9 +520,6 @@ class _CsiVolumeState:
|
|
544
520
|
@property
|
545
521
|
@pulumi.getter(name="pluginProvider")
|
546
522
|
def plugin_provider(self) -> Optional[pulumi.Input[str]]:
|
547
|
-
"""
|
548
|
-
`(string)`
|
549
|
-
"""
|
550
523
|
return pulumi.get(self, "plugin_provider")
|
551
524
|
|
552
525
|
@plugin_provider.setter
|
@@ -556,9 +529,6 @@ class _CsiVolumeState:
|
|
556
529
|
@property
|
557
530
|
@pulumi.getter(name="pluginProviderVersion")
|
558
531
|
def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
|
559
|
-
"""
|
560
|
-
`(string)`
|
561
|
-
"""
|
562
532
|
return pulumi.get(self, "plugin_provider_version")
|
563
533
|
|
564
534
|
@plugin_provider_version.setter
|
@@ -568,9 +538,6 @@ class _CsiVolumeState:
|
|
568
538
|
@property
|
569
539
|
@pulumi.getter
|
570
540
|
def schedulable(self) -> Optional[pulumi.Input[bool]]:
|
571
|
-
"""
|
572
|
-
`(boolean)`
|
573
|
-
"""
|
574
541
|
return pulumi.get(self, "schedulable")
|
575
542
|
|
576
543
|
@schedulable.setter
|
@@ -604,9 +571,6 @@ class _CsiVolumeState:
|
|
604
571
|
@property
|
605
572
|
@pulumi.getter
|
606
573
|
def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CsiVolumeTopologyArgs']]]]:
|
607
|
-
"""
|
608
|
-
`(List of topologies)`
|
609
|
-
"""
|
610
574
|
return pulumi.get(self, "topologies")
|
611
575
|
|
612
576
|
@topologies.setter
|
@@ -801,23 +765,14 @@ class CsiVolume(pulumi.CustomResource):
|
|
801
765
|
:param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
|
802
766
|
:param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
|
803
767
|
:param pulumi.Input[str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
|
804
|
-
:param pulumi.Input[bool] controller_required: `(boolean)`
|
805
|
-
:param pulumi.Input[int] controllers_expected: `(integer)`
|
806
|
-
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
807
768
|
:param pulumi.Input[str] external_id: The ID of the physical volume from the storage provider.
|
808
769
|
:param pulumi.Input[pulumi.InputType['CsiVolumeMountOptionsArgs']] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
809
770
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
810
771
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
811
|
-
:param pulumi.Input[int] nodes_expected: `(integer)`
|
812
|
-
:param pulumi.Input[int] nodes_healthy: `(integer)`
|
813
772
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: optional)` An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
|
814
773
|
:param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
|
815
|
-
:param pulumi.Input[str] plugin_provider: `(string)`
|
816
|
-
:param pulumi.Input[str] plugin_provider_version: `(string)`
|
817
|
-
:param pulumi.Input[bool] schedulable: `(boolean)`
|
818
774
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: optional)` An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
|
819
775
|
:param pulumi.Input[str] snapshot_id: `(string: <optional>)` - The external ID of a snapshot to restore. If ommited, the volume will be created from scratch. Conflicts with `clone_id`.
|
820
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CsiVolumeTopologyArgs']]]] topologies: `(List of topologies)`
|
821
776
|
:param pulumi.Input[pulumi.InputType['CsiVolumeTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
|
822
777
|
:param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
|
823
778
|
"""
|
@@ -903,25 +858,16 @@ class CsiVolume(pulumi.CustomResource):
|
|
903
858
|
@property
|
904
859
|
@pulumi.getter(name="controllerRequired")
|
905
860
|
def controller_required(self) -> pulumi.Output[bool]:
|
906
|
-
"""
|
907
|
-
`(boolean)`
|
908
|
-
"""
|
909
861
|
return pulumi.get(self, "controller_required")
|
910
862
|
|
911
863
|
@property
|
912
864
|
@pulumi.getter(name="controllersExpected")
|
913
865
|
def controllers_expected(self) -> pulumi.Output[int]:
|
914
|
-
"""
|
915
|
-
`(integer)`
|
916
|
-
"""
|
917
866
|
return pulumi.get(self, "controllers_expected")
|
918
867
|
|
919
868
|
@property
|
920
869
|
@pulumi.getter(name="controllersHealthy")
|
921
870
|
def controllers_healthy(self) -> pulumi.Output[int]:
|
922
|
-
"""
|
923
|
-
`(integer)`
|
924
|
-
"""
|
925
871
|
return pulumi.get(self, "controllers_healthy")
|
926
872
|
|
927
873
|
@property
|
@@ -959,17 +905,11 @@ class CsiVolume(pulumi.CustomResource):
|
|
959
905
|
@property
|
960
906
|
@pulumi.getter(name="nodesExpected")
|
961
907
|
def nodes_expected(self) -> pulumi.Output[int]:
|
962
|
-
"""
|
963
|
-
`(integer)`
|
964
|
-
"""
|
965
908
|
return pulumi.get(self, "nodes_expected")
|
966
909
|
|
967
910
|
@property
|
968
911
|
@pulumi.getter(name="nodesHealthy")
|
969
912
|
def nodes_healthy(self) -> pulumi.Output[int]:
|
970
|
-
"""
|
971
|
-
`(integer)`
|
972
|
-
"""
|
973
913
|
return pulumi.get(self, "nodes_healthy")
|
974
914
|
|
975
915
|
@property
|
@@ -991,25 +931,16 @@ class CsiVolume(pulumi.CustomResource):
|
|
991
931
|
@property
|
992
932
|
@pulumi.getter(name="pluginProvider")
|
993
933
|
def plugin_provider(self) -> pulumi.Output[str]:
|
994
|
-
"""
|
995
|
-
`(string)`
|
996
|
-
"""
|
997
934
|
return pulumi.get(self, "plugin_provider")
|
998
935
|
|
999
936
|
@property
|
1000
937
|
@pulumi.getter(name="pluginProviderVersion")
|
1001
938
|
def plugin_provider_version(self) -> pulumi.Output[str]:
|
1002
|
-
"""
|
1003
|
-
`(string)`
|
1004
|
-
"""
|
1005
939
|
return pulumi.get(self, "plugin_provider_version")
|
1006
940
|
|
1007
941
|
@property
|
1008
942
|
@pulumi.getter
|
1009
943
|
def schedulable(self) -> pulumi.Output[bool]:
|
1010
|
-
"""
|
1011
|
-
`(boolean)`
|
1012
|
-
"""
|
1013
944
|
return pulumi.get(self, "schedulable")
|
1014
945
|
|
1015
946
|
@property
|
@@ -1031,9 +962,6 @@ class CsiVolume(pulumi.CustomResource):
|
|
1031
962
|
@property
|
1032
963
|
@pulumi.getter
|
1033
964
|
def topologies(self) -> pulumi.Output[Sequence['outputs.CsiVolumeTopology']]:
|
1034
|
-
"""
|
1035
|
-
`(List of topologies)`
|
1036
|
-
"""
|
1037
965
|
return pulumi.get(self, "topologies")
|
1038
966
|
|
1039
967
|
@property
|