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

@@ -21,6 +21,7 @@ __all__ = ['ProviderArgs', 'Provider']
21
21
  class ProviderArgs:
22
22
  def __init__(__self__, *,
23
23
  cluster: Optional[pulumi.Input[str]] = None,
24
+ cluster_identifier: Optional[pulumi.Input[str]] = None,
24
25
  context: Optional[pulumi.Input[str]] = None,
25
26
  delete_unreachable: Optional[pulumi.Input[bool]] = None,
26
27
  enable_config_map_mutable: Optional[pulumi.Input[bool]] = None,
@@ -36,6 +37,11 @@ class ProviderArgs:
36
37
  """
37
38
  The set of arguments for constructing a Provider resource.
38
39
  :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use.
40
+ :param pulumi.Input[str] cluster_identifier: If present, this value will control the provider's replacement behavior. In particular, the provider will _only_ be replaced when `clusterIdentifier` changes; all other changes to provider configuration will be treated as updates.
41
+
42
+ Kubernetes does not yet offer an API for cluster identification, so Pulumi uses heuristics to decide when a provider resource should be replaced or updated. These heuristics can sometimes lead to destructive replace operations when an update would be more appropriate, or vice versa.
43
+
44
+ Use `clusterIdentifier` for more fine-grained control of the provider resource's lifecycle.
39
45
  :param pulumi.Input[str] context: If present, the name of the kubeconfig context to use.
40
46
  :param pulumi.Input[bool] delete_unreachable: If present and set to true, the provider will delete resources associated with an unreachable Kubernetes cluster from Pulumi state
41
47
  :param pulumi.Input[bool] enable_config_map_mutable: BETA FEATURE - If present and set to true, allow ConfigMaps to be mutated.
@@ -69,6 +75,8 @@ class ProviderArgs:
69
75
  """
70
76
  if cluster is not None:
71
77
  pulumi.set(__self__, "cluster", cluster)
78
+ if cluster_identifier is not None:
79
+ pulumi.set(__self__, "cluster_identifier", cluster_identifier)
72
80
  if context is not None:
73
81
  pulumi.set(__self__, "context", context)
74
82
  if delete_unreachable is None:
@@ -120,6 +128,22 @@ class ProviderArgs:
120
128
  def cluster(self, value: Optional[pulumi.Input[str]]):
121
129
  pulumi.set(self, "cluster", value)
122
130
 
131
+ @property
132
+ @pulumi.getter(name="clusterIdentifier")
133
+ def cluster_identifier(self) -> Optional[pulumi.Input[str]]:
134
+ """
135
+ If present, this value will control the provider's replacement behavior. In particular, the provider will _only_ be replaced when `clusterIdentifier` changes; all other changes to provider configuration will be treated as updates.
136
+
137
+ Kubernetes does not yet offer an API for cluster identification, so Pulumi uses heuristics to decide when a provider resource should be replaced or updated. These heuristics can sometimes lead to destructive replace operations when an update would be more appropriate, or vice versa.
138
+
139
+ Use `clusterIdentifier` for more fine-grained control of the provider resource's lifecycle.
140
+ """
141
+ return pulumi.get(self, "cluster_identifier")
142
+
143
+ @cluster_identifier.setter
144
+ def cluster_identifier(self, value: Optional[pulumi.Input[str]]):
145
+ pulumi.set(self, "cluster_identifier", value)
146
+
123
147
  @property
124
148
  @pulumi.getter
125
149
  def context(self) -> Optional[pulumi.Input[str]]:
@@ -289,6 +313,7 @@ class Provider(pulumi.ProviderResource):
289
313
  resource_name: str,
290
314
  opts: Optional[pulumi.ResourceOptions] = None,
291
315
  cluster: Optional[pulumi.Input[str]] = None,
316
+ cluster_identifier: Optional[pulumi.Input[str]] = None,
292
317
  context: Optional[pulumi.Input[str]] = None,
293
318
  delete_unreachable: Optional[pulumi.Input[bool]] = None,
294
319
  enable_config_map_mutable: Optional[pulumi.Input[bool]] = None,
@@ -308,6 +333,11 @@ class Provider(pulumi.ProviderResource):
308
333
  :param str resource_name: The name of the resource.
309
334
  :param pulumi.ResourceOptions opts: Options for the resource.
310
335
  :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use.
336
+ :param pulumi.Input[str] cluster_identifier: If present, this value will control the provider's replacement behavior. In particular, the provider will _only_ be replaced when `clusterIdentifier` changes; all other changes to provider configuration will be treated as updates.
337
+
338
+ Kubernetes does not yet offer an API for cluster identification, so Pulumi uses heuristics to decide when a provider resource should be replaced or updated. These heuristics can sometimes lead to destructive replace operations when an update would be more appropriate, or vice versa.
339
+
340
+ Use `clusterIdentifier` for more fine-grained control of the provider resource's lifecycle.
311
341
  :param pulumi.Input[str] context: If present, the name of the kubeconfig context to use.
312
342
  :param pulumi.Input[bool] delete_unreachable: If present and set to true, the provider will delete resources associated with an unreachable Kubernetes cluster from Pulumi state
313
343
  :param pulumi.Input[bool] enable_config_map_mutable: BETA FEATURE - If present and set to true, allow ConfigMaps to be mutated.
@@ -364,6 +394,7 @@ class Provider(pulumi.ProviderResource):
364
394
  resource_name: str,
365
395
  opts: Optional[pulumi.ResourceOptions] = None,
366
396
  cluster: Optional[pulumi.Input[str]] = None,
397
+ cluster_identifier: Optional[pulumi.Input[str]] = None,
367
398
  context: Optional[pulumi.Input[str]] = None,
368
399
  delete_unreachable: Optional[pulumi.Input[bool]] = None,
369
400
  enable_config_map_mutable: Optional[pulumi.Input[bool]] = None,
@@ -386,6 +417,7 @@ class Provider(pulumi.ProviderResource):
386
417
  __props__ = ProviderArgs.__new__(ProviderArgs)
387
418
 
388
419
  __props__.__dict__["cluster"] = cluster
420
+ __props__.__dict__["cluster_identifier"] = cluster_identifier
389
421
  __props__.__dict__["context"] = context
390
422
  if delete_unreachable is None:
391
423
  delete_unreachable = _utilities.get_env_bool('PULUMI_K8S_DELETE_UNREACHABLE')
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "kubernetes",
4
- "version": "4.16.0-alpha.1721148436"
4
+ "version": "4.16.0-alpha.1721342660"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_kubernetes
3
- Version: 4.16.0a1721148436
3
+ Version: 4.16.0a1721342660
4
4
  Summary: A Pulumi package for creating and managing Kubernetes resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.com
@@ -3,8 +3,8 @@ pulumi_kubernetes/_inputs.py,sha256=tEtSSFnBN33_kq4jRZblxlWKKOcYVl7fzIrLijcg2ew,
3
3
  pulumi_kubernetes/_tables.py,sha256=3neJaK1ZuzFWWgLJKwl0jAR-Gymxn6CMeGwh1k4tcw4,40823
4
4
  pulumi_kubernetes/_utilities.py,sha256=raAGDIIF_PJMc5bVurACaepJZ-sNZO18WDtPA-KGVbY,10415
5
5
  pulumi_kubernetes/outputs.py,sha256=YLfWOa1pqtMnI9hVe-nfOVDDjTDGeomctTClWqDX_Sw,1685
6
- pulumi_kubernetes/provider.py,sha256=ENW7wQbkzPcdHD9YSgY1F4NsxYK6DZnm6y5KcYKFimg,24986
7
- pulumi_kubernetes/pulumi-plugin.json,sha256=JiX2qnRGpEIX9IMHYXxpRxwZTUNWTVSzLzszTSTlr2A,87
6
+ pulumi_kubernetes/provider.py,sha256=bC3FsJVfzLcqlCxJQvkw3-561UsIrnqCFWW-T7Rh4lE,27833
7
+ pulumi_kubernetes/pulumi-plugin.json,sha256=gbPfMl7PsXQCIcdAJ2XspoyiMlNq-8rCDPDwGeBsudc,87
8
8
  pulumi_kubernetes/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pulumi_kubernetes/admissionregistration/__init__.py,sha256=85XpZ49dreIz2jkQcun5WDfJfI5ao85E6njlB8A8y_k,785
10
10
  pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py,sha256=oCfW2vqC_yrazTudFFz1fnJDhuYsqV8p6HVuKZeE-Ec,12104
@@ -613,7 +613,7 @@ pulumi_kubernetes/yaml/yaml.py,sha256=IPMjUz2l0B2_flS34a3GbQuWZmT3NVLBj9PLejhIIj
613
613
  pulumi_kubernetes/yaml/v2/ConfigFile.py,sha256=EPQ7Bg9yiCnLHqoe6NgK4XScFji8ecTGM_Ko8CZ0VTM,10912
614
614
  pulumi_kubernetes/yaml/v2/ConfigGroup.py,sha256=GoDGxpAemfjEHcYiOexM1fxmKqu4uWBzTB1Fbqy4Ips,15702
615
615
  pulumi_kubernetes/yaml/v2/__init__.py,sha256=5S6M8sncwfHm2sXPUBAjROBlGQWwFFedOQ8z1f5SB3U,292
616
- pulumi_kubernetes-4.16.0a1721148436.dist-info/METADATA,sha256=bt07XWACdJk7h6Cr2UUf5E-pq-xrprN1CBwRU2K7cbs,9427
617
- pulumi_kubernetes-4.16.0a1721148436.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
618
- pulumi_kubernetes-4.16.0a1721148436.dist-info/top_level.txt,sha256=xoTPI88GpKE_G1dcKvsjaA1qV3yO4NCn2ZpXq4byqNc,18
619
- pulumi_kubernetes-4.16.0a1721148436.dist-info/RECORD,,
616
+ pulumi_kubernetes-4.16.0a1721342660.dist-info/METADATA,sha256=qrZmVKwerqwerg-RjDI58m0_7nldkecv7RAK8YJK3D8,9427
617
+ pulumi_kubernetes-4.16.0a1721342660.dist-info/WHEEL,sha256=-oYQCr74JF3a37z2nRlQays_SX2MqOANoqVjBBAP2yE,91
618
+ pulumi_kubernetes-4.16.0a1721342660.dist-info/top_level.txt,sha256=xoTPI88GpKE_G1dcKvsjaA1qV3yO4NCn2ZpXq4byqNc,18
619
+ pulumi_kubernetes-4.16.0a1721342660.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.3.0)
2
+ Generator: setuptools (71.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5