pulumi-kubernetes 4.17.0__py3-none-any.whl → 4.17.0a1723228048__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 +2 -42
  2. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +17 -18
  3. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +17 -18
  4. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +17 -18
  5. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +17 -18
  6. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +17 -18
  7. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +17 -18
  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 +27 -15
  13. pulumi_kubernetes/batch/v1/outputs.py +20 -12
  14. pulumi_kubernetes/coordination/__init__.py +0 -3
  15. pulumi_kubernetes/coordination/v1/_inputs.py +14 -94
  16. pulumi_kubernetes/coordination/v1/outputs.py +10 -62
  17. pulumi_kubernetes/core/v1/Service.py +22 -6
  18. pulumi_kubernetes/core/v1/ServicePatch.py +22 -6
  19. pulumi_kubernetes/core/v1/_inputs.py +206 -961
  20. pulumi_kubernetes/core/v1/outputs.py +163 -1038
  21. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +0 -2
  22. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +0 -2
  23. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +0 -2
  24. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +0 -2
  25. pulumi_kubernetes/networking/v1beta1/__init__.py +0 -6
  26. pulumi_kubernetes/networking/v1beta1/_inputs.py +0 -599
  27. pulumi_kubernetes/networking/v1beta1/outputs.py +0 -461
  28. pulumi_kubernetes/pulumi-plugin.json +1 -1
  29. pulumi_kubernetes/resource/__init__.py +0 -3
  30. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  31. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  32. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  33. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  34. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +0 -2
  35. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +0 -2
  36. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  37. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  38. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  39. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  40. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +0 -2
  41. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +0 -2
  42. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +0 -2
  43. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +0 -2
  44. pulumi_kubernetes/storage/v1beta1/__init__.py +0 -3
  45. pulumi_kubernetes/storage/v1beta1/_inputs.py +0 -123
  46. pulumi_kubernetes/storage/v1beta1/outputs.py +0 -94
  47. pulumi_kubernetes/yaml/yaml.py +0 -102
  48. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/METADATA +1 -1
  49. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/RECORD +51 -83
  50. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/WHEEL +1 -1
  51. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +0 -214
  52. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +0 -215
  53. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +0 -226
  54. pulumi_kubernetes/coordination/v1alpha1/__init__.py +0 -12
  55. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +0 -418
  56. pulumi_kubernetes/coordination/v1alpha1/outputs.py +0 -334
  57. pulumi_kubernetes/networking/v1beta1/IPAddress.py +0 -216
  58. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +0 -215
  59. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +0 -228
  60. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +0 -226
  61. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +0 -215
  62. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +0 -238
  63. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +0 -236
  64. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +0 -216
  65. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +0 -247
  66. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +0 -231
  67. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +0 -215
  68. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +0 -242
  69. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +0 -232
  70. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +0 -216
  71. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +0 -243
  72. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +0 -229
  73. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +0 -215
  74. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +0 -240
  75. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +0 -246
  76. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +0 -257
  77. pulumi_kubernetes/resource/v1alpha3/__init__.py +0 -23
  78. pulumi_kubernetes/resource/v1alpha3/_inputs.py +0 -3924
  79. pulumi_kubernetes/resource/v1alpha3/outputs.py +0 -3327
  80. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +0 -252
  81. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +0 -215
  82. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +0 -263
  83. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/top_level.txt +0 -0
@@ -37,28 +37,20 @@ if not MYPY:
37
37
  """
38
38
  holder_identity: NotRequired[pulumi.Input[str]]
39
39
  """
40
- holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
40
+ holderIdentity contains the identity of the holder of a current lease.
41
41
  """
42
42
  lease_duration_seconds: NotRequired[pulumi.Input[int]]
43
43
  """
44
- leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
44
+ leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
45
45
  """
46
46
  lease_transitions: NotRequired[pulumi.Input[int]]
47
47
  """
48
48
  leaseTransitions is the number of transitions of a lease between holders.
49
49
  """
50
- preferred_holder: NotRequired[pulumi.Input[str]]
51
- """
52
- PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
53
- """
54
50
  renew_time: NotRequired[pulumi.Input[str]]
55
51
  """
56
52
  renewTime is a time when the current holder of a lease has last updated the lease.
57
53
  """
58
- strategy: NotRequired[pulumi.Input[str]]
59
- """
60
- Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
61
- """
62
54
  elif False:
63
55
  LeaseSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
64
56
 
@@ -69,18 +61,14 @@ class LeaseSpecPatchArgs:
69
61
  holder_identity: Optional[pulumi.Input[str]] = None,
70
62
  lease_duration_seconds: Optional[pulumi.Input[int]] = None,
71
63
  lease_transitions: Optional[pulumi.Input[int]] = None,
72
- preferred_holder: Optional[pulumi.Input[str]] = None,
73
- renew_time: Optional[pulumi.Input[str]] = None,
74
- strategy: Optional[pulumi.Input[str]] = None):
64
+ renew_time: Optional[pulumi.Input[str]] = None):
75
65
  """
76
66
  LeaseSpec is a specification of a Lease.
77
67
  :param pulumi.Input[str] acquire_time: acquireTime is a time when the current lease was acquired.
78
- :param pulumi.Input[str] holder_identity: holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
79
- :param pulumi.Input[int] lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
68
+ :param pulumi.Input[str] holder_identity: holderIdentity contains the identity of the holder of a current lease.
69
+ :param pulumi.Input[int] lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
80
70
  :param pulumi.Input[int] lease_transitions: leaseTransitions is the number of transitions of a lease between holders.
81
- :param pulumi.Input[str] preferred_holder: PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
82
71
  :param pulumi.Input[str] renew_time: renewTime is a time when the current holder of a lease has last updated the lease.
83
- :param pulumi.Input[str] strategy: Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
84
72
  """
85
73
  if acquire_time is not None:
86
74
  pulumi.set(__self__, "acquire_time", acquire_time)
@@ -90,12 +78,8 @@ class LeaseSpecPatchArgs:
90
78
  pulumi.set(__self__, "lease_duration_seconds", lease_duration_seconds)
91
79
  if lease_transitions is not None:
92
80
  pulumi.set(__self__, "lease_transitions", lease_transitions)
93
- if preferred_holder is not None:
94
- pulumi.set(__self__, "preferred_holder", preferred_holder)
95
81
  if renew_time is not None:
96
82
  pulumi.set(__self__, "renew_time", renew_time)
97
- if strategy is not None:
98
- pulumi.set(__self__, "strategy", strategy)
99
83
 
100
84
  @property
101
85
  @pulumi.getter(name="acquireTime")
@@ -113,7 +97,7 @@ class LeaseSpecPatchArgs:
113
97
  @pulumi.getter(name="holderIdentity")
114
98
  def holder_identity(self) -> Optional[pulumi.Input[str]]:
115
99
  """
116
- holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
100
+ holderIdentity contains the identity of the holder of a current lease.
117
101
  """
118
102
  return pulumi.get(self, "holder_identity")
119
103
 
@@ -125,7 +109,7 @@ class LeaseSpecPatchArgs:
125
109
  @pulumi.getter(name="leaseDurationSeconds")
126
110
  def lease_duration_seconds(self) -> Optional[pulumi.Input[int]]:
127
111
  """
128
- leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
112
+ leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
129
113
  """
130
114
  return pulumi.get(self, "lease_duration_seconds")
131
115
 
@@ -145,18 +129,6 @@ class LeaseSpecPatchArgs:
145
129
  def lease_transitions(self, value: Optional[pulumi.Input[int]]):
146
130
  pulumi.set(self, "lease_transitions", value)
147
131
 
148
- @property
149
- @pulumi.getter(name="preferredHolder")
150
- def preferred_holder(self) -> Optional[pulumi.Input[str]]:
151
- """
152
- PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
153
- """
154
- return pulumi.get(self, "preferred_holder")
155
-
156
- @preferred_holder.setter
157
- def preferred_holder(self, value: Optional[pulumi.Input[str]]):
158
- pulumi.set(self, "preferred_holder", value)
159
-
160
132
  @property
161
133
  @pulumi.getter(name="renewTime")
162
134
  def renew_time(self) -> Optional[pulumi.Input[str]]:
@@ -169,18 +141,6 @@ class LeaseSpecPatchArgs:
169
141
  def renew_time(self, value: Optional[pulumi.Input[str]]):
170
142
  pulumi.set(self, "renew_time", value)
171
143
 
172
- @property
173
- @pulumi.getter
174
- def strategy(self) -> Optional[pulumi.Input[str]]:
175
- """
176
- Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
177
- """
178
- return pulumi.get(self, "strategy")
179
-
180
- @strategy.setter
181
- def strategy(self, value: Optional[pulumi.Input[str]]):
182
- pulumi.set(self, "strategy", value)
183
-
184
144
 
185
145
  if not MYPY:
186
146
  class LeaseSpecArgsDict(TypedDict):
@@ -193,28 +153,20 @@ if not MYPY:
193
153
  """
194
154
  holder_identity: NotRequired[pulumi.Input[str]]
195
155
  """
196
- holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
156
+ holderIdentity contains the identity of the holder of a current lease.
197
157
  """
198
158
  lease_duration_seconds: NotRequired[pulumi.Input[int]]
199
159
  """
200
- leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
160
+ leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
201
161
  """
202
162
  lease_transitions: NotRequired[pulumi.Input[int]]
203
163
  """
204
164
  leaseTransitions is the number of transitions of a lease between holders.
205
165
  """
206
- preferred_holder: NotRequired[pulumi.Input[str]]
207
- """
208
- PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
209
- """
210
166
  renew_time: NotRequired[pulumi.Input[str]]
211
167
  """
212
168
  renewTime is a time when the current holder of a lease has last updated the lease.
213
169
  """
214
- strategy: NotRequired[pulumi.Input[str]]
215
- """
216
- Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
217
- """
218
170
  elif False:
219
171
  LeaseSpecArgsDict: TypeAlias = Mapping[str, Any]
220
172
 
@@ -225,18 +177,14 @@ class LeaseSpecArgs:
225
177
  holder_identity: Optional[pulumi.Input[str]] = None,
226
178
  lease_duration_seconds: Optional[pulumi.Input[int]] = None,
227
179
  lease_transitions: Optional[pulumi.Input[int]] = None,
228
- preferred_holder: Optional[pulumi.Input[str]] = None,
229
- renew_time: Optional[pulumi.Input[str]] = None,
230
- strategy: Optional[pulumi.Input[str]] = None):
180
+ renew_time: Optional[pulumi.Input[str]] = None):
231
181
  """
232
182
  LeaseSpec is a specification of a Lease.
233
183
  :param pulumi.Input[str] acquire_time: acquireTime is a time when the current lease was acquired.
234
- :param pulumi.Input[str] holder_identity: holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
235
- :param pulumi.Input[int] lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
184
+ :param pulumi.Input[str] holder_identity: holderIdentity contains the identity of the holder of a current lease.
185
+ :param pulumi.Input[int] lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
236
186
  :param pulumi.Input[int] lease_transitions: leaseTransitions is the number of transitions of a lease between holders.
237
- :param pulumi.Input[str] preferred_holder: PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
238
187
  :param pulumi.Input[str] renew_time: renewTime is a time when the current holder of a lease has last updated the lease.
239
- :param pulumi.Input[str] strategy: Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
240
188
  """
241
189
  if acquire_time is not None:
242
190
  pulumi.set(__self__, "acquire_time", acquire_time)
@@ -246,12 +194,8 @@ class LeaseSpecArgs:
246
194
  pulumi.set(__self__, "lease_duration_seconds", lease_duration_seconds)
247
195
  if lease_transitions is not None:
248
196
  pulumi.set(__self__, "lease_transitions", lease_transitions)
249
- if preferred_holder is not None:
250
- pulumi.set(__self__, "preferred_holder", preferred_holder)
251
197
  if renew_time is not None:
252
198
  pulumi.set(__self__, "renew_time", renew_time)
253
- if strategy is not None:
254
- pulumi.set(__self__, "strategy", strategy)
255
199
 
256
200
  @property
257
201
  @pulumi.getter(name="acquireTime")
@@ -269,7 +213,7 @@ class LeaseSpecArgs:
269
213
  @pulumi.getter(name="holderIdentity")
270
214
  def holder_identity(self) -> Optional[pulumi.Input[str]]:
271
215
  """
272
- holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
216
+ holderIdentity contains the identity of the holder of a current lease.
273
217
  """
274
218
  return pulumi.get(self, "holder_identity")
275
219
 
@@ -281,7 +225,7 @@ class LeaseSpecArgs:
281
225
  @pulumi.getter(name="leaseDurationSeconds")
282
226
  def lease_duration_seconds(self) -> Optional[pulumi.Input[int]]:
283
227
  """
284
- leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
228
+ leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
285
229
  """
286
230
  return pulumi.get(self, "lease_duration_seconds")
287
231
 
@@ -301,18 +245,6 @@ class LeaseSpecArgs:
301
245
  def lease_transitions(self, value: Optional[pulumi.Input[int]]):
302
246
  pulumi.set(self, "lease_transitions", value)
303
247
 
304
- @property
305
- @pulumi.getter(name="preferredHolder")
306
- def preferred_holder(self) -> Optional[pulumi.Input[str]]:
307
- """
308
- PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
309
- """
310
- return pulumi.get(self, "preferred_holder")
311
-
312
- @preferred_holder.setter
313
- def preferred_holder(self, value: Optional[pulumi.Input[str]]):
314
- pulumi.set(self, "preferred_holder", value)
315
-
316
248
  @property
317
249
  @pulumi.getter(name="renewTime")
318
250
  def renew_time(self) -> Optional[pulumi.Input[str]]:
@@ -325,18 +257,6 @@ class LeaseSpecArgs:
325
257
  def renew_time(self, value: Optional[pulumi.Input[str]]):
326
258
  pulumi.set(self, "renew_time", value)
327
259
 
328
- @property
329
- @pulumi.getter
330
- def strategy(self) -> Optional[pulumi.Input[str]]:
331
- """
332
- Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
333
- """
334
- return pulumi.get(self, "strategy")
335
-
336
- @strategy.setter
337
- def strategy(self, value: Optional[pulumi.Input[str]]):
338
- pulumi.set(self, "strategy", value)
339
-
340
260
 
341
261
  if not MYPY:
342
262
  class LeaseArgsDict(TypedDict):
@@ -114,8 +114,6 @@ class LeaseSpec(dict):
114
114
  suggest = "lease_duration_seconds"
115
115
  elif key == "leaseTransitions":
116
116
  suggest = "lease_transitions"
117
- elif key == "preferredHolder":
118
- suggest = "preferred_holder"
119
117
  elif key == "renewTime":
120
118
  suggest = "renew_time"
121
119
 
@@ -135,18 +133,14 @@ class LeaseSpec(dict):
135
133
  holder_identity: Optional[str] = None,
136
134
  lease_duration_seconds: Optional[int] = None,
137
135
  lease_transitions: Optional[int] = None,
138
- preferred_holder: Optional[str] = None,
139
- renew_time: Optional[str] = None,
140
- strategy: Optional[str] = None):
136
+ renew_time: Optional[str] = None):
141
137
  """
142
138
  LeaseSpec is a specification of a Lease.
143
139
  :param str acquire_time: acquireTime is a time when the current lease was acquired.
144
- :param str holder_identity: holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
145
- :param int lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
140
+ :param str holder_identity: holderIdentity contains the identity of the holder of a current lease.
141
+ :param int lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
146
142
  :param int lease_transitions: leaseTransitions is the number of transitions of a lease between holders.
147
- :param str preferred_holder: PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
148
143
  :param str renew_time: renewTime is a time when the current holder of a lease has last updated the lease.
149
- :param str strategy: Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
150
144
  """
151
145
  if acquire_time is not None:
152
146
  pulumi.set(__self__, "acquire_time", acquire_time)
@@ -156,12 +150,8 @@ class LeaseSpec(dict):
156
150
  pulumi.set(__self__, "lease_duration_seconds", lease_duration_seconds)
157
151
  if lease_transitions is not None:
158
152
  pulumi.set(__self__, "lease_transitions", lease_transitions)
159
- if preferred_holder is not None:
160
- pulumi.set(__self__, "preferred_holder", preferred_holder)
161
153
  if renew_time is not None:
162
154
  pulumi.set(__self__, "renew_time", renew_time)
163
- if strategy is not None:
164
- pulumi.set(__self__, "strategy", strategy)
165
155
 
166
156
  @property
167
157
  @pulumi.getter(name="acquireTime")
@@ -175,7 +165,7 @@ class LeaseSpec(dict):
175
165
  @pulumi.getter(name="holderIdentity")
176
166
  def holder_identity(self) -> Optional[str]:
177
167
  """
178
- holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
168
+ holderIdentity contains the identity of the holder of a current lease.
179
169
  """
180
170
  return pulumi.get(self, "holder_identity")
181
171
 
@@ -183,7 +173,7 @@ class LeaseSpec(dict):
183
173
  @pulumi.getter(name="leaseDurationSeconds")
184
174
  def lease_duration_seconds(self) -> Optional[int]:
185
175
  """
186
- leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
176
+ leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
187
177
  """
188
178
  return pulumi.get(self, "lease_duration_seconds")
189
179
 
@@ -195,14 +185,6 @@ class LeaseSpec(dict):
195
185
  """
196
186
  return pulumi.get(self, "lease_transitions")
197
187
 
198
- @property
199
- @pulumi.getter(name="preferredHolder")
200
- def preferred_holder(self) -> Optional[str]:
201
- """
202
- PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
203
- """
204
- return pulumi.get(self, "preferred_holder")
205
-
206
188
  @property
207
189
  @pulumi.getter(name="renewTime")
208
190
  def renew_time(self) -> Optional[str]:
@@ -211,14 +193,6 @@ class LeaseSpec(dict):
211
193
  """
212
194
  return pulumi.get(self, "renew_time")
213
195
 
214
- @property
215
- @pulumi.getter
216
- def strategy(self) -> Optional[str]:
217
- """
218
- Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
219
- """
220
- return pulumi.get(self, "strategy")
221
-
222
196
 
223
197
  @pulumi.output_type
224
198
  class LeaseSpecPatch(dict):
@@ -236,8 +210,6 @@ class LeaseSpecPatch(dict):
236
210
  suggest = "lease_duration_seconds"
237
211
  elif key == "leaseTransitions":
238
212
  suggest = "lease_transitions"
239
- elif key == "preferredHolder":
240
- suggest = "preferred_holder"
241
213
  elif key == "renewTime":
242
214
  suggest = "renew_time"
243
215
 
@@ -257,18 +229,14 @@ class LeaseSpecPatch(dict):
257
229
  holder_identity: Optional[str] = None,
258
230
  lease_duration_seconds: Optional[int] = None,
259
231
  lease_transitions: Optional[int] = None,
260
- preferred_holder: Optional[str] = None,
261
- renew_time: Optional[str] = None,
262
- strategy: Optional[str] = None):
232
+ renew_time: Optional[str] = None):
263
233
  """
264
234
  LeaseSpec is a specification of a Lease.
265
235
  :param str acquire_time: acquireTime is a time when the current lease was acquired.
266
- :param str holder_identity: holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
267
- :param int lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
236
+ :param str holder_identity: holderIdentity contains the identity of the holder of a current lease.
237
+ :param int lease_duration_seconds: leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
268
238
  :param int lease_transitions: leaseTransitions is the number of transitions of a lease between holders.
269
- :param str preferred_holder: PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
270
239
  :param str renew_time: renewTime is a time when the current holder of a lease has last updated the lease.
271
- :param str strategy: Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
272
240
  """
273
241
  if acquire_time is not None:
274
242
  pulumi.set(__self__, "acquire_time", acquire_time)
@@ -278,12 +246,8 @@ class LeaseSpecPatch(dict):
278
246
  pulumi.set(__self__, "lease_duration_seconds", lease_duration_seconds)
279
247
  if lease_transitions is not None:
280
248
  pulumi.set(__self__, "lease_transitions", lease_transitions)
281
- if preferred_holder is not None:
282
- pulumi.set(__self__, "preferred_holder", preferred_holder)
283
249
  if renew_time is not None:
284
250
  pulumi.set(__self__, "renew_time", renew_time)
285
- if strategy is not None:
286
- pulumi.set(__self__, "strategy", strategy)
287
251
 
288
252
  @property
289
253
  @pulumi.getter(name="acquireTime")
@@ -297,7 +261,7 @@ class LeaseSpecPatch(dict):
297
261
  @pulumi.getter(name="holderIdentity")
298
262
  def holder_identity(self) -> Optional[str]:
299
263
  """
300
- holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
264
+ holderIdentity contains the identity of the holder of a current lease.
301
265
  """
302
266
  return pulumi.get(self, "holder_identity")
303
267
 
@@ -305,7 +269,7 @@ class LeaseSpecPatch(dict):
305
269
  @pulumi.getter(name="leaseDurationSeconds")
306
270
  def lease_duration_seconds(self) -> Optional[int]:
307
271
  """
308
- leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
272
+ leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
309
273
  """
310
274
  return pulumi.get(self, "lease_duration_seconds")
311
275
 
@@ -317,14 +281,6 @@ class LeaseSpecPatch(dict):
317
281
  """
318
282
  return pulumi.get(self, "lease_transitions")
319
283
 
320
- @property
321
- @pulumi.getter(name="preferredHolder")
322
- def preferred_holder(self) -> Optional[str]:
323
- """
324
- PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
325
- """
326
- return pulumi.get(self, "preferred_holder")
327
-
328
284
  @property
329
285
  @pulumi.getter(name="renewTime")
330
286
  def renew_time(self) -> Optional[str]:
@@ -333,12 +289,4 @@ class LeaseSpecPatch(dict):
333
289
  """
334
290
  return pulumi.get(self, "renew_time")
335
291
 
336
- @property
337
- @pulumi.getter
338
- def strategy(self) -> Optional[str]:
339
- """
340
- Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
341
- """
342
- return pulumi.get(self, "strategy")
343
-
344
292
 
@@ -113,11 +113,19 @@ 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. 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.
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').
119
118
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
120
119
 
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
+
121
129
  If the Service has not reached a Ready state after 10 minutes, it will
122
130
  time out and mark the resource update as Failed. You can override the default timeout value
123
131
  by setting the 'customTimeouts' option on the resource.
@@ -184,11 +192,19 @@ class Service(pulumi.CustomResource):
184
192
  1. Service object exists.
185
193
  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds
186
194
  for any stragglers.
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.
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').
190
197
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
191
198
 
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
+
192
208
  If the Service has not reached a Ready state after 10 minutes, it will
193
209
  time out and mark the resource update as Failed. You can override the default timeout value
194
210
  by setting the 'customTimeouts' option on the resource.
@@ -119,11 +119,19 @@ 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. 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.
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').
125
124
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
126
125
 
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
+
127
135
  If the Service has not reached a Ready state after 10 minutes, it will
128
136
  time out and mark the resource update as Failed. You can override the default timeout value
129
137
  by setting the 'customTimeouts' option on the resource.
@@ -158,11 +166,19 @@ class ServicePatch(pulumi.CustomResource):
158
166
  1. Service object exists.
159
167
  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds
160
168
  for any stragglers.
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.
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').
164
171
  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer').
165
172
 
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
+
166
182
  If the Service has not reached a Ready state after 10 minutes, it will
167
183
  time out and mark the resource update as Failed. You can override the default timeout value
168
184
  by setting the 'customTimeouts' option on the resource.