pulumi-nomad 2.1.0a1706307673__tar.gz → 2.2.0a1706747729__tar.gz
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-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/PKG-INFO +1 -1
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/acl_auth_method.py +64 -1
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/csi_volume.py +90 -84
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/csi_volume_registration.py +156 -82
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/job.py +82 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad.egg-info/PKG-INFO +1 -1
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pyproject.toml +1 -1
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/README.md +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/__init__.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/_inputs.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/_utilities.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/acl_binding_rule.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/acl_policy.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/acl_role.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/acl_token.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/config/__init__.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/config/__init__.pyi +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/config/outputs.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/config/vars.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/external_volume.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_acl_policies.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_acl_policy.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_acl_role.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_acl_roles.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_acl_token.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_acl_tokens.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_allocations.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_datacenters.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_deployments.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_job.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_job_parser.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_namespace.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_namespaces.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_node_pool.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_node_pools.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_plugin.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_plugins.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_regions.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_scaling_policies.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_scaling_policy.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_scheduler_policy.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_variable.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/get_volumes.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/namespace.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/node_pool.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/outputs.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/provider.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/pulumi-plugin.json +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/py.typed +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/quote_specification.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/scheduler_config.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/sentinel_policy.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/variable.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/volume.py +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad.egg-info/SOURCES.txt +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad.egg-info/dependency_links.txt +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad.egg-info/requires.txt +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad.egg-info/top_level.txt +0 -0
- {pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/setup.cfg +0 -0
{pulumi_nomad-2.1.0a1706307673 → pulumi_nomad-2.2.0a1706747729}/pulumi_nomad/acl_auth_method.py
RENAMED
@@ -21,7 +21,8 @@ class AclAuthMethodArgs:
|
|
21
21
|
token_locality: pulumi.Input[str],
|
22
22
|
type: pulumi.Input[str],
|
23
23
|
default: Optional[pulumi.Input[bool]] = None,
|
24
|
-
name: Optional[pulumi.Input[str]] = None
|
24
|
+
name: Optional[pulumi.Input[str]] = None,
|
25
|
+
token_name_format: Optional[pulumi.Input[str]] = None):
|
25
26
|
"""
|
26
27
|
The set of arguments for constructing a AclAuthMethod resource.
|
27
28
|
:param pulumi.Input['AclAuthMethodConfigArgs'] config: Configuration specific to the auth method provider.
|
@@ -35,6 +36,9 @@ class AclAuthMethodArgs:
|
|
35
36
|
:param pulumi.Input[bool] default: `(bool: false)` - Defines whether this ACL Auth Method is to be set
|
36
37
|
as default.
|
37
38
|
:param pulumi.Input[str] name: `(string: <required>)` - The identifier of the ACL Auth Method.
|
39
|
+
:param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
|
40
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
41
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
38
42
|
"""
|
39
43
|
pulumi.set(__self__, "config", config)
|
40
44
|
pulumi.set(__self__, "max_token_ttl", max_token_ttl)
|
@@ -44,6 +48,8 @@ class AclAuthMethodArgs:
|
|
44
48
|
pulumi.set(__self__, "default", default)
|
45
49
|
if name is not None:
|
46
50
|
pulumi.set(__self__, "name", name)
|
51
|
+
if token_name_format is not None:
|
52
|
+
pulumi.set(__self__, "token_name_format", token_name_format)
|
47
53
|
|
48
54
|
@property
|
49
55
|
@pulumi.getter
|
@@ -122,6 +128,20 @@ class AclAuthMethodArgs:
|
|
122
128
|
def name(self, value: Optional[pulumi.Input[str]]):
|
123
129
|
pulumi.set(self, "name", value)
|
124
130
|
|
131
|
+
@property
|
132
|
+
@pulumi.getter(name="tokenNameFormat")
|
133
|
+
def token_name_format(self) -> Optional[pulumi.Input[str]]:
|
134
|
+
"""
|
135
|
+
`(string: <optional>)` - Defines the token name format for the
|
136
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
137
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
138
|
+
"""
|
139
|
+
return pulumi.get(self, "token_name_format")
|
140
|
+
|
141
|
+
@token_name_format.setter
|
142
|
+
def token_name_format(self, value: Optional[pulumi.Input[str]]):
|
143
|
+
pulumi.set(self, "token_name_format", value)
|
144
|
+
|
125
145
|
|
126
146
|
@pulumi.input_type
|
127
147
|
class _AclAuthMethodState:
|
@@ -131,6 +151,7 @@ class _AclAuthMethodState:
|
|
131
151
|
max_token_ttl: Optional[pulumi.Input[str]] = None,
|
132
152
|
name: Optional[pulumi.Input[str]] = None,
|
133
153
|
token_locality: Optional[pulumi.Input[str]] = None,
|
154
|
+
token_name_format: Optional[pulumi.Input[str]] = None,
|
134
155
|
type: Optional[pulumi.Input[str]] = None):
|
135
156
|
"""
|
136
157
|
Input properties used for looking up and filtering AclAuthMethod resources.
|
@@ -143,6 +164,9 @@ class _AclAuthMethodState:
|
|
143
164
|
:param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
|
144
165
|
creates a local or global token when performing SSO login. This field must be
|
145
166
|
set to either `local` or `global`.
|
167
|
+
:param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
|
168
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
169
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
146
170
|
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Currently,
|
147
171
|
the only supported type is `OIDC`.
|
148
172
|
"""
|
@@ -156,6 +180,8 @@ class _AclAuthMethodState:
|
|
156
180
|
pulumi.set(__self__, "name", name)
|
157
181
|
if token_locality is not None:
|
158
182
|
pulumi.set(__self__, "token_locality", token_locality)
|
183
|
+
if token_name_format is not None:
|
184
|
+
pulumi.set(__self__, "token_name_format", token_name_format)
|
159
185
|
if type is not None:
|
160
186
|
pulumi.set(__self__, "type", type)
|
161
187
|
|
@@ -223,6 +249,20 @@ class _AclAuthMethodState:
|
|
223
249
|
def token_locality(self, value: Optional[pulumi.Input[str]]):
|
224
250
|
pulumi.set(self, "token_locality", value)
|
225
251
|
|
252
|
+
@property
|
253
|
+
@pulumi.getter(name="tokenNameFormat")
|
254
|
+
def token_name_format(self) -> Optional[pulumi.Input[str]]:
|
255
|
+
"""
|
256
|
+
`(string: <optional>)` - Defines the token name format for the
|
257
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
258
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
259
|
+
"""
|
260
|
+
return pulumi.get(self, "token_name_format")
|
261
|
+
|
262
|
+
@token_name_format.setter
|
263
|
+
def token_name_format(self, value: Optional[pulumi.Input[str]]):
|
264
|
+
pulumi.set(self, "token_name_format", value)
|
265
|
+
|
226
266
|
@property
|
227
267
|
@pulumi.getter
|
228
268
|
def type(self) -> Optional[pulumi.Input[str]]:
|
@@ -247,6 +287,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
247
287
|
max_token_ttl: Optional[pulumi.Input[str]] = None,
|
248
288
|
name: Optional[pulumi.Input[str]] = None,
|
249
289
|
token_locality: Optional[pulumi.Input[str]] = None,
|
290
|
+
token_name_format: Optional[pulumi.Input[str]] = None,
|
250
291
|
type: Optional[pulumi.Input[str]] = None,
|
251
292
|
__props__=None):
|
252
293
|
"""
|
@@ -264,6 +305,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
264
305
|
type="OIDC",
|
265
306
|
token_locality="global",
|
266
307
|
max_token_ttl="10m0s",
|
308
|
+
token_name_format="${auth_method_type}-${value.user}",
|
267
309
|
default=True,
|
268
310
|
config=nomad.AclAuthMethodConfigArgs(
|
269
311
|
oidc_discovery_url="https://uk.auth0.com/",
|
@@ -291,6 +333,9 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
291
333
|
:param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
|
292
334
|
creates a local or global token when performing SSO login. This field must be
|
293
335
|
set to either `local` or `global`.
|
336
|
+
:param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
|
337
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
338
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
294
339
|
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Currently,
|
295
340
|
the only supported type is `OIDC`.
|
296
341
|
"""
|
@@ -315,6 +360,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
315
360
|
type="OIDC",
|
316
361
|
token_locality="global",
|
317
362
|
max_token_ttl="10m0s",
|
363
|
+
token_name_format="${auth_method_type}-${value.user}",
|
318
364
|
default=True,
|
319
365
|
config=nomad.AclAuthMethodConfigArgs(
|
320
366
|
oidc_discovery_url="https://uk.auth0.com/",
|
@@ -351,6 +397,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
351
397
|
max_token_ttl: Optional[pulumi.Input[str]] = None,
|
352
398
|
name: Optional[pulumi.Input[str]] = None,
|
353
399
|
token_locality: Optional[pulumi.Input[str]] = None,
|
400
|
+
token_name_format: Optional[pulumi.Input[str]] = None,
|
354
401
|
type: Optional[pulumi.Input[str]] = None,
|
355
402
|
__props__=None):
|
356
403
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -372,6 +419,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
372
419
|
if token_locality is None and not opts.urn:
|
373
420
|
raise TypeError("Missing required property 'token_locality'")
|
374
421
|
__props__.__dict__["token_locality"] = token_locality
|
422
|
+
__props__.__dict__["token_name_format"] = token_name_format
|
375
423
|
if type is None and not opts.urn:
|
376
424
|
raise TypeError("Missing required property 'type'")
|
377
425
|
__props__.__dict__["type"] = type
|
@@ -390,6 +438,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
390
438
|
max_token_ttl: Optional[pulumi.Input[str]] = None,
|
391
439
|
name: Optional[pulumi.Input[str]] = None,
|
392
440
|
token_locality: Optional[pulumi.Input[str]] = None,
|
441
|
+
token_name_format: Optional[pulumi.Input[str]] = None,
|
393
442
|
type: Optional[pulumi.Input[str]] = None) -> 'AclAuthMethod':
|
394
443
|
"""
|
395
444
|
Get an existing AclAuthMethod resource's state with the given name, id, and optional extra
|
@@ -407,6 +456,9 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
407
456
|
:param pulumi.Input[str] token_locality: `(string: <required>)` - Defines whether the ACL Auth Method
|
408
457
|
creates a local or global token when performing SSO login. This field must be
|
409
458
|
set to either `local` or `global`.
|
459
|
+
:param pulumi.Input[str] token_name_format: `(string: <optional>)` - Defines the token name format for the
|
460
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
461
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
410
462
|
:param pulumi.Input[str] type: `(string: <required>)` - ACL Auth Method SSO workflow type. Currently,
|
411
463
|
the only supported type is `OIDC`.
|
412
464
|
"""
|
@@ -419,6 +471,7 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
419
471
|
__props__.__dict__["max_token_ttl"] = max_token_ttl
|
420
472
|
__props__.__dict__["name"] = name
|
421
473
|
__props__.__dict__["token_locality"] = token_locality
|
474
|
+
__props__.__dict__["token_name_format"] = token_name_format
|
422
475
|
__props__.__dict__["type"] = type
|
423
476
|
return AclAuthMethod(resource_name, opts=opts, __props__=__props__)
|
424
477
|
|
@@ -466,6 +519,16 @@ class AclAuthMethod(pulumi.CustomResource):
|
|
466
519
|
"""
|
467
520
|
return pulumi.get(self, "token_locality")
|
468
521
|
|
522
|
+
@property
|
523
|
+
@pulumi.getter(name="tokenNameFormat")
|
524
|
+
def token_name_format(self) -> pulumi.Output[Optional[str]]:
|
525
|
+
"""
|
526
|
+
`(string: <optional>)` - Defines the token name format for the
|
527
|
+
generated tokens This can be lightly templated using HIL '${foo}' syntax.
|
528
|
+
Defaults to `${auth_method_type}-${auth_method_name}`.
|
529
|
+
"""
|
530
|
+
return pulumi.get(self, "token_name_format")
|
531
|
+
|
469
532
|
@property
|
470
533
|
@pulumi.getter
|
471
534
|
def type(self) -> pulumi.Output[str]:
|
@@ -230,12 +230,16 @@ class CsiVolumeArgs:
|
|
230
230
|
class _CsiVolumeState:
|
231
231
|
def __init__(__self__, *,
|
232
232
|
capabilities: Optional[pulumi.Input[Sequence[pulumi.Input['CsiVolumeCapabilityArgs']]]] = None,
|
233
|
+
capacity: Optional[pulumi.Input[int]] = None,
|
233
234
|
capacity_max: Optional[pulumi.Input[str]] = None,
|
235
|
+
capacity_max_bytes: Optional[pulumi.Input[int]] = None,
|
234
236
|
capacity_min: Optional[pulumi.Input[str]] = None,
|
237
|
+
capacity_min_bytes: Optional[pulumi.Input[int]] = None,
|
235
238
|
clone_id: Optional[pulumi.Input[str]] = None,
|
236
239
|
controller_required: Optional[pulumi.Input[bool]] = None,
|
237
240
|
controllers_expected: Optional[pulumi.Input[int]] = None,
|
238
241
|
controllers_healthy: Optional[pulumi.Input[int]] = None,
|
242
|
+
external_id: Optional[pulumi.Input[str]] = None,
|
239
243
|
mount_options: Optional[pulumi.Input['CsiVolumeMountOptionsArgs']] = None,
|
240
244
|
name: Optional[pulumi.Input[str]] = None,
|
241
245
|
namespace: Optional[pulumi.Input[str]] = None,
|
@@ -260,6 +264,7 @@ class _CsiVolumeState:
|
|
260
264
|
:param pulumi.Input[bool] controller_required: `(boolean)`
|
261
265
|
:param pulumi.Input[int] controllers_expected: `(integer)`
|
262
266
|
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
267
|
+
:param pulumi.Input[str] external_id: The ID of the physical volume from the storage provider.
|
263
268
|
:param pulumi.Input['CsiVolumeMountOptionsArgs'] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
264
269
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
265
270
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
@@ -278,10 +283,16 @@ class _CsiVolumeState:
|
|
278
283
|
"""
|
279
284
|
if capabilities is not None:
|
280
285
|
pulumi.set(__self__, "capabilities", capabilities)
|
286
|
+
if capacity is not None:
|
287
|
+
pulumi.set(__self__, "capacity", capacity)
|
281
288
|
if capacity_max is not None:
|
282
289
|
pulumi.set(__self__, "capacity_max", capacity_max)
|
290
|
+
if capacity_max_bytes is not None:
|
291
|
+
pulumi.set(__self__, "capacity_max_bytes", capacity_max_bytes)
|
283
292
|
if capacity_min is not None:
|
284
293
|
pulumi.set(__self__, "capacity_min", capacity_min)
|
294
|
+
if capacity_min_bytes is not None:
|
295
|
+
pulumi.set(__self__, "capacity_min_bytes", capacity_min_bytes)
|
285
296
|
if clone_id is not None:
|
286
297
|
pulumi.set(__self__, "clone_id", clone_id)
|
287
298
|
if controller_required is not None:
|
@@ -290,6 +301,8 @@ class _CsiVolumeState:
|
|
290
301
|
pulumi.set(__self__, "controllers_expected", controllers_expected)
|
291
302
|
if controllers_healthy is not None:
|
292
303
|
pulumi.set(__self__, "controllers_healthy", controllers_healthy)
|
304
|
+
if external_id is not None:
|
305
|
+
pulumi.set(__self__, "external_id", external_id)
|
293
306
|
if mount_options is not None:
|
294
307
|
pulumi.set(__self__, "mount_options", mount_options)
|
295
308
|
if name is not None:
|
@@ -333,6 +346,15 @@ class _CsiVolumeState:
|
|
333
346
|
def capabilities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CsiVolumeCapabilityArgs']]]]):
|
334
347
|
pulumi.set(self, "capabilities", value)
|
335
348
|
|
349
|
+
@property
|
350
|
+
@pulumi.getter
|
351
|
+
def capacity(self) -> Optional[pulumi.Input[int]]:
|
352
|
+
return pulumi.get(self, "capacity")
|
353
|
+
|
354
|
+
@capacity.setter
|
355
|
+
def capacity(self, value: Optional[pulumi.Input[int]]):
|
356
|
+
pulumi.set(self, "capacity", value)
|
357
|
+
|
336
358
|
@property
|
337
359
|
@pulumi.getter(name="capacityMax")
|
338
360
|
def capacity_max(self) -> Optional[pulumi.Input[str]]:
|
@@ -345,6 +367,15 @@ class _CsiVolumeState:
|
|
345
367
|
def capacity_max(self, value: Optional[pulumi.Input[str]]):
|
346
368
|
pulumi.set(self, "capacity_max", value)
|
347
369
|
|
370
|
+
@property
|
371
|
+
@pulumi.getter(name="capacityMaxBytes")
|
372
|
+
def capacity_max_bytes(self) -> Optional[pulumi.Input[int]]:
|
373
|
+
return pulumi.get(self, "capacity_max_bytes")
|
374
|
+
|
375
|
+
@capacity_max_bytes.setter
|
376
|
+
def capacity_max_bytes(self, value: Optional[pulumi.Input[int]]):
|
377
|
+
pulumi.set(self, "capacity_max_bytes", value)
|
378
|
+
|
348
379
|
@property
|
349
380
|
@pulumi.getter(name="capacityMin")
|
350
381
|
def capacity_min(self) -> Optional[pulumi.Input[str]]:
|
@@ -357,6 +388,15 @@ class _CsiVolumeState:
|
|
357
388
|
def capacity_min(self, value: Optional[pulumi.Input[str]]):
|
358
389
|
pulumi.set(self, "capacity_min", value)
|
359
390
|
|
391
|
+
@property
|
392
|
+
@pulumi.getter(name="capacityMinBytes")
|
393
|
+
def capacity_min_bytes(self) -> Optional[pulumi.Input[int]]:
|
394
|
+
return pulumi.get(self, "capacity_min_bytes")
|
395
|
+
|
396
|
+
@capacity_min_bytes.setter
|
397
|
+
def capacity_min_bytes(self, value: Optional[pulumi.Input[int]]):
|
398
|
+
pulumi.set(self, "capacity_min_bytes", value)
|
399
|
+
|
360
400
|
@property
|
361
401
|
@pulumi.getter(name="cloneId")
|
362
402
|
def clone_id(self) -> Optional[pulumi.Input[str]]:
|
@@ -405,6 +445,18 @@ class _CsiVolumeState:
|
|
405
445
|
def controllers_healthy(self, value: Optional[pulumi.Input[int]]):
|
406
446
|
pulumi.set(self, "controllers_healthy", value)
|
407
447
|
|
448
|
+
@property
|
449
|
+
@pulumi.getter(name="externalId")
|
450
|
+
def external_id(self) -> Optional[pulumi.Input[str]]:
|
451
|
+
"""
|
452
|
+
The ID of the physical volume from the storage provider.
|
453
|
+
"""
|
454
|
+
return pulumi.get(self, "external_id")
|
455
|
+
|
456
|
+
@external_id.setter
|
457
|
+
def external_id(self, value: Optional[pulumi.Input[str]]):
|
458
|
+
pulumi.set(self, "external_id", value)
|
459
|
+
|
408
460
|
@property
|
409
461
|
@pulumi.getter(name="mountOptions")
|
410
462
|
def mount_options(self) -> Optional[pulumi.Input['CsiVolumeMountOptionsArgs']]:
|
@@ -606,48 +658,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
606
658
|
volume_id: Optional[pulumi.Input[str]] = None,
|
607
659
|
__props__=None):
|
608
660
|
"""
|
609
|
-
|
610
|
-
|
611
|
-
Creating a volume:
|
612
|
-
|
613
|
-
```python
|
614
|
-
import pulumi
|
615
|
-
import pulumi_nomad as nomad
|
616
|
-
|
617
|
-
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
618
|
-
wait_for_healthy=True)
|
619
|
-
mysql_volume = nomad.CsiVolume("mysqlVolume",
|
620
|
-
plugin_id="aws-ebs0",
|
621
|
-
volume_id="mysql_volume",
|
622
|
-
capacity_min="10GiB",
|
623
|
-
capacity_max="20GiB",
|
624
|
-
capabilities=[nomad.CsiVolumeCapabilityArgs(
|
625
|
-
access_mode="single-node-writer",
|
626
|
-
attachment_mode="file-system",
|
627
|
-
)],
|
628
|
-
mount_options=nomad.CsiVolumeMountOptionsArgs(
|
629
|
-
fs_type="ext4",
|
630
|
-
),
|
631
|
-
topology_request=nomad.CsiVolumeTopologyRequestArgs(
|
632
|
-
required=nomad.CsiVolumeTopologyRequestRequiredArgs(
|
633
|
-
topologies=[
|
634
|
-
nomad.CsiVolumeTopologyRequestRequiredTopologyArgs(
|
635
|
-
segments={
|
636
|
-
"rack": "R1",
|
637
|
-
"zone": "us-east-1a",
|
638
|
-
},
|
639
|
-
),
|
640
|
-
nomad.CsiVolumeTopologyRequestRequiredTopologyArgs(
|
641
|
-
segments={
|
642
|
-
"rack": "R2",
|
643
|
-
},
|
644
|
-
),
|
645
|
-
],
|
646
|
-
),
|
647
|
-
),
|
648
|
-
opts=pulumi.ResourceOptions(depends_on=[ebs]))
|
649
|
-
```
|
650
|
-
|
661
|
+
Create a CsiVolume resource with the given unique name, props, and options.
|
651
662
|
:param str resource_name: The name of the resource.
|
652
663
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
653
664
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CsiVolumeCapabilityArgs']]]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
|
@@ -671,48 +682,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
671
682
|
args: CsiVolumeArgs,
|
672
683
|
opts: Optional[pulumi.ResourceOptions] = None):
|
673
684
|
"""
|
674
|
-
|
675
|
-
|
676
|
-
Creating a volume:
|
677
|
-
|
678
|
-
```python
|
679
|
-
import pulumi
|
680
|
-
import pulumi_nomad as nomad
|
681
|
-
|
682
|
-
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
683
|
-
wait_for_healthy=True)
|
684
|
-
mysql_volume = nomad.CsiVolume("mysqlVolume",
|
685
|
-
plugin_id="aws-ebs0",
|
686
|
-
volume_id="mysql_volume",
|
687
|
-
capacity_min="10GiB",
|
688
|
-
capacity_max="20GiB",
|
689
|
-
capabilities=[nomad.CsiVolumeCapabilityArgs(
|
690
|
-
access_mode="single-node-writer",
|
691
|
-
attachment_mode="file-system",
|
692
|
-
)],
|
693
|
-
mount_options=nomad.CsiVolumeMountOptionsArgs(
|
694
|
-
fs_type="ext4",
|
695
|
-
),
|
696
|
-
topology_request=nomad.CsiVolumeTopologyRequestArgs(
|
697
|
-
required=nomad.CsiVolumeTopologyRequestRequiredArgs(
|
698
|
-
topologies=[
|
699
|
-
nomad.CsiVolumeTopologyRequestRequiredTopologyArgs(
|
700
|
-
segments={
|
701
|
-
"rack": "R1",
|
702
|
-
"zone": "us-east-1a",
|
703
|
-
},
|
704
|
-
),
|
705
|
-
nomad.CsiVolumeTopologyRequestRequiredTopologyArgs(
|
706
|
-
segments={
|
707
|
-
"rack": "R2",
|
708
|
-
},
|
709
|
-
),
|
710
|
-
],
|
711
|
-
),
|
712
|
-
),
|
713
|
-
opts=pulumi.ResourceOptions(depends_on=[ebs]))
|
714
|
-
```
|
715
|
-
|
685
|
+
Create a CsiVolume resource with the given unique name, props, and options.
|
716
686
|
:param str resource_name: The name of the resource.
|
717
687
|
:param CsiVolumeArgs args: The arguments to use to populate this resource's properties.
|
718
688
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -769,9 +739,13 @@ class CsiVolume(pulumi.CustomResource):
|
|
769
739
|
if volume_id is None and not opts.urn:
|
770
740
|
raise TypeError("Missing required property 'volume_id'")
|
771
741
|
__props__.__dict__["volume_id"] = volume_id
|
742
|
+
__props__.__dict__["capacity"] = None
|
743
|
+
__props__.__dict__["capacity_max_bytes"] = None
|
744
|
+
__props__.__dict__["capacity_min_bytes"] = None
|
772
745
|
__props__.__dict__["controller_required"] = None
|
773
746
|
__props__.__dict__["controllers_expected"] = None
|
774
747
|
__props__.__dict__["controllers_healthy"] = None
|
748
|
+
__props__.__dict__["external_id"] = None
|
775
749
|
__props__.__dict__["nodes_expected"] = None
|
776
750
|
__props__.__dict__["nodes_healthy"] = None
|
777
751
|
__props__.__dict__["plugin_provider"] = None
|
@@ -791,12 +765,16 @@ class CsiVolume(pulumi.CustomResource):
|
|
791
765
|
id: pulumi.Input[str],
|
792
766
|
opts: Optional[pulumi.ResourceOptions] = None,
|
793
767
|
capabilities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CsiVolumeCapabilityArgs']]]]] = None,
|
768
|
+
capacity: Optional[pulumi.Input[int]] = None,
|
794
769
|
capacity_max: Optional[pulumi.Input[str]] = None,
|
770
|
+
capacity_max_bytes: Optional[pulumi.Input[int]] = None,
|
795
771
|
capacity_min: Optional[pulumi.Input[str]] = None,
|
772
|
+
capacity_min_bytes: Optional[pulumi.Input[int]] = None,
|
796
773
|
clone_id: Optional[pulumi.Input[str]] = None,
|
797
774
|
controller_required: Optional[pulumi.Input[bool]] = None,
|
798
775
|
controllers_expected: Optional[pulumi.Input[int]] = None,
|
799
776
|
controllers_healthy: Optional[pulumi.Input[int]] = None,
|
777
|
+
external_id: Optional[pulumi.Input[str]] = None,
|
800
778
|
mount_options: Optional[pulumi.Input[pulumi.InputType['CsiVolumeMountOptionsArgs']]] = None,
|
801
779
|
name: Optional[pulumi.Input[str]] = None,
|
802
780
|
namespace: Optional[pulumi.Input[str]] = None,
|
@@ -826,6 +804,7 @@ class CsiVolume(pulumi.CustomResource):
|
|
826
804
|
:param pulumi.Input[bool] controller_required: `(boolean)`
|
827
805
|
:param pulumi.Input[int] controllers_expected: `(integer)`
|
828
806
|
:param pulumi.Input[int] controllers_healthy: `(integer)`
|
807
|
+
:param pulumi.Input[str] external_id: The ID of the physical volume from the storage provider.
|
829
808
|
:param pulumi.Input[pulumi.InputType['CsiVolumeMountOptionsArgs']] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
|
830
809
|
:param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
|
831
810
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
|
@@ -847,12 +826,16 @@ class CsiVolume(pulumi.CustomResource):
|
|
847
826
|
__props__ = _CsiVolumeState.__new__(_CsiVolumeState)
|
848
827
|
|
849
828
|
__props__.__dict__["capabilities"] = capabilities
|
829
|
+
__props__.__dict__["capacity"] = capacity
|
850
830
|
__props__.__dict__["capacity_max"] = capacity_max
|
831
|
+
__props__.__dict__["capacity_max_bytes"] = capacity_max_bytes
|
851
832
|
__props__.__dict__["capacity_min"] = capacity_min
|
833
|
+
__props__.__dict__["capacity_min_bytes"] = capacity_min_bytes
|
852
834
|
__props__.__dict__["clone_id"] = clone_id
|
853
835
|
__props__.__dict__["controller_required"] = controller_required
|
854
836
|
__props__.__dict__["controllers_expected"] = controllers_expected
|
855
837
|
__props__.__dict__["controllers_healthy"] = controllers_healthy
|
838
|
+
__props__.__dict__["external_id"] = external_id
|
856
839
|
__props__.__dict__["mount_options"] = mount_options
|
857
840
|
__props__.__dict__["name"] = name
|
858
841
|
__props__.__dict__["namespace"] = namespace
|
@@ -878,6 +861,11 @@ class CsiVolume(pulumi.CustomResource):
|
|
878
861
|
"""
|
879
862
|
return pulumi.get(self, "capabilities")
|
880
863
|
|
864
|
+
@property
|
865
|
+
@pulumi.getter
|
866
|
+
def capacity(self) -> pulumi.Output[int]:
|
867
|
+
return pulumi.get(self, "capacity")
|
868
|
+
|
881
869
|
@property
|
882
870
|
@pulumi.getter(name="capacityMax")
|
883
871
|
def capacity_max(self) -> pulumi.Output[Optional[str]]:
|
@@ -886,6 +874,11 @@ class CsiVolume(pulumi.CustomResource):
|
|
886
874
|
"""
|
887
875
|
return pulumi.get(self, "capacity_max")
|
888
876
|
|
877
|
+
@property
|
878
|
+
@pulumi.getter(name="capacityMaxBytes")
|
879
|
+
def capacity_max_bytes(self) -> pulumi.Output[int]:
|
880
|
+
return pulumi.get(self, "capacity_max_bytes")
|
881
|
+
|
889
882
|
@property
|
890
883
|
@pulumi.getter(name="capacityMin")
|
891
884
|
def capacity_min(self) -> pulumi.Output[Optional[str]]:
|
@@ -894,6 +887,11 @@ class CsiVolume(pulumi.CustomResource):
|
|
894
887
|
"""
|
895
888
|
return pulumi.get(self, "capacity_min")
|
896
889
|
|
890
|
+
@property
|
891
|
+
@pulumi.getter(name="capacityMinBytes")
|
892
|
+
def capacity_min_bytes(self) -> pulumi.Output[int]:
|
893
|
+
return pulumi.get(self, "capacity_min_bytes")
|
894
|
+
|
897
895
|
@property
|
898
896
|
@pulumi.getter(name="cloneId")
|
899
897
|
def clone_id(self) -> pulumi.Output[Optional[str]]:
|
@@ -926,6 +924,14 @@ class CsiVolume(pulumi.CustomResource):
|
|
926
924
|
"""
|
927
925
|
return pulumi.get(self, "controllers_healthy")
|
928
926
|
|
927
|
+
@property
|
928
|
+
@pulumi.getter(name="externalId")
|
929
|
+
def external_id(self) -> pulumi.Output[str]:
|
930
|
+
"""
|
931
|
+
The ID of the physical volume from the storage provider.
|
932
|
+
"""
|
933
|
+
return pulumi.get(self, "external_id")
|
934
|
+
|
929
935
|
@property
|
930
936
|
@pulumi.getter(name="mountOptions")
|
931
937
|
def mount_options(self) -> pulumi.Output[Optional['outputs.CsiVolumeMountOptions']]:
|