pulumi-kubernetes 4.16.0a1723070010__py3-none-any.whl → 4.17.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.

Potentially problematic release.


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

Files changed (83) hide show
  1. pulumi_kubernetes/__init__.py +42 -2
  2. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +18 -17
  3. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +18 -17
  4. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +18 -17
  5. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +18 -17
  6. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +18 -17
  7. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +18 -17
  8. pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
  9. pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
  10. pulumi_kubernetes/apps/v1/_inputs.py +12 -12
  11. pulumi_kubernetes/apps/v1/outputs.py +8 -8
  12. pulumi_kubernetes/batch/v1/_inputs.py +15 -27
  13. pulumi_kubernetes/batch/v1/outputs.py +12 -20
  14. pulumi_kubernetes/coordination/__init__.py +3 -0
  15. pulumi_kubernetes/coordination/v1/_inputs.py +94 -14
  16. pulumi_kubernetes/coordination/v1/outputs.py +62 -10
  17. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +214 -0
  18. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +215 -0
  19. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +226 -0
  20. pulumi_kubernetes/coordination/v1alpha1/__init__.py +12 -0
  21. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +418 -0
  22. pulumi_kubernetes/coordination/v1alpha1/outputs.py +334 -0
  23. pulumi_kubernetes/core/v1/Service.py +6 -22
  24. pulumi_kubernetes/core/v1/ServicePatch.py +6 -22
  25. pulumi_kubernetes/core/v1/_inputs.py +961 -206
  26. pulumi_kubernetes/core/v1/outputs.py +1032 -157
  27. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +2 -0
  28. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +2 -0
  29. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +2 -0
  30. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +2 -0
  31. pulumi_kubernetes/networking/v1beta1/IPAddress.py +216 -0
  32. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +215 -0
  33. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +228 -0
  34. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +226 -0
  35. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +215 -0
  36. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +238 -0
  37. pulumi_kubernetes/networking/v1beta1/__init__.py +6 -0
  38. pulumi_kubernetes/networking/v1beta1/_inputs.py +599 -0
  39. pulumi_kubernetes/networking/v1beta1/outputs.py +461 -0
  40. pulumi_kubernetes/pulumi-plugin.json +1 -1
  41. pulumi_kubernetes/resource/__init__.py +3 -0
  42. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  43. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  44. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  45. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  46. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +2 -0
  47. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +2 -0
  48. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  49. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  50. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  51. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  52. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +2 -0
  53. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +2 -0
  54. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +236 -0
  55. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +216 -0
  56. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +247 -0
  57. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +231 -0
  58. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +215 -0
  59. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +242 -0
  60. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +232 -0
  61. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +216 -0
  62. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +243 -0
  63. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +229 -0
  64. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +215 -0
  65. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +240 -0
  66. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +246 -0
  67. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +257 -0
  68. pulumi_kubernetes/resource/v1alpha3/__init__.py +23 -0
  69. pulumi_kubernetes/resource/v1alpha3/_inputs.py +3924 -0
  70. pulumi_kubernetes/resource/v1alpha3/outputs.py +3327 -0
  71. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +2 -0
  72. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +2 -0
  73. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +252 -0
  74. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +215 -0
  75. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +263 -0
  76. pulumi_kubernetes/storage/v1beta1/__init__.py +3 -0
  77. pulumi_kubernetes/storage/v1beta1/_inputs.py +123 -0
  78. pulumi_kubernetes/storage/v1beta1/outputs.py +94 -0
  79. pulumi_kubernetes/yaml/yaml.py +102 -0
  80. {pulumi_kubernetes-4.16.0a1723070010.dist-info → pulumi_kubernetes-4.17.0.dist-info}/METADATA +1 -1
  81. {pulumi_kubernetes-4.16.0a1723070010.dist-info → pulumi_kubernetes-4.17.0.dist-info}/RECORD +83 -51
  82. {pulumi_kubernetes-4.16.0a1723070010.dist-info → pulumi_kubernetes-4.17.0.dist-info}/WHEEL +1 -1
  83. {pulumi_kubernetes-4.16.0a1723070010.dist-info → pulumi_kubernetes-4.17.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,263 @@
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 copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from ... import _utilities
16
+ from ... import meta as _meta
17
+
18
+ __all__ = ['VolumeAttributesClassPatchArgs', 'VolumeAttributesClassPatch']
19
+
20
+ @pulumi.input_type
21
+ class VolumeAttributesClassPatchArgs:
22
+ def __init__(__self__, *,
23
+ api_version: Optional[pulumi.Input[str]] = None,
24
+ driver_name: Optional[pulumi.Input[str]] = None,
25
+ kind: Optional[pulumi.Input[str]] = None,
26
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
27
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
28
+ """
29
+ The set of arguments for constructing a VolumeAttributesClassPatch resource.
30
+ :param pulumi.Input[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
31
+ :param pulumi.Input[str] driver_name: Name of the CSI driver This field is immutable.
32
+ :param pulumi.Input[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
33
+ :param pulumi.Input['_meta.v1.ObjectMetaPatchArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
34
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
35
+
36
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
37
+ """
38
+ if api_version is not None:
39
+ pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1')
40
+ if driver_name is not None:
41
+ pulumi.set(__self__, "driver_name", driver_name)
42
+ if kind is not None:
43
+ pulumi.set(__self__, "kind", 'VolumeAttributesClass')
44
+ if metadata is not None:
45
+ pulumi.set(__self__, "metadata", metadata)
46
+ if parameters is not None:
47
+ pulumi.set(__self__, "parameters", parameters)
48
+
49
+ @property
50
+ @pulumi.getter(name="apiVersion")
51
+ def api_version(self) -> Optional[pulumi.Input[str]]:
52
+ """
53
+ 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
54
+ """
55
+ return pulumi.get(self, "api_version")
56
+
57
+ @api_version.setter
58
+ def api_version(self, value: Optional[pulumi.Input[str]]):
59
+ pulumi.set(self, "api_version", value)
60
+
61
+ @property
62
+ @pulumi.getter(name="driverName")
63
+ def driver_name(self) -> Optional[pulumi.Input[str]]:
64
+ """
65
+ Name of the CSI driver This field is immutable.
66
+ """
67
+ return pulumi.get(self, "driver_name")
68
+
69
+ @driver_name.setter
70
+ def driver_name(self, value: Optional[pulumi.Input[str]]):
71
+ pulumi.set(self, "driver_name", value)
72
+
73
+ @property
74
+ @pulumi.getter
75
+ def kind(self) -> Optional[pulumi.Input[str]]:
76
+ """
77
+ 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
78
+ """
79
+ return pulumi.get(self, "kind")
80
+
81
+ @kind.setter
82
+ def kind(self, value: Optional[pulumi.Input[str]]):
83
+ pulumi.set(self, "kind", value)
84
+
85
+ @property
86
+ @pulumi.getter
87
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
88
+ """
89
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
90
+ """
91
+ return pulumi.get(self, "metadata")
92
+
93
+ @metadata.setter
94
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
95
+ pulumi.set(self, "metadata", value)
96
+
97
+ @property
98
+ @pulumi.getter
99
+ def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
100
+ """
101
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
102
+
103
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
104
+ """
105
+ return pulumi.get(self, "parameters")
106
+
107
+ @parameters.setter
108
+ def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
109
+ pulumi.set(self, "parameters", value)
110
+
111
+
112
+ class VolumeAttributesClassPatch(pulumi.CustomResource):
113
+ @overload
114
+ def __init__(__self__,
115
+ resource_name: str,
116
+ opts: Optional[pulumi.ResourceOptions] = None,
117
+ api_version: Optional[pulumi.Input[str]] = None,
118
+ driver_name: Optional[pulumi.Input[str]] = None,
119
+ kind: Optional[pulumi.Input[str]] = None,
120
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
121
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
122
+ __props__=None):
123
+ """
124
+ Patch resources are used to modify existing Kubernetes resources by using
125
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
126
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
127
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
128
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
129
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
130
+ VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
131
+
132
+ :param str resource_name: The name of the resource.
133
+ :param pulumi.ResourceOptions opts: Options for the resource.
134
+ :param pulumi.Input[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
135
+ :param pulumi.Input[str] driver_name: Name of the CSI driver This field is immutable.
136
+ :param pulumi.Input[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
137
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
138
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
139
+
140
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
141
+ """
142
+ ...
143
+ @overload
144
+ def __init__(__self__,
145
+ resource_name: str,
146
+ args: Optional[VolumeAttributesClassPatchArgs] = None,
147
+ opts: Optional[pulumi.ResourceOptions] = None):
148
+ """
149
+ Patch resources are used to modify existing Kubernetes resources by using
150
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
151
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
152
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
153
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
154
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
155
+ VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
156
+
157
+ :param str resource_name: The name of the resource.
158
+ :param VolumeAttributesClassPatchArgs args: The arguments to use to populate this resource's properties.
159
+ :param pulumi.ResourceOptions opts: Options for the resource.
160
+ """
161
+ ...
162
+ def __init__(__self__, resource_name: str, *args, **kwargs):
163
+ resource_args, opts = _utilities.get_resource_args_opts(VolumeAttributesClassPatchArgs, pulumi.ResourceOptions, *args, **kwargs)
164
+ if resource_args is not None:
165
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
166
+ else:
167
+ __self__._internal_init(resource_name, *args, **kwargs)
168
+
169
+ def _internal_init(__self__,
170
+ resource_name: str,
171
+ opts: Optional[pulumi.ResourceOptions] = None,
172
+ api_version: Optional[pulumi.Input[str]] = None,
173
+ driver_name: Optional[pulumi.Input[str]] = None,
174
+ kind: Optional[pulumi.Input[str]] = None,
175
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
176
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
177
+ __props__=None):
178
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
179
+ if not isinstance(opts, pulumi.ResourceOptions):
180
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
181
+ if opts.id is None:
182
+ if __props__ is not None:
183
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
184
+ __props__ = VolumeAttributesClassPatchArgs.__new__(VolumeAttributesClassPatchArgs)
185
+
186
+ __props__.__dict__["api_version"] = 'storage.k8s.io/v1beta1'
187
+ __props__.__dict__["driver_name"] = driver_name
188
+ __props__.__dict__["kind"] = 'VolumeAttributesClass'
189
+ __props__.__dict__["metadata"] = metadata
190
+ __props__.__dict__["parameters"] = parameters
191
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttributesClassPatch")])
192
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
193
+ super(VolumeAttributesClassPatch, __self__).__init__(
194
+ 'kubernetes:storage.k8s.io/v1beta1:VolumeAttributesClassPatch',
195
+ resource_name,
196
+ __props__,
197
+ opts)
198
+
199
+ @staticmethod
200
+ def get(resource_name: str,
201
+ id: pulumi.Input[str],
202
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'VolumeAttributesClassPatch':
203
+ """
204
+ Get an existing VolumeAttributesClassPatch resource's state with the given name, id, and optional extra
205
+ properties used to qualify the lookup.
206
+
207
+ :param str resource_name: The unique name of the resulting resource.
208
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
209
+ :param pulumi.ResourceOptions opts: Options for the resource.
210
+ """
211
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
212
+
213
+ __props__ = VolumeAttributesClassPatchArgs.__new__(VolumeAttributesClassPatchArgs)
214
+
215
+ __props__.__dict__["api_version"] = None
216
+ __props__.__dict__["driver_name"] = None
217
+ __props__.__dict__["kind"] = None
218
+ __props__.__dict__["metadata"] = None
219
+ __props__.__dict__["parameters"] = None
220
+ return VolumeAttributesClassPatch(resource_name, opts=opts, __props__=__props__)
221
+
222
+ @property
223
+ @pulumi.getter(name="apiVersion")
224
+ def api_version(self) -> pulumi.Output[Optional[str]]:
225
+ """
226
+ 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
227
+ """
228
+ return pulumi.get(self, "api_version")
229
+
230
+ @property
231
+ @pulumi.getter(name="driverName")
232
+ def driver_name(self) -> pulumi.Output[Optional[str]]:
233
+ """
234
+ Name of the CSI driver This field is immutable.
235
+ """
236
+ return pulumi.get(self, "driver_name")
237
+
238
+ @property
239
+ @pulumi.getter
240
+ def kind(self) -> pulumi.Output[Optional[str]]:
241
+ """
242
+ 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
243
+ """
244
+ return pulumi.get(self, "kind")
245
+
246
+ @property
247
+ @pulumi.getter
248
+ def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
249
+ """
250
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
251
+ """
252
+ return pulumi.get(self, "metadata")
253
+
254
+ @property
255
+ @pulumi.getter
256
+ def parameters(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
257
+ """
258
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
259
+
260
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
261
+ """
262
+ return pulumi.get(self, "parameters")
263
+
@@ -20,5 +20,8 @@ from .StorageClassPatch import *
20
20
  from .VolumeAttachment import *
21
21
  from .VolumeAttachmentList import *
22
22
  from .VolumeAttachmentPatch import *
23
+ from .VolumeAttributesClass import *
24
+ from .VolumeAttributesClassList import *
25
+ from .VolumeAttributesClassPatch import *
23
26
  from ._inputs import *
24
27
  from . import outputs
@@ -53,6 +53,8 @@ __all__ = [
53
53
  'VolumeAttachmentStatusArgsDict',
54
54
  'VolumeAttachmentArgs',
55
55
  'VolumeAttachmentArgsDict',
56
+ 'VolumeAttributesClassArgs',
57
+ 'VolumeAttributesClassArgsDict',
56
58
  'VolumeErrorArgs',
57
59
  'VolumeErrorArgsDict',
58
60
  'VolumeNodeResourcesPatchArgs',
@@ -1964,6 +1966,127 @@ class VolumeAttachmentArgs:
1964
1966
  pulumi.set(self, "status", value)
1965
1967
 
1966
1968
 
1969
+ if not MYPY:
1970
+ class VolumeAttributesClassArgsDict(TypedDict):
1971
+ """
1972
+ VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
1973
+ """
1974
+ driver_name: pulumi.Input[str]
1975
+ """
1976
+ Name of the CSI driver This field is immutable.
1977
+ """
1978
+ api_version: NotRequired[pulumi.Input[str]]
1979
+ """
1980
+ 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
1981
+ """
1982
+ kind: NotRequired[pulumi.Input[str]]
1983
+ """
1984
+ 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
1985
+ """
1986
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
1987
+ """
1988
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1989
+ """
1990
+ parameters: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
1991
+ """
1992
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
1993
+
1994
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
1995
+ """
1996
+ elif False:
1997
+ VolumeAttributesClassArgsDict: TypeAlias = Mapping[str, Any]
1998
+
1999
+ @pulumi.input_type
2000
+ class VolumeAttributesClassArgs:
2001
+ def __init__(__self__, *,
2002
+ driver_name: pulumi.Input[str],
2003
+ api_version: Optional[pulumi.Input[str]] = None,
2004
+ kind: Optional[pulumi.Input[str]] = None,
2005
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
2006
+ parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
2007
+ """
2008
+ VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
2009
+ :param pulumi.Input[str] driver_name: Name of the CSI driver This field is immutable.
2010
+ :param pulumi.Input[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
2011
+ :param pulumi.Input[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
2012
+ :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
2013
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
2014
+
2015
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
2016
+ """
2017
+ pulumi.set(__self__, "driver_name", driver_name)
2018
+ if api_version is not None:
2019
+ pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1')
2020
+ if kind is not None:
2021
+ pulumi.set(__self__, "kind", 'VolumeAttributesClass')
2022
+ if metadata is not None:
2023
+ pulumi.set(__self__, "metadata", metadata)
2024
+ if parameters is not None:
2025
+ pulumi.set(__self__, "parameters", parameters)
2026
+
2027
+ @property
2028
+ @pulumi.getter(name="driverName")
2029
+ def driver_name(self) -> pulumi.Input[str]:
2030
+ """
2031
+ Name of the CSI driver This field is immutable.
2032
+ """
2033
+ return pulumi.get(self, "driver_name")
2034
+
2035
+ @driver_name.setter
2036
+ def driver_name(self, value: pulumi.Input[str]):
2037
+ pulumi.set(self, "driver_name", value)
2038
+
2039
+ @property
2040
+ @pulumi.getter(name="apiVersion")
2041
+ def api_version(self) -> Optional[pulumi.Input[str]]:
2042
+ """
2043
+ 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
2044
+ """
2045
+ return pulumi.get(self, "api_version")
2046
+
2047
+ @api_version.setter
2048
+ def api_version(self, value: Optional[pulumi.Input[str]]):
2049
+ pulumi.set(self, "api_version", value)
2050
+
2051
+ @property
2052
+ @pulumi.getter
2053
+ def kind(self) -> Optional[pulumi.Input[str]]:
2054
+ """
2055
+ 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
2056
+ """
2057
+ return pulumi.get(self, "kind")
2058
+
2059
+ @kind.setter
2060
+ def kind(self, value: Optional[pulumi.Input[str]]):
2061
+ pulumi.set(self, "kind", value)
2062
+
2063
+ @property
2064
+ @pulumi.getter
2065
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
2066
+ """
2067
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
2068
+ """
2069
+ return pulumi.get(self, "metadata")
2070
+
2071
+ @metadata.setter
2072
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
2073
+ pulumi.set(self, "metadata", value)
2074
+
2075
+ @property
2076
+ @pulumi.getter
2077
+ def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
2078
+ """
2079
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
2080
+
2081
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
2082
+ """
2083
+ return pulumi.get(self, "parameters")
2084
+
2085
+ @parameters.setter
2086
+ def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
2087
+ pulumi.set(self, "parameters", value)
2088
+
2089
+
1967
2090
  if not MYPY:
1968
2091
  class VolumeErrorArgsDict(TypedDict):
1969
2092
  """
@@ -37,6 +37,7 @@ __all__ = [
37
37
  'VolumeAttachmentSpecPatch',
38
38
  'VolumeAttachmentStatus',
39
39
  'VolumeAttachmentStatusPatch',
40
+ 'VolumeAttributesClass',
40
41
  'VolumeError',
41
42
  'VolumeErrorPatch',
42
43
  'VolumeNodeResources',
@@ -1628,6 +1629,99 @@ class VolumeAttachmentStatusPatch(dict):
1628
1629
  return pulumi.get(self, "detach_error")
1629
1630
 
1630
1631
 
1632
+ @pulumi.output_type
1633
+ class VolumeAttributesClass(dict):
1634
+ """
1635
+ VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
1636
+ """
1637
+ @staticmethod
1638
+ def __key_warning(key: str):
1639
+ suggest = None
1640
+ if key == "driverName":
1641
+ suggest = "driver_name"
1642
+ elif key == "apiVersion":
1643
+ suggest = "api_version"
1644
+
1645
+ if suggest:
1646
+ pulumi.log.warn(f"Key '{key}' not found in VolumeAttributesClass. Access the value via the '{suggest}' property getter instead.")
1647
+
1648
+ def __getitem__(self, key: str) -> Any:
1649
+ VolumeAttributesClass.__key_warning(key)
1650
+ return super().__getitem__(key)
1651
+
1652
+ def get(self, key: str, default = None) -> Any:
1653
+ VolumeAttributesClass.__key_warning(key)
1654
+ return super().get(key, default)
1655
+
1656
+ def __init__(__self__, *,
1657
+ driver_name: str,
1658
+ api_version: Optional[str] = None,
1659
+ kind: Optional[str] = None,
1660
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
1661
+ parameters: Optional[Mapping[str, str]] = None):
1662
+ """
1663
+ VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
1664
+ :param str driver_name: Name of the CSI driver This field is immutable.
1665
+ :param 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
1666
+ :param 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
1667
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1668
+ :param Mapping[str, str] parameters: parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
1669
+
1670
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
1671
+ """
1672
+ pulumi.set(__self__, "driver_name", driver_name)
1673
+ if api_version is not None:
1674
+ pulumi.set(__self__, "api_version", 'storage.k8s.io/v1beta1')
1675
+ if kind is not None:
1676
+ pulumi.set(__self__, "kind", 'VolumeAttributesClass')
1677
+ if metadata is not None:
1678
+ pulumi.set(__self__, "metadata", metadata)
1679
+ if parameters is not None:
1680
+ pulumi.set(__self__, "parameters", parameters)
1681
+
1682
+ @property
1683
+ @pulumi.getter(name="driverName")
1684
+ def driver_name(self) -> str:
1685
+ """
1686
+ Name of the CSI driver This field is immutable.
1687
+ """
1688
+ return pulumi.get(self, "driver_name")
1689
+
1690
+ @property
1691
+ @pulumi.getter(name="apiVersion")
1692
+ def api_version(self) -> Optional[str]:
1693
+ """
1694
+ 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
1695
+ """
1696
+ return pulumi.get(self, "api_version")
1697
+
1698
+ @property
1699
+ @pulumi.getter
1700
+ def kind(self) -> Optional[str]:
1701
+ """
1702
+ 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
1703
+ """
1704
+ return pulumi.get(self, "kind")
1705
+
1706
+ @property
1707
+ @pulumi.getter
1708
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1709
+ """
1710
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1711
+ """
1712
+ return pulumi.get(self, "metadata")
1713
+
1714
+ @property
1715
+ @pulumi.getter
1716
+ def parameters(self) -> Optional[Mapping[str, str]]:
1717
+ """
1718
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
1719
+
1720
+ This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
1721
+ """
1722
+ return pulumi.get(self, "parameters")
1723
+
1724
+
1631
1725
  @pulumi.output_type
1632
1726
  class VolumeError(dict):
1633
1727
  """