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
@@ -1,334 +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/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
-
@@ -1,216 +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
- from ._inputs import *
19
-
20
- __all__ = ['IPAddressInitArgs', 'IPAddress']
21
-
22
- @pulumi.input_type
23
- class IPAddressInitArgs:
24
- def __init__(__self__, *,
25
- api_version: Optional[pulumi.Input[str]] = None,
26
- kind: Optional[pulumi.Input[str]] = None,
27
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
28
- spec: Optional[pulumi.Input['IPAddressSpecArgs']] = None):
29
- """
30
- The set of arguments for constructing a IPAddress resource.
31
- :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
32
- :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
34
- :param pulumi.Input['IPAddressSpecArgs'] spec: spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
35
- """
36
- if api_version is not None:
37
- pulumi.set(__self__, "api_version", 'networking.k8s.io/v1beta1')
38
- if kind is not None:
39
- pulumi.set(__self__, "kind", 'IPAddress')
40
- if metadata is not None:
41
- pulumi.set(__self__, "metadata", metadata)
42
- if spec is not None:
43
- pulumi.set(__self__, "spec", spec)
44
-
45
- @property
46
- @pulumi.getter(name="apiVersion")
47
- def api_version(self) -> Optional[pulumi.Input[str]]:
48
- """
49
- 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
50
- """
51
- return pulumi.get(self, "api_version")
52
-
53
- @api_version.setter
54
- def api_version(self, value: Optional[pulumi.Input[str]]):
55
- pulumi.set(self, "api_version", value)
56
-
57
- @property
58
- @pulumi.getter
59
- def kind(self) -> Optional[pulumi.Input[str]]:
60
- """
61
- 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
62
- """
63
- return pulumi.get(self, "kind")
64
-
65
- @kind.setter
66
- def kind(self, value: Optional[pulumi.Input[str]]):
67
- pulumi.set(self, "kind", value)
68
-
69
- @property
70
- @pulumi.getter
71
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
72
- """
73
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
74
- """
75
- return pulumi.get(self, "metadata")
76
-
77
- @metadata.setter
78
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
79
- pulumi.set(self, "metadata", value)
80
-
81
- @property
82
- @pulumi.getter
83
- def spec(self) -> Optional[pulumi.Input['IPAddressSpecArgs']]:
84
- """
85
- spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
86
- """
87
- return pulumi.get(self, "spec")
88
-
89
- @spec.setter
90
- def spec(self, value: Optional[pulumi.Input['IPAddressSpecArgs']]):
91
- pulumi.set(self, "spec", value)
92
-
93
-
94
- class IPAddress(pulumi.CustomResource):
95
- @overload
96
- def __init__(__self__,
97
- resource_name: str,
98
- opts: Optional[pulumi.ResourceOptions] = None,
99
- api_version: Optional[pulumi.Input[str]] = None,
100
- kind: Optional[pulumi.Input[str]] = None,
101
- metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
102
- spec: Optional[pulumi.Input[Union['IPAddressSpecArgs', 'IPAddressSpecArgsDict']]] = None,
103
- __props__=None):
104
- """
105
- IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
106
-
107
- :param str resource_name: The name of the resource.
108
- :param pulumi.ResourceOptions opts: Options for the resource.
109
- :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
110
- :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
111
- :param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
112
- :param pulumi.Input[Union['IPAddressSpecArgs', 'IPAddressSpecArgsDict']] spec: spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
113
- """
114
- ...
115
- @overload
116
- def __init__(__self__,
117
- resource_name: str,
118
- args: Optional[IPAddressInitArgs] = None,
119
- opts: Optional[pulumi.ResourceOptions] = None):
120
- """
121
- IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
122
-
123
- :param str resource_name: The name of the resource.
124
- :param IPAddressInitArgs args: The arguments to use to populate this resource's properties.
125
- :param pulumi.ResourceOptions opts: Options for the resource.
126
- """
127
- ...
128
- def __init__(__self__, resource_name: str, *args, **kwargs):
129
- resource_args, opts = _utilities.get_resource_args_opts(IPAddressInitArgs, pulumi.ResourceOptions, *args, **kwargs)
130
- if resource_args is not None:
131
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
132
- else:
133
- __self__._internal_init(resource_name, *args, **kwargs)
134
-
135
- def _internal_init(__self__,
136
- resource_name: str,
137
- opts: Optional[pulumi.ResourceOptions] = None,
138
- api_version: Optional[pulumi.Input[str]] = None,
139
- kind: Optional[pulumi.Input[str]] = None,
140
- metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
141
- spec: Optional[pulumi.Input[Union['IPAddressSpecArgs', 'IPAddressSpecArgsDict']]] = None,
142
- __props__=None):
143
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
144
- if not isinstance(opts, pulumi.ResourceOptions):
145
- raise TypeError('Expected resource options to be a ResourceOptions instance')
146
- if opts.id is None:
147
- if __props__ is not None:
148
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
149
- __props__ = IPAddressInitArgs.__new__(IPAddressInitArgs)
150
-
151
- __props__.__dict__["api_version"] = 'networking.k8s.io/v1beta1'
152
- __props__.__dict__["kind"] = 'IPAddress'
153
- __props__.__dict__["metadata"] = metadata
154
- __props__.__dict__["spec"] = spec
155
- alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1alpha1:IPAddress")])
156
- opts = pulumi.ResourceOptions.merge(opts, alias_opts)
157
- super(IPAddress, __self__).__init__(
158
- 'kubernetes:networking.k8s.io/v1beta1:IPAddress',
159
- resource_name,
160
- __props__,
161
- opts)
162
-
163
- @staticmethod
164
- def get(resource_name: str,
165
- id: pulumi.Input[str],
166
- opts: Optional[pulumi.ResourceOptions] = None) -> 'IPAddress':
167
- """
168
- Get an existing IPAddress resource's state with the given name, id, and optional extra
169
- properties used to qualify the lookup.
170
-
171
- :param str resource_name: The unique name of the resulting resource.
172
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
173
- :param pulumi.ResourceOptions opts: Options for the resource.
174
- """
175
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
176
-
177
- __props__ = IPAddressInitArgs.__new__(IPAddressInitArgs)
178
-
179
- __props__.__dict__["api_version"] = None
180
- __props__.__dict__["kind"] = None
181
- __props__.__dict__["metadata"] = None
182
- __props__.__dict__["spec"] = None
183
- return IPAddress(resource_name, opts=opts, __props__=__props__)
184
-
185
- @property
186
- @pulumi.getter(name="apiVersion")
187
- def api_version(self) -> pulumi.Output[str]:
188
- """
189
- 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
190
- """
191
- return pulumi.get(self, "api_version")
192
-
193
- @property
194
- @pulumi.getter
195
- def kind(self) -> pulumi.Output[str]:
196
- """
197
- 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
198
- """
199
- return pulumi.get(self, "kind")
200
-
201
- @property
202
- @pulumi.getter
203
- def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
204
- """
205
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
206
- """
207
- return pulumi.get(self, "metadata")
208
-
209
- @property
210
- @pulumi.getter
211
- def spec(self) -> pulumi.Output['outputs.IPAddressSpec']:
212
- """
213
- spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
214
- """
215
- return pulumi.get(self, "spec")
216
-