pulumi-nomad 2.4.3a1741997515__py3-none-any.whl → 2.5.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 +20 -0
- pulumi_nomad/_inputs.py +1056 -378
- pulumi_nomad/acl_auth_method.py +85 -84
- pulumi_nomad/acl_binding_rule.py +71 -70
- pulumi_nomad/acl_policy.py +57 -49
- pulumi_nomad/acl_role.py +29 -28
- pulumi_nomad/acl_token.py +99 -98
- pulumi_nomad/config/__init__.py +1 -0
- pulumi_nomad/config/__init__.pyi +1 -10
- pulumi_nomad/config/outputs.py +7 -6
- pulumi_nomad/config/vars.py +1 -14
- pulumi_nomad/csi_volume.py +231 -202
- pulumi_nomad/csi_volume_registration.py +210 -209
- pulumi_nomad/dynamic_host_volume.py +1005 -0
- pulumi_nomad/dynamic_host_volume_registration.py +740 -0
- pulumi_nomad/external_volume.py +195 -194
- pulumi_nomad/get_acl_policies.py +7 -6
- pulumi_nomad/get_acl_policy.py +9 -8
- pulumi_nomad/get_acl_role.py +8 -7
- pulumi_nomad/get_acl_roles.py +7 -6
- pulumi_nomad/get_acl_token.py +15 -14
- pulumi_nomad/get_acl_tokens.py +7 -6
- pulumi_nomad/get_allocations.py +17 -16
- pulumi_nomad/get_datacenters.py +13 -12
- pulumi_nomad/get_deployments.py +3 -2
- pulumi_nomad/get_dynamic_host_volume.py +353 -0
- pulumi_nomad/get_job.py +28 -27
- pulumi_nomad/get_job_parser.py +13 -12
- pulumi_nomad/get_jwks.py +3 -2
- pulumi_nomad/get_namespace.py +10 -9
- pulumi_nomad/get_namespaces.py +3 -2
- pulumi_nomad/get_node_pool.py +9 -8
- pulumi_nomad/get_node_pools.py +12 -11
- pulumi_nomad/get_plugin.py +24 -23
- pulumi_nomad/get_plugins.py +6 -5
- pulumi_nomad/get_regions.py +3 -2
- pulumi_nomad/get_scaling_policies.py +12 -11
- pulumi_nomad/get_scaling_policy.py +12 -11
- pulumi_nomad/get_scheduler_policy.py +5 -4
- pulumi_nomad/get_variable.py +13 -12
- pulumi_nomad/get_volumes.py +23 -22
- pulumi_nomad/job.py +193 -302
- pulumi_nomad/namespace.py +57 -56
- pulumi_nomad/node_pool.py +43 -42
- pulumi_nomad/outputs.py +1030 -451
- pulumi_nomad/provider.py +95 -152
- pulumi_nomad/pulumi-plugin.json +1 -1
- pulumi_nomad/quote_specification.py +29 -28
- pulumi_nomad/scheduler_config.py +43 -42
- pulumi_nomad/sentinel_policy.py +71 -70
- pulumi_nomad/variable.py +43 -42
- pulumi_nomad/volume.py +209 -208
- {pulumi_nomad-2.4.3a1741997515.dist-info → pulumi_nomad-2.5.0.dist-info}/METADATA +2 -2
- pulumi_nomad-2.5.0.dist-info/RECORD +58 -0
- {pulumi_nomad-2.4.3a1741997515.dist-info → pulumi_nomad-2.5.0.dist-info}/WHEEL +1 -1
- pulumi_nomad-2.4.3a1741997515.dist-info/RECORD +0 -55
- {pulumi_nomad-2.4.3a1741997515.dist-info → pulumi_nomad-2.5.0.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -42,7 +43,7 @@ class GetSchedulerPolicyResult:
|
|
42
43
|
|
43
44
|
@property
|
44
45
|
@pulumi.getter
|
45
|
-
def id(self) -> str:
|
46
|
+
def id(self) -> builtins.str:
|
46
47
|
"""
|
47
48
|
The provider-assigned unique ID for this managed resource.
|
48
49
|
"""
|
@@ -50,7 +51,7 @@ class GetSchedulerPolicyResult:
|
|
50
51
|
|
51
52
|
@property
|
52
53
|
@pulumi.getter(name="memoryOversubscriptionEnabled")
|
53
|
-
def memory_oversubscription_enabled(self) -> bool:
|
54
|
+
def memory_oversubscription_enabled(self) -> builtins.bool:
|
54
55
|
"""
|
55
56
|
`(bool: false)` - When `true`, tasks may exceed their reserved memory limit.
|
56
57
|
"""
|
@@ -58,7 +59,7 @@ class GetSchedulerPolicyResult:
|
|
58
59
|
|
59
60
|
@property
|
60
61
|
@pulumi.getter(name="preemptionConfig")
|
61
|
-
def preemption_config(self) -> Mapping[str, bool]:
|
62
|
+
def preemption_config(self) -> Mapping[str, builtins.bool]:
|
62
63
|
"""
|
63
64
|
`(map[string]bool)` - Options to enable preemption for various schedulers.
|
64
65
|
"""
|
@@ -66,7 +67,7 @@ class GetSchedulerPolicyResult:
|
|
66
67
|
|
67
68
|
@property
|
68
69
|
@pulumi.getter(name="schedulerAlgorithm")
|
69
|
-
def scheduler_algorithm(self) -> str:
|
70
|
+
def scheduler_algorithm(self) -> builtins.str:
|
70
71
|
"""
|
71
72
|
`(string)` - Specifies whether scheduler binpacks or spreads allocations on available nodes.
|
72
73
|
"""
|
pulumi_nomad/get_variable.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -42,7 +43,7 @@ class GetVariableResult:
|
|
42
43
|
|
43
44
|
@property
|
44
45
|
@pulumi.getter
|
45
|
-
def id(self) -> str:
|
46
|
+
def id(self) -> builtins.str:
|
46
47
|
"""
|
47
48
|
The provider-assigned unique ID for this managed resource.
|
48
49
|
"""
|
@@ -50,7 +51,7 @@ class GetVariableResult:
|
|
50
51
|
|
51
52
|
@property
|
52
53
|
@pulumi.getter
|
53
|
-
def items(self) -> Mapping[str, str]:
|
54
|
+
def items(self) -> Mapping[str, builtins.str]:
|
54
55
|
"""
|
55
56
|
`(map[string]string)` - Map of items in the variable.
|
56
57
|
"""
|
@@ -58,7 +59,7 @@ class GetVariableResult:
|
|
58
59
|
|
59
60
|
@property
|
60
61
|
@pulumi.getter
|
61
|
-
def namespace(self) -> Optional[str]:
|
62
|
+
def namespace(self) -> Optional[builtins.str]:
|
62
63
|
"""
|
63
64
|
`(string)` - The namespace in which the variable exists.
|
64
65
|
"""
|
@@ -66,7 +67,7 @@ class GetVariableResult:
|
|
66
67
|
|
67
68
|
@property
|
68
69
|
@pulumi.getter
|
69
|
-
def path(self) -> str:
|
70
|
+
def path(self) -> builtins.str:
|
70
71
|
"""
|
71
72
|
`(string)` - The path at which the variable exists.
|
72
73
|
"""
|
@@ -85,8 +86,8 @@ class AwaitableGetVariableResult(GetVariableResult):
|
|
85
86
|
path=self.path)
|
86
87
|
|
87
88
|
|
88
|
-
def get_variable(namespace: Optional[str] = None,
|
89
|
-
path: Optional[str] = None,
|
89
|
+
def get_variable(namespace: Optional[builtins.str] = None,
|
90
|
+
path: Optional[builtins.str] = None,
|
90
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVariableResult:
|
91
92
|
"""
|
92
93
|
## Example Usage
|
@@ -99,8 +100,8 @@ def get_variable(namespace: Optional[str] = None,
|
|
99
100
|
```
|
100
101
|
|
101
102
|
|
102
|
-
:param str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
103
|
-
:param str path: `(string)` - Path to the existing variable.
|
103
|
+
:param builtins.str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
104
|
+
:param builtins.str path: `(string)` - Path to the existing variable.
|
104
105
|
"""
|
105
106
|
__args__ = dict()
|
106
107
|
__args__['namespace'] = namespace
|
@@ -113,8 +114,8 @@ def get_variable(namespace: Optional[str] = None,
|
|
113
114
|
items=pulumi.get(__ret__, 'items'),
|
114
115
|
namespace=pulumi.get(__ret__, 'namespace'),
|
115
116
|
path=pulumi.get(__ret__, 'path'))
|
116
|
-
def get_variable_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
117
|
-
path: Optional[pulumi.Input[str]] = None,
|
117
|
+
def get_variable_output(namespace: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
118
|
+
path: Optional[pulumi.Input[builtins.str]] = None,
|
118
119
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVariableResult]:
|
119
120
|
"""
|
120
121
|
## Example Usage
|
@@ -127,8 +128,8 @@ def get_variable_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
127
128
|
```
|
128
129
|
|
129
130
|
|
130
|
-
:param str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
131
|
-
:param str path: `(string)` - Path to the existing variable.
|
131
|
+
:param builtins.str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
132
|
+
:param builtins.str path: `(string)` - Path to the existing variable.
|
132
133
|
"""
|
133
134
|
__args__ = dict()
|
134
135
|
__args__['namespace'] = namespace
|
pulumi_nomad/get_volumes.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -48,7 +49,7 @@ class GetVolumesResult:
|
|
48
49
|
|
49
50
|
@property
|
50
51
|
@pulumi.getter
|
51
|
-
def id(self) -> str:
|
52
|
+
def id(self) -> builtins.str:
|
52
53
|
"""
|
53
54
|
The provider-assigned unique ID for this managed resource.
|
54
55
|
"""
|
@@ -56,7 +57,7 @@ class GetVolumesResult:
|
|
56
57
|
|
57
58
|
@property
|
58
59
|
@pulumi.getter
|
59
|
-
def namespace(self) -> Optional[str]:
|
60
|
+
def namespace(self) -> Optional[builtins.str]:
|
60
61
|
"""
|
61
62
|
`string` Volume namespace.
|
62
63
|
"""
|
@@ -64,22 +65,22 @@ class GetVolumesResult:
|
|
64
65
|
|
65
66
|
@property
|
66
67
|
@pulumi.getter(name="nodeId")
|
67
|
-
def node_id(self) -> Optional[str]:
|
68
|
+
def node_id(self) -> Optional[builtins.str]:
|
68
69
|
return pulumi.get(self, "node_id")
|
69
70
|
|
70
71
|
@property
|
71
72
|
@pulumi.getter(name="pluginId")
|
72
|
-
def plugin_id(self) -> Optional[str]:
|
73
|
+
def plugin_id(self) -> Optional[builtins.str]:
|
73
74
|
return pulumi.get(self, "plugin_id")
|
74
75
|
|
75
76
|
@property
|
76
77
|
@pulumi.getter
|
77
|
-
def type(self) -> Optional[str]:
|
78
|
+
def type(self) -> Optional[builtins.str]:
|
78
79
|
return pulumi.get(self, "type")
|
79
80
|
|
80
81
|
@property
|
81
82
|
@pulumi.getter
|
82
|
-
def volumes(self) -> Sequence[Mapping[str, str]]:
|
83
|
+
def volumes(self) -> Sequence[Mapping[str, builtins.str]]:
|
83
84
|
"""
|
84
85
|
`list of maps` a list of volumes in the cluster.
|
85
86
|
"""
|
@@ -100,10 +101,10 @@ class AwaitableGetVolumesResult(GetVolumesResult):
|
|
100
101
|
volumes=self.volumes)
|
101
102
|
|
102
103
|
|
103
|
-
def get_volumes(namespace: Optional[str] = None,
|
104
|
-
node_id: Optional[str] = None,
|
105
|
-
plugin_id: Optional[str] = None,
|
106
|
-
type: Optional[str] = None,
|
104
|
+
def get_volumes(namespace: Optional[builtins.str] = None,
|
105
|
+
node_id: Optional[builtins.str] = None,
|
106
|
+
plugin_id: Optional[builtins.str] = None,
|
107
|
+
type: Optional[builtins.str] = None,
|
107
108
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVolumesResult:
|
108
109
|
"""
|
109
110
|
Retrieve a list of volumes in Nomad.
|
@@ -118,10 +119,10 @@ def get_volumes(namespace: Optional[str] = None,
|
|
118
119
|
```
|
119
120
|
|
120
121
|
|
121
|
-
:param str namespace: `(string: "default")` Nomad namespace.
|
122
|
-
:param str node_id: `(string: optional)` Volume node filter.
|
123
|
-
:param str plugin_id: `(string: optional)` Plugin ID filter.
|
124
|
-
:param str type: `(string: "csi")` Volume type (
|
122
|
+
:param builtins.str namespace: `(string: "default")` Nomad namespace.
|
123
|
+
:param builtins.str node_id: `(string: optional)` Volume node filter.
|
124
|
+
:param builtins.str plugin_id: `(string: optional)` Plugin ID filter.
|
125
|
+
:param builtins.str type: `(string: "csi")` Volume type (one of `csi` or `host`)
|
125
126
|
"""
|
126
127
|
__args__ = dict()
|
127
128
|
__args__['namespace'] = namespace
|
@@ -138,10 +139,10 @@ def get_volumes(namespace: Optional[str] = None,
|
|
138
139
|
plugin_id=pulumi.get(__ret__, 'plugin_id'),
|
139
140
|
type=pulumi.get(__ret__, 'type'),
|
140
141
|
volumes=pulumi.get(__ret__, 'volumes'))
|
141
|
-
def get_volumes_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
142
|
-
node_id: Optional[pulumi.Input[Optional[str]]] = None,
|
143
|
-
plugin_id: Optional[pulumi.Input[Optional[str]]] = None,
|
144
|
-
type: Optional[pulumi.Input[Optional[str]]] = None,
|
142
|
+
def get_volumes_output(namespace: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
143
|
+
node_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
144
|
+
plugin_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
145
|
+
type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
145
146
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVolumesResult]:
|
146
147
|
"""
|
147
148
|
Retrieve a list of volumes in Nomad.
|
@@ -156,10 +157,10 @@ def get_volumes_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
157
|
```
|
157
158
|
|
158
159
|
|
159
|
-
:param str namespace: `(string: "default")` Nomad namespace.
|
160
|
-
:param str node_id: `(string: optional)` Volume node filter.
|
161
|
-
:param str plugin_id: `(string: optional)` Plugin ID filter.
|
162
|
-
:param str type: `(string: "csi")` Volume type (
|
160
|
+
:param builtins.str namespace: `(string: "default")` Nomad namespace.
|
161
|
+
:param builtins.str node_id: `(string: optional)` Volume node filter.
|
162
|
+
:param builtins.str plugin_id: `(string: optional)` Plugin ID filter.
|
163
|
+
:param builtins.str type: `(string: "csi")` Volume type (one of `csi` or `host`)
|
163
164
|
"""
|
164
165
|
__args__ = dict()
|
165
166
|
__args__['namespace'] = namespace
|