pulumi-kubernetes 4.19.0__py3-none-any.whl → 4.19.0a1726527720__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 (92) hide show
  1. pulumi_kubernetes/__init__.py +0 -36
  2. pulumi_kubernetes/_utilities.py +1 -1
  3. pulumi_kubernetes/admissionregistration/v1/_inputs.py +6 -6
  4. pulumi_kubernetes/admissionregistration/v1/outputs.py +4 -4
  5. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +8 -0
  6. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +8 -0
  7. pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +0 -6
  8. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +321 -1824
  9. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +248 -1367
  10. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +6 -6
  11. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +4 -4
  12. pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
  13. pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
  14. pulumi_kubernetes/apps/v1/_inputs.py +6 -6
  15. pulumi_kubernetes/apps/v1/outputs.py +4 -4
  16. pulumi_kubernetes/autoscaling/v2/_inputs.py +15 -15
  17. pulumi_kubernetes/autoscaling/v2/outputs.py +12 -12
  18. pulumi_kubernetes/batch/v1/_inputs.py +6 -6
  19. pulumi_kubernetes/batch/v1/outputs.py +4 -4
  20. pulumi_kubernetes/coordination/__init__.py +0 -3
  21. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +0 -2
  22. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +0 -2
  23. pulumi_kubernetes/core/v1/Binding.py +2 -2
  24. pulumi_kubernetes/core/v1/BindingPatch.py +2 -2
  25. pulumi_kubernetes/core/v1/ServiceAccount.py +4 -4
  26. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +4 -4
  27. pulumi_kubernetes/core/v1/_inputs.py +313 -564
  28. pulumi_kubernetes/core/v1/outputs.py +230 -418
  29. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +12 -12
  30. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +8 -8
  31. pulumi_kubernetes/helm/v3/_inputs.py +3 -3
  32. pulumi_kubernetes/helm/v3/outputs.py +2 -2
  33. pulumi_kubernetes/helm/v4/Chart.py +0 -6
  34. pulumi_kubernetes/helm/v4/_inputs.py +3 -3
  35. pulumi_kubernetes/pulumi-plugin.json +1 -1
  36. pulumi_kubernetes/resource/__init__.py +0 -3
  37. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  38. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  39. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  40. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  41. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  42. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  43. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  44. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  45. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
  46. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
  47. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +0 -2
  48. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +0 -2
  49. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
  50. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
  51. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
  52. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
  53. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +8 -8
  54. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
  55. pulumi_kubernetes/resource/v1alpha3/__init__.py +0 -1
  56. pulumi_kubernetes/resource/v1alpha3/_inputs.py +7 -455
  57. pulumi_kubernetes/resource/v1alpha3/outputs.py +5 -592
  58. pulumi_kubernetes/storage/v1/_inputs.py +4 -4
  59. pulumi_kubernetes/storage/v1/outputs.py +4 -4
  60. pulumi_kubernetes/yaml/yaml.py +0 -90
  61. {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/METADATA +6 -6
  62. {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/RECORD +64 -92
  63. {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/WHEEL +1 -1
  64. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +0 -214
  65. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +0 -222
  66. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +0 -215
  67. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +0 -234
  68. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +0 -215
  69. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +0 -226
  70. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +0 -216
  71. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +0 -215
  72. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +0 -228
  73. pulumi_kubernetes/coordination/v1alpha2/__init__.py +0 -12
  74. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +0 -393
  75. pulumi_kubernetes/coordination/v1alpha2/outputs.py +0 -313
  76. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +0 -245
  77. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +0 -237
  78. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +0 -215
  79. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +0 -248
  80. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +0 -232
  81. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +0 -216
  82. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +0 -243
  83. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +0 -229
  84. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +0 -215
  85. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +0 -240
  86. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +0 -246
  87. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +0 -216
  88. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +0 -257
  89. pulumi_kubernetes/resource/v1beta1/__init__.py +0 -21
  90. pulumi_kubernetes/resource/v1beta1/_inputs.py +0 -3867
  91. pulumi_kubernetes/resource/v1beta1/outputs.py +0 -3334
  92. {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/top_level.txt +0 -0
@@ -1,313 +0,0 @@
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 outputs
17
- from ... import meta as _meta
18
-
19
- __all__ = [
20
- 'LeaseCandidate',
21
- 'LeaseCandidateSpec',
22
- 'LeaseCandidateSpecPatch',
23
- ]
24
-
25
- @pulumi.output_type
26
- class LeaseCandidate(dict):
27
- """
28
- LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
29
- """
30
- @staticmethod
31
- def __key_warning(key: str):
32
- suggest = None
33
- if key == "apiVersion":
34
- suggest = "api_version"
35
-
36
- if suggest:
37
- pulumi.log.warn(f"Key '{key}' not found in LeaseCandidate. Access the value via the '{suggest}' property getter instead.")
38
-
39
- def __getitem__(self, key: str) -> Any:
40
- LeaseCandidate.__key_warning(key)
41
- return super().__getitem__(key)
42
-
43
- def get(self, key: str, default = None) -> Any:
44
- LeaseCandidate.__key_warning(key)
45
- return super().get(key, default)
46
-
47
- def __init__(__self__, *,
48
- api_version: Optional[str] = None,
49
- kind: Optional[str] = None,
50
- metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
51
- spec: Optional['outputs.LeaseCandidateSpec'] = None):
52
- """
53
- LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
54
- :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
55
- :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
56
- :param '_meta.v1.ObjectMetaArgs' metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
57
- :param 'LeaseCandidateSpecArgs' spec: spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
58
- """
59
- if api_version is not None:
60
- pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1alpha2')
61
- if kind is not None:
62
- pulumi.set(__self__, "kind", 'LeaseCandidate')
63
- if metadata is not None:
64
- pulumi.set(__self__, "metadata", metadata)
65
- if spec is not None:
66
- pulumi.set(__self__, "spec", spec)
67
-
68
- @property
69
- @pulumi.getter(name="apiVersion")
70
- def api_version(self) -> Optional[str]:
71
- """
72
- 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
73
- """
74
- return pulumi.get(self, "api_version")
75
-
76
- @property
77
- @pulumi.getter
78
- def kind(self) -> Optional[str]:
79
- """
80
- 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
81
- """
82
- return pulumi.get(self, "kind")
83
-
84
- @property
85
- @pulumi.getter
86
- def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
87
- """
88
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
89
- """
90
- return pulumi.get(self, "metadata")
91
-
92
- @property
93
- @pulumi.getter
94
- def spec(self) -> Optional['outputs.LeaseCandidateSpec']:
95
- """
96
- spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
97
- """
98
- return pulumi.get(self, "spec")
99
-
100
-
101
- @pulumi.output_type
102
- class LeaseCandidateSpec(dict):
103
- """
104
- LeaseCandidateSpec is a specification of a Lease.
105
- """
106
- @staticmethod
107
- def __key_warning(key: str):
108
- suggest = None
109
- if key == "binaryVersion":
110
- suggest = "binary_version"
111
- elif key == "leaseName":
112
- suggest = "lease_name"
113
- elif key == "emulationVersion":
114
- suggest = "emulation_version"
115
- elif key == "pingTime":
116
- suggest = "ping_time"
117
- elif key == "renewTime":
118
- suggest = "renew_time"
119
-
120
- if suggest:
121
- pulumi.log.warn(f"Key '{key}' not found in LeaseCandidateSpec. Access the value via the '{suggest}' property getter instead.")
122
-
123
- def __getitem__(self, key: str) -> Any:
124
- LeaseCandidateSpec.__key_warning(key)
125
- return super().__getitem__(key)
126
-
127
- def get(self, key: str, default = None) -> Any:
128
- LeaseCandidateSpec.__key_warning(key)
129
- return super().get(key, default)
130
-
131
- def __init__(__self__, *,
132
- binary_version: str,
133
- lease_name: str,
134
- strategy: str,
135
- emulation_version: Optional[str] = None,
136
- ping_time: Optional[str] = None,
137
- renew_time: Optional[str] = None):
138
- """
139
- LeaseCandidateSpec is a specification of a Lease.
140
- :param str binary_version: BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
141
- :param str lease_name: LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
142
- :param str strategy: Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
143
- :param str emulation_version: EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
144
- :param str ping_time: PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
145
- :param str renew_time: RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
146
- """
147
- pulumi.set(__self__, "binary_version", binary_version)
148
- pulumi.set(__self__, "lease_name", lease_name)
149
- pulumi.set(__self__, "strategy", strategy)
150
- if emulation_version is not None:
151
- pulumi.set(__self__, "emulation_version", emulation_version)
152
- if ping_time is not None:
153
- pulumi.set(__self__, "ping_time", ping_time)
154
- if renew_time is not None:
155
- pulumi.set(__self__, "renew_time", renew_time)
156
-
157
- @property
158
- @pulumi.getter(name="binaryVersion")
159
- def binary_version(self) -> str:
160
- """
161
- BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
162
- """
163
- return pulumi.get(self, "binary_version")
164
-
165
- @property
166
- @pulumi.getter(name="leaseName")
167
- def lease_name(self) -> str:
168
- """
169
- LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
170
- """
171
- return pulumi.get(self, "lease_name")
172
-
173
- @property
174
- @pulumi.getter
175
- def strategy(self) -> str:
176
- """
177
- Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
178
- """
179
- return pulumi.get(self, "strategy")
180
-
181
- @property
182
- @pulumi.getter(name="emulationVersion")
183
- def emulation_version(self) -> Optional[str]:
184
- """
185
- EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
186
- """
187
- return pulumi.get(self, "emulation_version")
188
-
189
- @property
190
- @pulumi.getter(name="pingTime")
191
- def ping_time(self) -> Optional[str]:
192
- """
193
- PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
194
- """
195
- return pulumi.get(self, "ping_time")
196
-
197
- @property
198
- @pulumi.getter(name="renewTime")
199
- def renew_time(self) -> Optional[str]:
200
- """
201
- RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
202
- """
203
- return pulumi.get(self, "renew_time")
204
-
205
-
206
- @pulumi.output_type
207
- class LeaseCandidateSpecPatch(dict):
208
- """
209
- LeaseCandidateSpec is a specification of a Lease.
210
- """
211
- @staticmethod
212
- def __key_warning(key: str):
213
- suggest = None
214
- if key == "binaryVersion":
215
- suggest = "binary_version"
216
- elif key == "emulationVersion":
217
- suggest = "emulation_version"
218
- elif key == "leaseName":
219
- suggest = "lease_name"
220
- elif key == "pingTime":
221
- suggest = "ping_time"
222
- elif key == "renewTime":
223
- suggest = "renew_time"
224
-
225
- if suggest:
226
- pulumi.log.warn(f"Key '{key}' not found in LeaseCandidateSpecPatch. Access the value via the '{suggest}' property getter instead.")
227
-
228
- def __getitem__(self, key: str) -> Any:
229
- LeaseCandidateSpecPatch.__key_warning(key)
230
- return super().__getitem__(key)
231
-
232
- def get(self, key: str, default = None) -> Any:
233
- LeaseCandidateSpecPatch.__key_warning(key)
234
- return super().get(key, default)
235
-
236
- def __init__(__self__, *,
237
- binary_version: Optional[str] = None,
238
- emulation_version: Optional[str] = None,
239
- lease_name: Optional[str] = None,
240
- ping_time: Optional[str] = None,
241
- renew_time: Optional[str] = None,
242
- strategy: Optional[str] = None):
243
- """
244
- LeaseCandidateSpec is a specification of a Lease.
245
- :param str binary_version: BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
246
- :param str emulation_version: EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
247
- :param str lease_name: LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
248
- :param str ping_time: PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
249
- :param str renew_time: RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
250
- :param str strategy: Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
251
- """
252
- if binary_version is not None:
253
- pulumi.set(__self__, "binary_version", binary_version)
254
- if emulation_version is not None:
255
- pulumi.set(__self__, "emulation_version", emulation_version)
256
- if lease_name is not None:
257
- pulumi.set(__self__, "lease_name", lease_name)
258
- if ping_time is not None:
259
- pulumi.set(__self__, "ping_time", ping_time)
260
- if renew_time is not None:
261
- pulumi.set(__self__, "renew_time", renew_time)
262
- if strategy is not None:
263
- pulumi.set(__self__, "strategy", strategy)
264
-
265
- @property
266
- @pulumi.getter(name="binaryVersion")
267
- def binary_version(self) -> Optional[str]:
268
- """
269
- BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
270
- """
271
- return pulumi.get(self, "binary_version")
272
-
273
- @property
274
- @pulumi.getter(name="emulationVersion")
275
- def emulation_version(self) -> Optional[str]:
276
- """
277
- EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
278
- """
279
- return pulumi.get(self, "emulation_version")
280
-
281
- @property
282
- @pulumi.getter(name="leaseName")
283
- def lease_name(self) -> Optional[str]:
284
- """
285
- LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
286
- """
287
- return pulumi.get(self, "lease_name")
288
-
289
- @property
290
- @pulumi.getter(name="pingTime")
291
- def ping_time(self) -> Optional[str]:
292
- """
293
- PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
294
- """
295
- return pulumi.get(self, "ping_time")
296
-
297
- @property
298
- @pulumi.getter(name="renewTime")
299
- def renew_time(self) -> Optional[str]:
300
- """
301
- RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
302
- """
303
- return pulumi.get(self, "renew_time")
304
-
305
- @property
306
- @pulumi.getter
307
- def strategy(self) -> Optional[str]:
308
- """
309
- Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
310
- """
311
- return pulumi.get(self, "strategy")
312
-
313
-
@@ -1,245 +0,0 @@
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 outputs
17
- from ... import core as _core
18
- from ... import meta as _meta
19
- from ._inputs import *
20
-
21
- __all__ = ['ResourceSliceListArgs', 'ResourceSliceList']
22
-
23
- @pulumi.input_type
24
- class ResourceSliceListArgs:
25
- def __init__(__self__, *,
26
- items: pulumi.Input[Sequence[pulumi.Input['ResourceSliceArgs']]],
27
- api_version: Optional[pulumi.Input[str]] = None,
28
- kind: Optional[pulumi.Input[str]] = None,
29
- list_meta: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None,
30
- metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None):
31
- """
32
- The set of arguments for constructing a ResourceSliceList resource.
33
- :param pulumi.Input[Sequence[pulumi.Input['ResourceSliceArgs']]] items: Items is the list of resource ResourceSlices.
34
- :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
35
- :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
36
- :param pulumi.Input['_meta.v1.ListMetaArgs'] list_meta: Standard list metadata
37
- :param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata
38
- """
39
- pulumi.set(__self__, "items", items)
40
- if api_version is not None:
41
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
42
- if kind is not None:
43
- pulumi.set(__self__, "kind", 'ResourceSliceList')
44
- if list_meta is not None:
45
- pulumi.set(__self__, "list_meta", list_meta)
46
- if metadata is not None:
47
- pulumi.set(__self__, "metadata", metadata)
48
-
49
- @property
50
- @pulumi.getter
51
- def items(self) -> pulumi.Input[Sequence[pulumi.Input['ResourceSliceArgs']]]:
52
- """
53
- Items is the list of resource ResourceSlices.
54
- """
55
- return pulumi.get(self, "items")
56
-
57
- @items.setter
58
- def items(self, value: pulumi.Input[Sequence[pulumi.Input['ResourceSliceArgs']]]):
59
- pulumi.set(self, "items", value)
60
-
61
- @property
62
- @pulumi.getter(name="apiVersion")
63
- def api_version(self) -> Optional[pulumi.Input[str]]:
64
- """
65
- 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
66
- """
67
- return pulumi.get(self, "api_version")
68
-
69
- @api_version.setter
70
- def api_version(self, value: Optional[pulumi.Input[str]]):
71
- pulumi.set(self, "api_version", 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(name="listMeta")
87
- def list_meta(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]:
88
- """
89
- Standard list metadata
90
- """
91
- return pulumi.get(self, "list_meta")
92
-
93
- @list_meta.setter
94
- def list_meta(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]):
95
- pulumi.set(self, "list_meta", value)
96
-
97
- @property
98
- @pulumi.getter
99
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]:
100
- """
101
- Standard list metadata
102
- """
103
- return pulumi.get(self, "metadata")
104
-
105
- @metadata.setter
106
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]):
107
- pulumi.set(self, "metadata", value)
108
-
109
-
110
- class ResourceSliceList(pulumi.CustomResource):
111
- @overload
112
- def __init__(__self__,
113
- resource_name: str,
114
- opts: Optional[pulumi.ResourceOptions] = None,
115
- api_version: Optional[pulumi.Input[str]] = None,
116
- items: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ResourceSliceArgs', 'ResourceSliceArgsDict']]]]] = None,
117
- kind: Optional[pulumi.Input[str]] = None,
118
- list_meta: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
119
- metadata: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
120
- __props__=None):
121
- """
122
- ResourceSliceList is a collection of ResourceSlices.
123
-
124
- :param str resource_name: The name of the resource.
125
- :param pulumi.ResourceOptions opts: Options for the resource.
126
- :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
127
- :param pulumi.Input[Sequence[pulumi.Input[Union['ResourceSliceArgs', 'ResourceSliceArgsDict']]]] items: Items is the list of resource ResourceSlices.
128
- :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
129
- :param pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']] list_meta: Standard list metadata
130
- :param pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']] metadata: Standard list metadata
131
- """
132
- ...
133
- @overload
134
- def __init__(__self__,
135
- resource_name: str,
136
- args: ResourceSliceListArgs,
137
- opts: Optional[pulumi.ResourceOptions] = None):
138
- """
139
- ResourceSliceList is a collection of ResourceSlices.
140
-
141
- :param str resource_name: The name of the resource.
142
- :param ResourceSliceListArgs args: The arguments to use to populate this resource's properties.
143
- :param pulumi.ResourceOptions opts: Options for the resource.
144
- """
145
- ...
146
- def __init__(__self__, resource_name: str, *args, **kwargs):
147
- resource_args, opts = _utilities.get_resource_args_opts(ResourceSliceListArgs, pulumi.ResourceOptions, *args, **kwargs)
148
- if resource_args is not None:
149
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
150
- else:
151
- __self__._internal_init(resource_name, *args, **kwargs)
152
-
153
- def _internal_init(__self__,
154
- resource_name: str,
155
- opts: Optional[pulumi.ResourceOptions] = None,
156
- api_version: Optional[pulumi.Input[str]] = None,
157
- items: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ResourceSliceArgs', 'ResourceSliceArgsDict']]]]] = None,
158
- kind: Optional[pulumi.Input[str]] = None,
159
- list_meta: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
160
- metadata: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
161
- __props__=None):
162
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
163
- if not isinstance(opts, pulumi.ResourceOptions):
164
- raise TypeError('Expected resource options to be a ResourceOptions instance')
165
- if opts.id is None:
166
- if __props__ is not None:
167
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
168
- __props__ = ResourceSliceListArgs.__new__(ResourceSliceListArgs)
169
-
170
- __props__.__dict__["api_version"] = 'resource.k8s.io/v1alpha3'
171
- if items is None and not opts.urn:
172
- raise TypeError("Missing required property 'items'")
173
- __props__.__dict__["items"] = items
174
- __props__.__dict__["kind"] = 'ResourceSliceList'
175
- __props__.__dict__["list_meta"] = list_meta
176
- __props__.__dict__["metadata"] = metadata
177
- super(ResourceSliceList, __self__).__init__(
178
- 'kubernetes:resource.k8s.io/v1alpha3:ResourceSliceList',
179
- resource_name,
180
- __props__,
181
- opts)
182
-
183
- @staticmethod
184
- def get(resource_name: str,
185
- id: pulumi.Input[str],
186
- opts: Optional[pulumi.ResourceOptions] = None) -> 'ResourceSliceList':
187
- """
188
- Get an existing ResourceSliceList resource's state with the given name, id, and optional extra
189
- properties used to qualify the lookup.
190
-
191
- :param str resource_name: The unique name of the resulting resource.
192
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
193
- :param pulumi.ResourceOptions opts: Options for the resource.
194
- """
195
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
196
-
197
- __props__ = ResourceSliceListArgs.__new__(ResourceSliceListArgs)
198
-
199
- __props__.__dict__["api_version"] = None
200
- __props__.__dict__["items"] = None
201
- __props__.__dict__["kind"] = None
202
- __props__.__dict__["list_meta"] = None
203
- __props__.__dict__["metadata"] = None
204
- return ResourceSliceList(resource_name, opts=opts, __props__=__props__)
205
-
206
- @property
207
- @pulumi.getter(name="apiVersion")
208
- def api_version(self) -> pulumi.Output[str]:
209
- """
210
- 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
211
- """
212
- return pulumi.get(self, "api_version")
213
-
214
- @property
215
- @pulumi.getter
216
- def items(self) -> pulumi.Output[Sequence['outputs.ResourceSlice']]:
217
- """
218
- Items is the list of resource ResourceSlices.
219
- """
220
- return pulumi.get(self, "items")
221
-
222
- @property
223
- @pulumi.getter
224
- def kind(self) -> pulumi.Output[str]:
225
- """
226
- 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
227
- """
228
- return pulumi.get(self, "kind")
229
-
230
- @property
231
- @pulumi.getter(name="listMeta")
232
- def list_meta(self) -> pulumi.Output['_meta.v1.outputs.ListMeta']:
233
- """
234
- Standard list metadata
235
- """
236
- return pulumi.get(self, "list_meta")
237
-
238
- @property
239
- @pulumi.getter
240
- def metadata(self) -> pulumi.Output['_meta.v1.outputs.ListMeta']:
241
- """
242
- Standard list metadata
243
- """
244
- return pulumi.get(self, "metadata")
245
-