pulumi-kubernetes 4.16.0a1723070102__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.0a1723070102.dist-info → pulumi_kubernetes-4.17.0.dist-info}/METADATA +1 -1
  81. {pulumi_kubernetes-4.16.0a1723070102.dist-info → pulumi_kubernetes-4.17.0.dist-info}/RECORD +83 -51
  82. {pulumi_kubernetes-4.16.0a1723070102.dist-info → pulumi_kubernetes-4.17.0.dist-info}/WHEEL +1 -1
  83. {pulumi_kubernetes-4.16.0a1723070102.dist-info → pulumi_kubernetes-4.17.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,334 @@
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/v1alpha1')
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 == "leaseName":
110
+ suggest = "lease_name"
111
+ elif key == "preferredStrategies":
112
+ suggest = "preferred_strategies"
113
+ elif key == "binaryVersion":
114
+ suggest = "binary_version"
115
+ elif key == "emulationVersion":
116
+ suggest = "emulation_version"
117
+ elif key == "pingTime":
118
+ suggest = "ping_time"
119
+ elif key == "renewTime":
120
+ suggest = "renew_time"
121
+
122
+ if suggest:
123
+ pulumi.log.warn(f"Key '{key}' not found in LeaseCandidateSpec. Access the value via the '{suggest}' property getter instead.")
124
+
125
+ def __getitem__(self, key: str) -> Any:
126
+ LeaseCandidateSpec.__key_warning(key)
127
+ return super().__getitem__(key)
128
+
129
+ def get(self, key: str, default = None) -> Any:
130
+ LeaseCandidateSpec.__key_warning(key)
131
+ return super().get(key, default)
132
+
133
+ def __init__(__self__, *,
134
+ lease_name: str,
135
+ preferred_strategies: Sequence[str],
136
+ binary_version: Optional[str] = None,
137
+ emulation_version: Optional[str] = None,
138
+ ping_time: Optional[str] = None,
139
+ renew_time: Optional[str] = None):
140
+ """
141
+ LeaseCandidateSpec is a specification of a Lease.
142
+ :param str lease_name: LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
143
+ :param Sequence[str] preferred_strategies: PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y
144
+ will be used.
145
+ - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader
146
+ election will not operate the Lease until resolved.
147
+ (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
148
+ :param str binary_version: BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"
149
+ :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"
150
+ :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.
151
+ :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.
152
+ """
153
+ pulumi.set(__self__, "lease_name", lease_name)
154
+ pulumi.set(__self__, "preferred_strategies", preferred_strategies)
155
+ if binary_version is not None:
156
+ pulumi.set(__self__, "binary_version", binary_version)
157
+ if emulation_version is not None:
158
+ pulumi.set(__self__, "emulation_version", emulation_version)
159
+ if ping_time is not None:
160
+ pulumi.set(__self__, "ping_time", ping_time)
161
+ if renew_time is not None:
162
+ pulumi.set(__self__, "renew_time", renew_time)
163
+
164
+ @property
165
+ @pulumi.getter(name="leaseName")
166
+ def lease_name(self) -> str:
167
+ """
168
+ LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
169
+ """
170
+ return pulumi.get(self, "lease_name")
171
+
172
+ @property
173
+ @pulumi.getter(name="preferredStrategies")
174
+ def preferred_strategies(self) -> Sequence[str]:
175
+ """
176
+ PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y
177
+ will be used.
178
+ - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader
179
+ election will not operate the Lease until resolved.
180
+ (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
181
+ """
182
+ return pulumi.get(self, "preferred_strategies")
183
+
184
+ @property
185
+ @pulumi.getter(name="binaryVersion")
186
+ def binary_version(self) -> Optional[str]:
187
+ """
188
+ BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"
189
+ """
190
+ return pulumi.get(self, "binary_version")
191
+
192
+ @property
193
+ @pulumi.getter(name="emulationVersion")
194
+ def emulation_version(self) -> Optional[str]:
195
+ """
196
+ 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"
197
+ """
198
+ return pulumi.get(self, "emulation_version")
199
+
200
+ @property
201
+ @pulumi.getter(name="pingTime")
202
+ def ping_time(self) -> Optional[str]:
203
+ """
204
+ 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.
205
+ """
206
+ return pulumi.get(self, "ping_time")
207
+
208
+ @property
209
+ @pulumi.getter(name="renewTime")
210
+ def renew_time(self) -> Optional[str]:
211
+ """
212
+ 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.
213
+ """
214
+ return pulumi.get(self, "renew_time")
215
+
216
+
217
+ @pulumi.output_type
218
+ class LeaseCandidateSpecPatch(dict):
219
+ """
220
+ LeaseCandidateSpec is a specification of a Lease.
221
+ """
222
+ @staticmethod
223
+ def __key_warning(key: str):
224
+ suggest = None
225
+ if key == "binaryVersion":
226
+ suggest = "binary_version"
227
+ elif key == "emulationVersion":
228
+ suggest = "emulation_version"
229
+ elif key == "leaseName":
230
+ suggest = "lease_name"
231
+ elif key == "pingTime":
232
+ suggest = "ping_time"
233
+ elif key == "preferredStrategies":
234
+ suggest = "preferred_strategies"
235
+ elif key == "renewTime":
236
+ suggest = "renew_time"
237
+
238
+ if suggest:
239
+ pulumi.log.warn(f"Key '{key}' not found in LeaseCandidateSpecPatch. Access the value via the '{suggest}' property getter instead.")
240
+
241
+ def __getitem__(self, key: str) -> Any:
242
+ LeaseCandidateSpecPatch.__key_warning(key)
243
+ return super().__getitem__(key)
244
+
245
+ def get(self, key: str, default = None) -> Any:
246
+ LeaseCandidateSpecPatch.__key_warning(key)
247
+ return super().get(key, default)
248
+
249
+ def __init__(__self__, *,
250
+ binary_version: Optional[str] = None,
251
+ emulation_version: Optional[str] = None,
252
+ lease_name: Optional[str] = None,
253
+ ping_time: Optional[str] = None,
254
+ preferred_strategies: Optional[Sequence[str]] = None,
255
+ renew_time: Optional[str] = None):
256
+ """
257
+ LeaseCandidateSpec is a specification of a Lease.
258
+ :param str binary_version: BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"
259
+ :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"
260
+ :param str lease_name: LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
261
+ :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.
262
+ :param Sequence[str] preferred_strategies: PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y
263
+ will be used.
264
+ - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader
265
+ election will not operate the Lease until resolved.
266
+ (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
267
+ :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.
268
+ """
269
+ if binary_version is not None:
270
+ pulumi.set(__self__, "binary_version", binary_version)
271
+ if emulation_version is not None:
272
+ pulumi.set(__self__, "emulation_version", emulation_version)
273
+ if lease_name is not None:
274
+ pulumi.set(__self__, "lease_name", lease_name)
275
+ if ping_time is not None:
276
+ pulumi.set(__self__, "ping_time", ping_time)
277
+ if preferred_strategies is not None:
278
+ pulumi.set(__self__, "preferred_strategies", preferred_strategies)
279
+ if renew_time is not None:
280
+ pulumi.set(__self__, "renew_time", renew_time)
281
+
282
+ @property
283
+ @pulumi.getter(name="binaryVersion")
284
+ def binary_version(self) -> Optional[str]:
285
+ """
286
+ BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"
287
+ """
288
+ return pulumi.get(self, "binary_version")
289
+
290
+ @property
291
+ @pulumi.getter(name="emulationVersion")
292
+ def emulation_version(self) -> Optional[str]:
293
+ """
294
+ 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"
295
+ """
296
+ return pulumi.get(self, "emulation_version")
297
+
298
+ @property
299
+ @pulumi.getter(name="leaseName")
300
+ def lease_name(self) -> Optional[str]:
301
+ """
302
+ LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
303
+ """
304
+ return pulumi.get(self, "lease_name")
305
+
306
+ @property
307
+ @pulumi.getter(name="pingTime")
308
+ def ping_time(self) -> Optional[str]:
309
+ """
310
+ 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.
311
+ """
312
+ return pulumi.get(self, "ping_time")
313
+
314
+ @property
315
+ @pulumi.getter(name="preferredStrategies")
316
+ def preferred_strategies(self) -> Optional[Sequence[str]]:
317
+ """
318
+ PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y
319
+ will be used.
320
+ - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader
321
+ election will not operate the Lease until resolved.
322
+ (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
323
+ """
324
+ return pulumi.get(self, "preferred_strategies")
325
+
326
+ @property
327
+ @pulumi.getter(name="renewTime")
328
+ def renew_time(self) -> Optional[str]:
329
+ """
330
+ 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.
331
+ """
332
+ return pulumi.get(self, "renew_time")
333
+
334
+
@@ -113,19 +113,11 @@ class Service(pulumi.CustomResource):
113
113
  1. Service object exists.
114
114
  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds
115
115
  for any stragglers.
116
- 3. The endpoints objects target some number of living objects (unless the Service is
117
- an "empty headless" Service [1] or a Service with '.spec.type: ExternalName').
116
+ 3. There are no "not ready" endpoints -- unless the Service is an "empty
117
+ headless" Service [1], a Service with '.spec.type: ExternalName', or a Service
118
+ without a selector.
118
119
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
119
120
 
120
- Known limitations:
121
- Services targeting ReplicaSets (and, by extension, Deployments,
122
- StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time
123
- out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on
124
- '.metadata.annotations' for the Service. Work to handle this case is in progress [2].
125
-
126
- [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
127
- [2] https://github.com/pulumi/pulumi-kubernetes/pull/703
128
-
129
121
  If the Service has not reached a Ready state after 10 minutes, it will
130
122
  time out and mark the resource update as Failed. You can override the default timeout value
131
123
  by setting the 'customTimeouts' option on the resource.
@@ -192,19 +184,11 @@ class Service(pulumi.CustomResource):
192
184
  1. Service object exists.
193
185
  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds
194
186
  for any stragglers.
195
- 3. The endpoints objects target some number of living objects (unless the Service is
196
- an "empty headless" Service [1] or a Service with '.spec.type: ExternalName').
187
+ 3. There are no "not ready" endpoints -- unless the Service is an "empty
188
+ headless" Service [1], a Service with '.spec.type: ExternalName', or a Service
189
+ without a selector.
197
190
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
198
191
 
199
- Known limitations:
200
- Services targeting ReplicaSets (and, by extension, Deployments,
201
- StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time
202
- out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on
203
- '.metadata.annotations' for the Service. Work to handle this case is in progress [2].
204
-
205
- [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
206
- [2] https://github.com/pulumi/pulumi-kubernetes/pull/703
207
-
208
192
  If the Service has not reached a Ready state after 10 minutes, it will
209
193
  time out and mark the resource update as Failed. You can override the default timeout value
210
194
  by setting the 'customTimeouts' option on the resource.
@@ -119,19 +119,11 @@ class ServicePatch(pulumi.CustomResource):
119
119
  1. Service object exists.
120
120
  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds
121
121
  for any stragglers.
122
- 3. The endpoints objects target some number of living objects (unless the Service is
123
- an "empty headless" Service [1] or a Service with '.spec.type: ExternalName').
122
+ 3. There are no "not ready" endpoints -- unless the Service is an "empty
123
+ headless" Service [1], a Service with '.spec.type: ExternalName', or a Service
124
+ without a selector.
124
125
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
125
126
 
126
- Known limitations:
127
- Services targeting ReplicaSets (and, by extension, Deployments,
128
- StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time
129
- out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on
130
- '.metadata.annotations' for the Service. Work to handle this case is in progress [2].
131
-
132
- [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
133
- [2] https://github.com/pulumi/pulumi-kubernetes/pull/703
134
-
135
127
  If the Service has not reached a Ready state after 10 minutes, it will
136
128
  time out and mark the resource update as Failed. You can override the default timeout value
137
129
  by setting the 'customTimeouts' option on the resource.
@@ -166,19 +158,11 @@ class ServicePatch(pulumi.CustomResource):
166
158
  1. Service object exists.
167
159
  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds
168
160
  for any stragglers.
169
- 3. The endpoints objects target some number of living objects (unless the Service is
170
- an "empty headless" Service [1] or a Service with '.spec.type: ExternalName').
161
+ 3. There are no "not ready" endpoints -- unless the Service is an "empty
162
+ headless" Service [1], a Service with '.spec.type: ExternalName', or a Service
163
+ without a selector.
171
164
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
172
165
 
173
- Known limitations:
174
- Services targeting ReplicaSets (and, by extension, Deployments,
175
- StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time
176
- out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on
177
- '.metadata.annotations' for the Service. Work to handle this case is in progress [2].
178
-
179
- [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
180
- [2] https://github.com/pulumi/pulumi-kubernetes/pull/703
181
-
182
166
  If the Service has not reached a Ready state after 10 minutes, it will
183
167
  time out and mark the resource update as Failed. You can override the default timeout value
184
168
  by setting the 'customTimeouts' option on the resource.