pulumi-kubernetes 4.15.0a1720554390__py3-none-any.whl → 4.16.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.
- pulumi_kubernetes/_utilities.py +2 -0
- pulumi_kubernetes/provider.py +32 -0
- pulumi_kubernetes/pulumi-plugin.json +1 -1
- {pulumi_kubernetes-4.15.0a1720554390.dist-info → pulumi_kubernetes-4.16.0.dist-info}/METADATA +1 -1
- {pulumi_kubernetes-4.15.0a1720554390.dist-info → pulumi_kubernetes-4.16.0.dist-info}/RECORD +7 -7
- {pulumi_kubernetes-4.15.0a1720554390.dist-info → pulumi_kubernetes-4.16.0.dist-info}/WHEEL +1 -1
- {pulumi_kubernetes-4.15.0a1720554390.dist-info → pulumi_kubernetes-4.16.0.dist-info}/top_level.txt +0 -0
pulumi_kubernetes/_utilities.py
CHANGED
|
@@ -13,10 +13,12 @@ import os
|
|
|
13
13
|
import sys
|
|
14
14
|
import typing
|
|
15
15
|
import warnings
|
|
16
|
+
import base64
|
|
16
17
|
|
|
17
18
|
import pulumi
|
|
18
19
|
import pulumi.runtime
|
|
19
20
|
from pulumi.runtime.sync_await import _sync_await
|
|
21
|
+
from pulumi.runtime.proto import resource_pb2
|
|
20
22
|
|
|
21
23
|
from semver import VersionInfo as SemverVersion
|
|
22
24
|
from parver import Version as PEP440Version
|
pulumi_kubernetes/provider.py
CHANGED
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
pulumi_kubernetes/__init__.py,sha256=ylottGUcXwigCluFWgMCi1jb0iHllvMZz-I2UgQT5Ko,43768
|
|
2
2
|
pulumi_kubernetes/_inputs.py,sha256=tEtSSFnBN33_kq4jRZblxlWKKOcYVl7fzIrLijcg2ew,8863
|
|
3
3
|
pulumi_kubernetes/_tables.py,sha256=3neJaK1ZuzFWWgLJKwl0jAR-Gymxn6CMeGwh1k4tcw4,40823
|
|
4
|
-
pulumi_kubernetes/_utilities.py,sha256=
|
|
4
|
+
pulumi_kubernetes/_utilities.py,sha256=WpjMxjS_nwp8B1Bh4EYpzGv6c1C3DWVL4ekrgReUNLA,10475
|
|
5
5
|
pulumi_kubernetes/outputs.py,sha256=YLfWOa1pqtMnI9hVe-nfOVDDjTDGeomctTClWqDX_Sw,1685
|
|
6
|
-
pulumi_kubernetes/provider.py,sha256=
|
|
7
|
-
pulumi_kubernetes/pulumi-plugin.json,sha256=
|
|
6
|
+
pulumi_kubernetes/provider.py,sha256=bC3FsJVfzLcqlCxJQvkw3-561UsIrnqCFWW-T7Rh4lE,27833
|
|
7
|
+
pulumi_kubernetes/pulumi-plugin.json,sha256=3Ycw8OlE26fgtkVSwB4Hrp7362t3auNVowpINBY_Htw,70
|
|
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.
|
|
617
|
-
pulumi_kubernetes-4.
|
|
618
|
-
pulumi_kubernetes-4.
|
|
619
|
-
pulumi_kubernetes-4.
|
|
616
|
+
pulumi_kubernetes-4.16.0.dist-info/METADATA,sha256=cur44wr7fkAMVUq1tPwutSKE7pcIgViBJ4Tj8YMwCsQ,9416
|
|
617
|
+
pulumi_kubernetes-4.16.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
618
|
+
pulumi_kubernetes-4.16.0.dist-info/top_level.txt,sha256=xoTPI88GpKE_G1dcKvsjaA1qV3yO4NCn2ZpXq4byqNc,18
|
|
619
|
+
pulumi_kubernetes-4.16.0.dist-info/RECORD,,
|
{pulumi_kubernetes-4.15.0a1720554390.dist-info → pulumi_kubernetes-4.16.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|