pulumi-kubernetes 4.23.0a1746131759__py3-none-any.whl → 4.23.0a1746138483__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.

Potentially problematic release.


This version of pulumi-kubernetes might be problematic. Click here for more details.

Files changed (116) hide show
  1. pulumi_kubernetes/__init__.py +36 -2
  2. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +30 -30
  3. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +20 -20
  4. pulumi_kubernetes/apps/v1/ReplicaSetList.py +4 -4
  5. pulumi_kubernetes/apps/v1/_inputs.py +109 -56
  6. pulumi_kubernetes/apps/v1/outputs.py +129 -56
  7. pulumi_kubernetes/autoscaling/v2/_inputs.py +92 -12
  8. pulumi_kubernetes/autoscaling/v2/outputs.py +66 -10
  9. pulumi_kubernetes/batch/v1/_inputs.py +12 -42
  10. pulumi_kubernetes/batch/v1/outputs.py +8 -32
  11. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +2 -0
  12. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +2 -0
  13. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +229 -0
  14. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +219 -0
  15. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +240 -0
  16. pulumi_kubernetes/certificates/v1beta1/__init__.py +3 -0
  17. pulumi_kubernetes/certificates/v1beta1/_inputs.py +292 -0
  18. pulumi_kubernetes/certificates/v1beta1/outputs.py +241 -0
  19. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +1 -1
  20. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +1 -1
  21. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +1 -1
  22. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +1 -1
  23. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +6 -6
  24. pulumi_kubernetes/coordination/v1alpha2/outputs.py +4 -4
  25. pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +220 -0
  26. pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +219 -0
  27. pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +232 -0
  28. pulumi_kubernetes/coordination/v1beta1/__init__.py +3 -0
  29. pulumi_kubernetes/coordination/v1beta1/_inputs.py +371 -0
  30. pulumi_kubernetes/coordination/v1beta1/outputs.py +292 -0
  31. pulumi_kubernetes/core/v1/Endpoints.py +8 -0
  32. pulumi_kubernetes/core/v1/EndpointsList.py +2 -2
  33. pulumi_kubernetes/core/v1/EndpointsPatch.py +8 -0
  34. pulumi_kubernetes/core/v1/_inputs.py +240 -66
  35. pulumi_kubernetes/core/v1/outputs.py +251 -51
  36. pulumi_kubernetes/discovery/v1/EndpointSlice.py +10 -10
  37. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +10 -10
  38. pulumi_kubernetes/discovery/v1/_inputs.py +159 -44
  39. pulumi_kubernetes/discovery/v1/outputs.py +107 -32
  40. pulumi_kubernetes/networking/v1/IPAddress.py +220 -0
  41. pulumi_kubernetes/networking/v1/IPAddressList.py +219 -0
  42. pulumi_kubernetes/networking/v1/IPAddressPatch.py +232 -0
  43. pulumi_kubernetes/networking/v1/ServiceCIDR.py +230 -0
  44. pulumi_kubernetes/networking/v1/ServiceCIDRList.py +219 -0
  45. pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +242 -0
  46. pulumi_kubernetes/networking/v1/__init__.py +6 -0
  47. pulumi_kubernetes/networking/v1/_inputs.py +599 -0
  48. pulumi_kubernetes/networking/v1/outputs.py +461 -0
  49. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +1 -1
  50. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +1 -1
  51. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +1 -1
  52. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +1 -1
  53. pulumi_kubernetes/networking/v1beta1/IPAddress.py +1 -1
  54. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +1 -1
  55. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +1 -1
  56. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +1 -1
  57. pulumi_kubernetes/policy/v1/_inputs.py +0 -12
  58. pulumi_kubernetes/policy/v1/outputs.py +0 -8
  59. pulumi_kubernetes/pulumi-plugin.json +1 -1
  60. pulumi_kubernetes/resource/__init__.py +3 -0
  61. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  62. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  63. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  64. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  65. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  66. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  67. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  68. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  69. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
  70. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
  71. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +1 -1
  72. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +1 -1
  73. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +227 -0
  74. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +219 -0
  75. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +238 -0
  76. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
  77. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
  78. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
  79. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
  80. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +1 -1
  81. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
  82. pulumi_kubernetes/resource/v1alpha3/__init__.py +3 -0
  83. pulumi_kubernetes/resource/v1alpha3/_inputs.py +2559 -213
  84. pulumi_kubernetes/resource/v1alpha3/outputs.py +2037 -256
  85. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +1 -1
  86. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +1 -1
  87. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +1 -1
  88. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +1 -1
  89. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +1 -1
  90. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +1 -1
  91. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +1 -1
  92. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +1 -1
  93. pulumi_kubernetes/resource/v1beta1/_inputs.py +2044 -176
  94. pulumi_kubernetes/resource/v1beta1/outputs.py +1536 -134
  95. pulumi_kubernetes/resource/v1beta2/DeviceClass.py +241 -0
  96. pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +219 -0
  97. pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +252 -0
  98. pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +236 -0
  99. pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +220 -0
  100. pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +247 -0
  101. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +233 -0
  102. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +219 -0
  103. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +244 -0
  104. pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +250 -0
  105. pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +220 -0
  106. pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +261 -0
  107. pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
  108. pulumi_kubernetes/resource/v1beta2/_inputs.py +5681 -0
  109. pulumi_kubernetes/resource/v1beta2/outputs.py +4726 -0
  110. pulumi_kubernetes/storage/v1/_inputs.py +90 -0
  111. pulumi_kubernetes/storage/v1/outputs.py +110 -0
  112. pulumi_kubernetes/yaml/yaml.py +108 -0
  113. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/METADATA +1 -1
  114. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/RECORD +116 -86
  115. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/WHEEL +0 -0
  116. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,244 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumigen. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from ... import _utilities
17
+ from . import outputs
18
+ from ... import meta as _meta
19
+ from ._inputs import *
20
+
21
+ __all__ = ['ResourceClaimTemplatePatchArgs', 'ResourceClaimTemplatePatch']
22
+
23
+ @pulumi.input_type
24
+ class ResourceClaimTemplatePatchArgs:
25
+ def __init__(__self__, *,
26
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
27
+ kind: Optional[pulumi.Input[builtins.str]] = None,
28
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
29
+ spec: Optional[pulumi.Input['ResourceClaimTemplateSpecPatchArgs']] = None):
30
+ """
31
+ The set of arguments for constructing a ResourceClaimTemplatePatch resource.
32
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
33
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
34
+ :param pulumi.Input['_meta.v1.ObjectMetaPatchArgs'] metadata: Standard object metadata
35
+ :param pulumi.Input['ResourceClaimTemplateSpecPatchArgs'] spec: Describes the ResourceClaim that is to be generated.
36
+
37
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
38
+ """
39
+ if api_version is not None:
40
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
41
+ if kind is not None:
42
+ pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
43
+ if metadata is not None:
44
+ pulumi.set(__self__, "metadata", metadata)
45
+ if spec is not None:
46
+ pulumi.set(__self__, "spec", spec)
47
+
48
+ @property
49
+ @pulumi.getter(name="apiVersion")
50
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
51
+ """
52
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
53
+ """
54
+ return pulumi.get(self, "api_version")
55
+
56
+ @api_version.setter
57
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
58
+ pulumi.set(self, "api_version", value)
59
+
60
+ @property
61
+ @pulumi.getter
62
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
63
+ """
64
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
65
+ """
66
+ return pulumi.get(self, "kind")
67
+
68
+ @kind.setter
69
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
70
+ pulumi.set(self, "kind", value)
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
75
+ """
76
+ Standard object metadata
77
+ """
78
+ return pulumi.get(self, "metadata")
79
+
80
+ @metadata.setter
81
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
82
+ pulumi.set(self, "metadata", value)
83
+
84
+ @property
85
+ @pulumi.getter
86
+ def spec(self) -> Optional[pulumi.Input['ResourceClaimTemplateSpecPatchArgs']]:
87
+ """
88
+ Describes the ResourceClaim that is to be generated.
89
+
90
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
91
+ """
92
+ return pulumi.get(self, "spec")
93
+
94
+ @spec.setter
95
+ def spec(self, value: Optional[pulumi.Input['ResourceClaimTemplateSpecPatchArgs']]):
96
+ pulumi.set(self, "spec", value)
97
+
98
+
99
+ class ResourceClaimTemplatePatch(pulumi.CustomResource):
100
+
101
+ pulumi_type = "kubernetes:resource.k8s.io/v1beta2:ResourceClaimTemplatePatch"
102
+
103
+ @overload
104
+ def __init__(__self__,
105
+ resource_name: str,
106
+ opts: Optional[pulumi.ResourceOptions] = None,
107
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
108
+ kind: Optional[pulumi.Input[builtins.str]] = None,
109
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
110
+ spec: Optional[pulumi.Input[Union['ResourceClaimTemplateSpecPatchArgs', 'ResourceClaimTemplateSpecPatchArgsDict']]] = None,
111
+ __props__=None):
112
+ """
113
+ Patch resources are used to modify existing Kubernetes resources by using
114
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
115
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
116
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
117
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
118
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
119
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
120
+
121
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
122
+
123
+ :param str resource_name: The name of the resource.
124
+ :param pulumi.ResourceOptions opts: Options for the resource.
125
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
126
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
127
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object metadata
128
+ :param pulumi.Input[Union['ResourceClaimTemplateSpecPatchArgs', 'ResourceClaimTemplateSpecPatchArgsDict']] spec: Describes the ResourceClaim that is to be generated.
129
+
130
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
131
+ """
132
+ ...
133
+ @overload
134
+ def __init__(__self__,
135
+ resource_name: str,
136
+ args: Optional[ResourceClaimTemplatePatchArgs] = None,
137
+ opts: Optional[pulumi.ResourceOptions] = None):
138
+ """
139
+ Patch resources are used to modify existing Kubernetes resources by using
140
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
141
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
142
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
143
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
144
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
145
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
146
+
147
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
148
+
149
+ :param str resource_name: The name of the resource.
150
+ :param ResourceClaimTemplatePatchArgs args: The arguments to use to populate this resource's properties.
151
+ :param pulumi.ResourceOptions opts: Options for the resource.
152
+ """
153
+ ...
154
+ def __init__(__self__, resource_name: str, *args, **kwargs):
155
+ resource_args, opts = _utilities.get_resource_args_opts(ResourceClaimTemplatePatchArgs, pulumi.ResourceOptions, *args, **kwargs)
156
+ if resource_args is not None:
157
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
158
+ else:
159
+ __self__._internal_init(resource_name, *args, **kwargs)
160
+
161
+ def _internal_init(__self__,
162
+ resource_name: str,
163
+ opts: Optional[pulumi.ResourceOptions] = None,
164
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
165
+ kind: Optional[pulumi.Input[builtins.str]] = None,
166
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
167
+ spec: Optional[pulumi.Input[Union['ResourceClaimTemplateSpecPatchArgs', 'ResourceClaimTemplateSpecPatchArgsDict']]] = None,
168
+ __props__=None):
169
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
170
+ if not isinstance(opts, pulumi.ResourceOptions):
171
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
172
+ if opts.id is None:
173
+ if __props__ is not None:
174
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
175
+ __props__ = ResourceClaimTemplatePatchArgs.__new__(ResourceClaimTemplatePatchArgs)
176
+
177
+ __props__.__dict__["api_version"] = 'resource.k8s.io/v1beta2'
178
+ __props__.__dict__["kind"] = 'ResourceClaimTemplate'
179
+ __props__.__dict__["metadata"] = metadata
180
+ __props__.__dict__["spec"] = spec
181
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha1:ResourceClaimTemplatePatch"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha2:ResourceClaimTemplatePatch"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha3:ResourceClaimTemplatePatch"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1beta1:ResourceClaimTemplatePatch")])
182
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
183
+ super(ResourceClaimTemplatePatch, __self__).__init__(
184
+ 'kubernetes:resource.k8s.io/v1beta2:ResourceClaimTemplatePatch',
185
+ resource_name,
186
+ __props__,
187
+ opts)
188
+
189
+ @staticmethod
190
+ def get(resource_name: str,
191
+ id: pulumi.Input[str],
192
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'ResourceClaimTemplatePatch':
193
+ """
194
+ Get an existing ResourceClaimTemplatePatch resource's state with the given name, id, and optional extra
195
+ properties used to qualify the lookup.
196
+
197
+ :param str resource_name: The unique name of the resulting resource.
198
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
199
+ :param pulumi.ResourceOptions opts: Options for the resource.
200
+ """
201
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
202
+
203
+ __props__ = ResourceClaimTemplatePatchArgs.__new__(ResourceClaimTemplatePatchArgs)
204
+
205
+ __props__.__dict__["api_version"] = None
206
+ __props__.__dict__["kind"] = None
207
+ __props__.__dict__["metadata"] = None
208
+ __props__.__dict__["spec"] = None
209
+ return ResourceClaimTemplatePatch(resource_name, opts=opts, __props__=__props__)
210
+
211
+ @property
212
+ @pulumi.getter(name="apiVersion")
213
+ def api_version(self) -> pulumi.Output[Optional[builtins.str]]:
214
+ """
215
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
216
+ """
217
+ return pulumi.get(self, "api_version")
218
+
219
+ @property
220
+ @pulumi.getter
221
+ def kind(self) -> pulumi.Output[Optional[builtins.str]]:
222
+ """
223
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
224
+ """
225
+ return pulumi.get(self, "kind")
226
+
227
+ @property
228
+ @pulumi.getter
229
+ def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
230
+ """
231
+ Standard object metadata
232
+ """
233
+ return pulumi.get(self, "metadata")
234
+
235
+ @property
236
+ @pulumi.getter
237
+ def spec(self) -> pulumi.Output[Optional['outputs.ResourceClaimTemplateSpecPatch']]:
238
+ """
239
+ Describes the ResourceClaim that is to be generated.
240
+
241
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
242
+ """
243
+ return pulumi.get(self, "spec")
244
+
@@ -0,0 +1,250 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumigen. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from ... import _utilities
17
+ from . import outputs
18
+ from ... import core as _core
19
+ from ... import meta as _meta
20
+ from ._inputs import *
21
+
22
+ __all__ = ['ResourceSliceInitArgs', 'ResourceSlice']
23
+
24
+ @pulumi.input_type
25
+ class ResourceSliceInitArgs:
26
+ def __init__(__self__, *,
27
+ spec: pulumi.Input['ResourceSliceSpecArgs'],
28
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
29
+ kind: Optional[pulumi.Input[builtins.str]] = None,
30
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
31
+ """
32
+ The set of arguments for constructing a ResourceSlice resource.
33
+ :param pulumi.Input['ResourceSliceSpecArgs'] spec: Contains the information published by the driver.
34
+
35
+ Changing the spec automatically increments the metadata.generation number.
36
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
37
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
38
+ :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
39
+ """
40
+ pulumi.set(__self__, "spec", spec)
41
+ if api_version is not None:
42
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
43
+ if kind is not None:
44
+ pulumi.set(__self__, "kind", 'ResourceSlice')
45
+ if metadata is not None:
46
+ pulumi.set(__self__, "metadata", metadata)
47
+
48
+ @property
49
+ @pulumi.getter
50
+ def spec(self) -> pulumi.Input['ResourceSliceSpecArgs']:
51
+ """
52
+ Contains the information published by the driver.
53
+
54
+ Changing the spec automatically increments the metadata.generation number.
55
+ """
56
+ return pulumi.get(self, "spec")
57
+
58
+ @spec.setter
59
+ def spec(self, value: pulumi.Input['ResourceSliceSpecArgs']):
60
+ pulumi.set(self, "spec", value)
61
+
62
+ @property
63
+ @pulumi.getter(name="apiVersion")
64
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
65
+ """
66
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
67
+ """
68
+ return pulumi.get(self, "api_version")
69
+
70
+ @api_version.setter
71
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
72
+ pulumi.set(self, "api_version", value)
73
+
74
+ @property
75
+ @pulumi.getter
76
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
77
+ """
78
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
79
+ """
80
+ return pulumi.get(self, "kind")
81
+
82
+ @kind.setter
83
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
84
+ pulumi.set(self, "kind", value)
85
+
86
+ @property
87
+ @pulumi.getter
88
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
89
+ """
90
+ Standard object metadata
91
+ """
92
+ return pulumi.get(self, "metadata")
93
+
94
+ @metadata.setter
95
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
96
+ pulumi.set(self, "metadata", value)
97
+
98
+
99
+ class ResourceSlice(pulumi.CustomResource):
100
+
101
+ pulumi_type = "kubernetes:resource.k8s.io/v1beta2:ResourceSlice"
102
+
103
+ @overload
104
+ def __init__(__self__,
105
+ resource_name: str,
106
+ opts: Optional[pulumi.ResourceOptions] = None,
107
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
108
+ kind: Optional[pulumi.Input[builtins.str]] = None,
109
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
110
+ spec: Optional[pulumi.Input[Union['ResourceSliceSpecArgs', 'ResourceSliceSpecArgsDict']]] = None,
111
+ __props__=None):
112
+ """
113
+ ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
114
+
115
+ At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
116
+
117
+ Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
118
+
119
+ When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
120
+
121
+ For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
122
+
123
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
124
+
125
+ :param str resource_name: The name of the resource.
126
+ :param pulumi.ResourceOptions opts: Options for the resource.
127
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
128
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
129
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: Standard object metadata
130
+ :param pulumi.Input[Union['ResourceSliceSpecArgs', 'ResourceSliceSpecArgsDict']] spec: Contains the information published by the driver.
131
+
132
+ Changing the spec automatically increments the metadata.generation number.
133
+ """
134
+ ...
135
+ @overload
136
+ def __init__(__self__,
137
+ resource_name: str,
138
+ args: ResourceSliceInitArgs,
139
+ opts: Optional[pulumi.ResourceOptions] = None):
140
+ """
141
+ ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
142
+
143
+ At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
144
+
145
+ Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
146
+
147
+ When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
148
+
149
+ For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
150
+
151
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
152
+
153
+ :param str resource_name: The name of the resource.
154
+ :param ResourceSliceInitArgs args: The arguments to use to populate this resource's properties.
155
+ :param pulumi.ResourceOptions opts: Options for the resource.
156
+ """
157
+ ...
158
+ def __init__(__self__, resource_name: str, *args, **kwargs):
159
+ resource_args, opts = _utilities.get_resource_args_opts(ResourceSliceInitArgs, pulumi.ResourceOptions, *args, **kwargs)
160
+ if resource_args is not None:
161
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
162
+ else:
163
+ __self__._internal_init(resource_name, *args, **kwargs)
164
+
165
+ def _internal_init(__self__,
166
+ resource_name: str,
167
+ opts: Optional[pulumi.ResourceOptions] = None,
168
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
169
+ kind: Optional[pulumi.Input[builtins.str]] = None,
170
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
171
+ spec: Optional[pulumi.Input[Union['ResourceSliceSpecArgs', 'ResourceSliceSpecArgsDict']]] = None,
172
+ __props__=None):
173
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
174
+ if not isinstance(opts, pulumi.ResourceOptions):
175
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
176
+ if opts.id is None:
177
+ if __props__ is not None:
178
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
179
+ __props__ = ResourceSliceInitArgs.__new__(ResourceSliceInitArgs)
180
+
181
+ __props__.__dict__["api_version"] = 'resource.k8s.io/v1beta2'
182
+ __props__.__dict__["kind"] = 'ResourceSlice'
183
+ __props__.__dict__["metadata"] = metadata
184
+ if spec is None and not opts.urn:
185
+ raise TypeError("Missing required property 'spec'")
186
+ __props__.__dict__["spec"] = spec
187
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha2:ResourceSlice"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha3:ResourceSlice"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1beta1:ResourceSlice")])
188
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
189
+ super(ResourceSlice, __self__).__init__(
190
+ 'kubernetes:resource.k8s.io/v1beta2:ResourceSlice',
191
+ resource_name,
192
+ __props__,
193
+ opts)
194
+
195
+ @staticmethod
196
+ def get(resource_name: str,
197
+ id: pulumi.Input[str],
198
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'ResourceSlice':
199
+ """
200
+ Get an existing ResourceSlice resource's state with the given name, id, and optional extra
201
+ properties used to qualify the lookup.
202
+
203
+ :param str resource_name: The unique name of the resulting resource.
204
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
205
+ :param pulumi.ResourceOptions opts: Options for the resource.
206
+ """
207
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
208
+
209
+ __props__ = ResourceSliceInitArgs.__new__(ResourceSliceInitArgs)
210
+
211
+ __props__.__dict__["api_version"] = None
212
+ __props__.__dict__["kind"] = None
213
+ __props__.__dict__["metadata"] = None
214
+ __props__.__dict__["spec"] = None
215
+ return ResourceSlice(resource_name, opts=opts, __props__=__props__)
216
+
217
+ @property
218
+ @pulumi.getter(name="apiVersion")
219
+ def api_version(self) -> pulumi.Output[builtins.str]:
220
+ """
221
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
222
+ """
223
+ return pulumi.get(self, "api_version")
224
+
225
+ @property
226
+ @pulumi.getter
227
+ def kind(self) -> pulumi.Output[builtins.str]:
228
+ """
229
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
230
+ """
231
+ return pulumi.get(self, "kind")
232
+
233
+ @property
234
+ @pulumi.getter
235
+ def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
236
+ """
237
+ Standard object metadata
238
+ """
239
+ return pulumi.get(self, "metadata")
240
+
241
+ @property
242
+ @pulumi.getter
243
+ def spec(self) -> pulumi.Output['outputs.ResourceSliceSpec']:
244
+ """
245
+ Contains the information published by the driver.
246
+
247
+ Changing the spec automatically increments the metadata.generation number.
248
+ """
249
+ return pulumi.get(self, "spec")
250
+