pulumi-kubernetes 4.23.0a1746131759__py3-none-any.whl → 4.23.0a1746138483__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 (116) hide show
  1. pulumi_kubernetes/__init__.py +36 -2
  2. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +30 -30
  3. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +20 -20
  4. pulumi_kubernetes/apps/v1/ReplicaSetList.py +4 -4
  5. pulumi_kubernetes/apps/v1/_inputs.py +109 -56
  6. pulumi_kubernetes/apps/v1/outputs.py +129 -56
  7. pulumi_kubernetes/autoscaling/v2/_inputs.py +92 -12
  8. pulumi_kubernetes/autoscaling/v2/outputs.py +66 -10
  9. pulumi_kubernetes/batch/v1/_inputs.py +12 -42
  10. pulumi_kubernetes/batch/v1/outputs.py +8 -32
  11. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +2 -0
  12. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +2 -0
  13. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +229 -0
  14. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +219 -0
  15. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +240 -0
  16. pulumi_kubernetes/certificates/v1beta1/__init__.py +3 -0
  17. pulumi_kubernetes/certificates/v1beta1/_inputs.py +292 -0
  18. pulumi_kubernetes/certificates/v1beta1/outputs.py +241 -0
  19. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +1 -1
  20. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +1 -1
  21. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +1 -1
  22. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +1 -1
  23. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +6 -6
  24. pulumi_kubernetes/coordination/v1alpha2/outputs.py +4 -4
  25. pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +220 -0
  26. pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +219 -0
  27. pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +232 -0
  28. pulumi_kubernetes/coordination/v1beta1/__init__.py +3 -0
  29. pulumi_kubernetes/coordination/v1beta1/_inputs.py +371 -0
  30. pulumi_kubernetes/coordination/v1beta1/outputs.py +292 -0
  31. pulumi_kubernetes/core/v1/Endpoints.py +8 -0
  32. pulumi_kubernetes/core/v1/EndpointsList.py +2 -2
  33. pulumi_kubernetes/core/v1/EndpointsPatch.py +8 -0
  34. pulumi_kubernetes/core/v1/_inputs.py +240 -66
  35. pulumi_kubernetes/core/v1/outputs.py +251 -51
  36. pulumi_kubernetes/discovery/v1/EndpointSlice.py +10 -10
  37. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +10 -10
  38. pulumi_kubernetes/discovery/v1/_inputs.py +159 -44
  39. pulumi_kubernetes/discovery/v1/outputs.py +107 -32
  40. pulumi_kubernetes/networking/v1/IPAddress.py +220 -0
  41. pulumi_kubernetes/networking/v1/IPAddressList.py +219 -0
  42. pulumi_kubernetes/networking/v1/IPAddressPatch.py +232 -0
  43. pulumi_kubernetes/networking/v1/ServiceCIDR.py +230 -0
  44. pulumi_kubernetes/networking/v1/ServiceCIDRList.py +219 -0
  45. pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +242 -0
  46. pulumi_kubernetes/networking/v1/__init__.py +6 -0
  47. pulumi_kubernetes/networking/v1/_inputs.py +599 -0
  48. pulumi_kubernetes/networking/v1/outputs.py +461 -0
  49. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +1 -1
  50. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +1 -1
  51. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +1 -1
  52. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +1 -1
  53. pulumi_kubernetes/networking/v1beta1/IPAddress.py +1 -1
  54. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +1 -1
  55. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +1 -1
  56. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +1 -1
  57. pulumi_kubernetes/policy/v1/_inputs.py +0 -12
  58. pulumi_kubernetes/policy/v1/outputs.py +0 -8
  59. pulumi_kubernetes/pulumi-plugin.json +1 -1
  60. pulumi_kubernetes/resource/__init__.py +3 -0
  61. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  62. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  63. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  64. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  65. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  66. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  67. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  68. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  69. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
  70. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
  71. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +1 -1
  72. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +1 -1
  73. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +227 -0
  74. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +219 -0
  75. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +238 -0
  76. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
  77. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
  78. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
  79. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
  80. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +1 -1
  81. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
  82. pulumi_kubernetes/resource/v1alpha3/__init__.py +3 -0
  83. pulumi_kubernetes/resource/v1alpha3/_inputs.py +2559 -213
  84. pulumi_kubernetes/resource/v1alpha3/outputs.py +2037 -256
  85. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +1 -1
  86. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +1 -1
  87. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +1 -1
  88. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +1 -1
  89. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +1 -1
  90. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +1 -1
  91. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +1 -1
  92. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +1 -1
  93. pulumi_kubernetes/resource/v1beta1/_inputs.py +2044 -176
  94. pulumi_kubernetes/resource/v1beta1/outputs.py +1536 -134
  95. pulumi_kubernetes/resource/v1beta2/DeviceClass.py +241 -0
  96. pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +219 -0
  97. pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +252 -0
  98. pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +236 -0
  99. pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +220 -0
  100. pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +247 -0
  101. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +233 -0
  102. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +219 -0
  103. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +244 -0
  104. pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +250 -0
  105. pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +220 -0
  106. pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +261 -0
  107. pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
  108. pulumi_kubernetes/resource/v1beta2/_inputs.py +5681 -0
  109. pulumi_kubernetes/resource/v1beta2/outputs.py +4726 -0
  110. pulumi_kubernetes/storage/v1/_inputs.py +90 -0
  111. pulumi_kubernetes/storage/v1/outputs.py +110 -0
  112. pulumi_kubernetes/yaml/yaml.py +108 -0
  113. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/METADATA +1 -1
  114. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/RECORD +116 -86
  115. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/WHEEL +0 -0
  116. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,240 @@
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 builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from ... import _utilities
17
+ from . import outputs
18
+ from ... import meta as _meta
19
+ from ._inputs import *
20
+
21
+ __all__ = ['ClusterTrustBundlePatchArgs', 'ClusterTrustBundlePatch']
22
+
23
+ @pulumi.input_type
24
+ class ClusterTrustBundlePatchArgs:
25
+ def __init__(__self__, *,
26
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
27
+ kind: Optional[pulumi.Input[builtins.str]] = None,
28
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
29
+ spec: Optional[pulumi.Input['ClusterTrustBundleSpecPatchArgs']] = None):
30
+ """
31
+ The set of arguments for constructing a ClusterTrustBundlePatch resource.
32
+ :param pulumi.Input[builtins.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
33
+ :param pulumi.Input[builtins.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
34
+ :param pulumi.Input['_meta.v1.ObjectMetaPatchArgs'] metadata: metadata contains the object metadata.
35
+ :param pulumi.Input['ClusterTrustBundleSpecPatchArgs'] spec: spec contains the signer (if any) and trust anchors.
36
+ """
37
+ if api_version is not None:
38
+ pulumi.set(__self__, "api_version", 'certificates.k8s.io/v1beta1')
39
+ if kind is not None:
40
+ pulumi.set(__self__, "kind", 'ClusterTrustBundle')
41
+ if metadata is not None:
42
+ pulumi.set(__self__, "metadata", metadata)
43
+ if spec is not None:
44
+ pulumi.set(__self__, "spec", spec)
45
+
46
+ @property
47
+ @pulumi.getter(name="apiVersion")
48
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
49
+ """
50
+ 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
51
+ """
52
+ return pulumi.get(self, "api_version")
53
+
54
+ @api_version.setter
55
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
56
+ pulumi.set(self, "api_version", value)
57
+
58
+ @property
59
+ @pulumi.getter
60
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
61
+ """
62
+ 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
63
+ """
64
+ return pulumi.get(self, "kind")
65
+
66
+ @kind.setter
67
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
68
+ pulumi.set(self, "kind", value)
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
73
+ """
74
+ metadata contains the object metadata.
75
+ """
76
+ return pulumi.get(self, "metadata")
77
+
78
+ @metadata.setter
79
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
80
+ pulumi.set(self, "metadata", value)
81
+
82
+ @property
83
+ @pulumi.getter
84
+ def spec(self) -> Optional[pulumi.Input['ClusterTrustBundleSpecPatchArgs']]:
85
+ """
86
+ spec contains the signer (if any) and trust anchors.
87
+ """
88
+ return pulumi.get(self, "spec")
89
+
90
+ @spec.setter
91
+ def spec(self, value: Optional[pulumi.Input['ClusterTrustBundleSpecPatchArgs']]):
92
+ pulumi.set(self, "spec", value)
93
+
94
+
95
+ class ClusterTrustBundlePatch(pulumi.CustomResource):
96
+
97
+ pulumi_type = "kubernetes:certificates.k8s.io/v1beta1:ClusterTrustBundlePatch"
98
+
99
+ @overload
100
+ def __init__(__self__,
101
+ resource_name: str,
102
+ opts: Optional[pulumi.ResourceOptions] = None,
103
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
104
+ kind: Optional[pulumi.Input[builtins.str]] = None,
105
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
106
+ spec: Optional[pulumi.Input[Union['ClusterTrustBundleSpecPatchArgs', 'ClusterTrustBundleSpecPatchArgsDict']]] = None,
107
+ __props__=None):
108
+ """
109
+ Patch resources are used to modify existing Kubernetes resources by using
110
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
111
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
112
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
113
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
114
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
115
+ ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).
116
+
117
+ ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.
118
+
119
+ It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.
120
+
121
+ :param str resource_name: The name of the resource.
122
+ :param pulumi.ResourceOptions opts: Options for the resource.
123
+ :param pulumi.Input[builtins.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
124
+ :param pulumi.Input[builtins.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
125
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: metadata contains the object metadata.
126
+ :param pulumi.Input[Union['ClusterTrustBundleSpecPatchArgs', 'ClusterTrustBundleSpecPatchArgsDict']] spec: spec contains the signer (if any) and trust anchors.
127
+ """
128
+ ...
129
+ @overload
130
+ def __init__(__self__,
131
+ resource_name: str,
132
+ args: Optional[ClusterTrustBundlePatchArgs] = None,
133
+ opts: Optional[pulumi.ResourceOptions] = None):
134
+ """
135
+ Patch resources are used to modify existing Kubernetes resources by using
136
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
137
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
138
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
139
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
140
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
141
+ ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).
142
+
143
+ ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.
144
+
145
+ It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.
146
+
147
+ :param str resource_name: The name of the resource.
148
+ :param ClusterTrustBundlePatchArgs args: The arguments to use to populate this resource's properties.
149
+ :param pulumi.ResourceOptions opts: Options for the resource.
150
+ """
151
+ ...
152
+ def __init__(__self__, resource_name: str, *args, **kwargs):
153
+ resource_args, opts = _utilities.get_resource_args_opts(ClusterTrustBundlePatchArgs, pulumi.ResourceOptions, *args, **kwargs)
154
+ if resource_args is not None:
155
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
156
+ else:
157
+ __self__._internal_init(resource_name, *args, **kwargs)
158
+
159
+ def _internal_init(__self__,
160
+ resource_name: str,
161
+ opts: Optional[pulumi.ResourceOptions] = None,
162
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
163
+ kind: Optional[pulumi.Input[builtins.str]] = None,
164
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
165
+ spec: Optional[pulumi.Input[Union['ClusterTrustBundleSpecPatchArgs', 'ClusterTrustBundleSpecPatchArgsDict']]] = None,
166
+ __props__=None):
167
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
168
+ if not isinstance(opts, pulumi.ResourceOptions):
169
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
170
+ if opts.id is None:
171
+ if __props__ is not None:
172
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
173
+ __props__ = ClusterTrustBundlePatchArgs.__new__(ClusterTrustBundlePatchArgs)
174
+
175
+ __props__.__dict__["api_version"] = 'certificates.k8s.io/v1beta1'
176
+ __props__.__dict__["kind"] = 'ClusterTrustBundle'
177
+ __props__.__dict__["metadata"] = metadata
178
+ __props__.__dict__["spec"] = spec
179
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:certificates.k8s.io/v1alpha1:ClusterTrustBundlePatch")])
180
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
181
+ super(ClusterTrustBundlePatch, __self__).__init__(
182
+ 'kubernetes:certificates.k8s.io/v1beta1:ClusterTrustBundlePatch',
183
+ resource_name,
184
+ __props__,
185
+ opts)
186
+
187
+ @staticmethod
188
+ def get(resource_name: str,
189
+ id: pulumi.Input[str],
190
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'ClusterTrustBundlePatch':
191
+ """
192
+ Get an existing ClusterTrustBundlePatch resource's state with the given name, id, and optional extra
193
+ properties used to qualify the lookup.
194
+
195
+ :param str resource_name: The unique name of the resulting resource.
196
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
197
+ :param pulumi.ResourceOptions opts: Options for the resource.
198
+ """
199
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
200
+
201
+ __props__ = ClusterTrustBundlePatchArgs.__new__(ClusterTrustBundlePatchArgs)
202
+
203
+ __props__.__dict__["api_version"] = None
204
+ __props__.__dict__["kind"] = None
205
+ __props__.__dict__["metadata"] = None
206
+ __props__.__dict__["spec"] = None
207
+ return ClusterTrustBundlePatch(resource_name, opts=opts, __props__=__props__)
208
+
209
+ @property
210
+ @pulumi.getter(name="apiVersion")
211
+ def api_version(self) -> pulumi.Output[Optional[builtins.str]]:
212
+ """
213
+ 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
214
+ """
215
+ return pulumi.get(self, "api_version")
216
+
217
+ @property
218
+ @pulumi.getter
219
+ def kind(self) -> pulumi.Output[Optional[builtins.str]]:
220
+ """
221
+ 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
222
+ """
223
+ return pulumi.get(self, "kind")
224
+
225
+ @property
226
+ @pulumi.getter
227
+ def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
228
+ """
229
+ metadata contains the object metadata.
230
+ """
231
+ return pulumi.get(self, "metadata")
232
+
233
+ @property
234
+ @pulumi.getter
235
+ def spec(self) -> pulumi.Output[Optional['outputs.ClusterTrustBundleSpecPatch']]:
236
+ """
237
+ spec contains the signer (if any) and trust anchors.
238
+ """
239
+ return pulumi.get(self, "spec")
240
+
@@ -9,5 +9,8 @@ import typing
9
9
  from .CertificateSigningRequest import *
10
10
  from .CertificateSigningRequestList import *
11
11
  from .CertificateSigningRequestPatch import *
12
+ from .ClusterTrustBundle import *
13
+ from .ClusterTrustBundleList import *
14
+ from .ClusterTrustBundlePatch import *
12
15
  from ._inputs import *
13
16
  from . import outputs
@@ -27,6 +27,12 @@ __all__ = [
27
27
  'CertificateSigningRequestStatusArgsDict',
28
28
  'CertificateSigningRequestArgs',
29
29
  'CertificateSigningRequestArgsDict',
30
+ 'ClusterTrustBundleSpecPatchArgs',
31
+ 'ClusterTrustBundleSpecPatchArgsDict',
32
+ 'ClusterTrustBundleSpecArgs',
33
+ 'ClusterTrustBundleSpecArgsDict',
34
+ 'ClusterTrustBundleArgs',
35
+ 'ClusterTrustBundleArgsDict',
30
36
  ]
31
37
 
32
38
  MYPY = False
@@ -676,3 +682,289 @@ class CertificateSigningRequestArgs:
676
682
  pulumi.set(self, "status", value)
677
683
 
678
684
 
685
+ if not MYPY:
686
+ class ClusterTrustBundleSpecPatchArgsDict(TypedDict):
687
+ """
688
+ ClusterTrustBundleSpec contains the signer and trust anchors.
689
+ """
690
+ signer_name: NotRequired[pulumi.Input[builtins.str]]
691
+ """
692
+ signerName indicates the associated signer, if any.
693
+
694
+ In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
695
+
696
+ If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
697
+
698
+ If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
699
+
700
+ List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
701
+ """
702
+ trust_bundle: NotRequired[pulumi.Input[builtins.str]]
703
+ """
704
+ trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
705
+
706
+ The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
707
+
708
+ Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
709
+ """
710
+ elif False:
711
+ ClusterTrustBundleSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
712
+
713
+ @pulumi.input_type
714
+ class ClusterTrustBundleSpecPatchArgs:
715
+ def __init__(__self__, *,
716
+ signer_name: Optional[pulumi.Input[builtins.str]] = None,
717
+ trust_bundle: Optional[pulumi.Input[builtins.str]] = None):
718
+ """
719
+ ClusterTrustBundleSpec contains the signer and trust anchors.
720
+ :param pulumi.Input[builtins.str] signer_name: signerName indicates the associated signer, if any.
721
+
722
+ In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
723
+
724
+ If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
725
+
726
+ If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
727
+
728
+ List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
729
+ :param pulumi.Input[builtins.str] trust_bundle: trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
730
+
731
+ The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
732
+
733
+ Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
734
+ """
735
+ if signer_name is not None:
736
+ pulumi.set(__self__, "signer_name", signer_name)
737
+ if trust_bundle is not None:
738
+ pulumi.set(__self__, "trust_bundle", trust_bundle)
739
+
740
+ @property
741
+ @pulumi.getter(name="signerName")
742
+ def signer_name(self) -> Optional[pulumi.Input[builtins.str]]:
743
+ """
744
+ signerName indicates the associated signer, if any.
745
+
746
+ In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
747
+
748
+ If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
749
+
750
+ If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
751
+
752
+ List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
753
+ """
754
+ return pulumi.get(self, "signer_name")
755
+
756
+ @signer_name.setter
757
+ def signer_name(self, value: Optional[pulumi.Input[builtins.str]]):
758
+ pulumi.set(self, "signer_name", value)
759
+
760
+ @property
761
+ @pulumi.getter(name="trustBundle")
762
+ def trust_bundle(self) -> Optional[pulumi.Input[builtins.str]]:
763
+ """
764
+ trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
765
+
766
+ The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
767
+
768
+ Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
769
+ """
770
+ return pulumi.get(self, "trust_bundle")
771
+
772
+ @trust_bundle.setter
773
+ def trust_bundle(self, value: Optional[pulumi.Input[builtins.str]]):
774
+ pulumi.set(self, "trust_bundle", value)
775
+
776
+
777
+ if not MYPY:
778
+ class ClusterTrustBundleSpecArgsDict(TypedDict):
779
+ """
780
+ ClusterTrustBundleSpec contains the signer and trust anchors.
781
+ """
782
+ trust_bundle: pulumi.Input[builtins.str]
783
+ """
784
+ trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
785
+
786
+ The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
787
+
788
+ Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
789
+ """
790
+ signer_name: NotRequired[pulumi.Input[builtins.str]]
791
+ """
792
+ signerName indicates the associated signer, if any.
793
+
794
+ In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
795
+
796
+ If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
797
+
798
+ If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
799
+
800
+ List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
801
+ """
802
+ elif False:
803
+ ClusterTrustBundleSpecArgsDict: TypeAlias = Mapping[str, Any]
804
+
805
+ @pulumi.input_type
806
+ class ClusterTrustBundleSpecArgs:
807
+ def __init__(__self__, *,
808
+ trust_bundle: pulumi.Input[builtins.str],
809
+ signer_name: Optional[pulumi.Input[builtins.str]] = None):
810
+ """
811
+ ClusterTrustBundleSpec contains the signer and trust anchors.
812
+ :param pulumi.Input[builtins.str] trust_bundle: trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
813
+
814
+ The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
815
+
816
+ Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
817
+ :param pulumi.Input[builtins.str] signer_name: signerName indicates the associated signer, if any.
818
+
819
+ In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
820
+
821
+ If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
822
+
823
+ If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
824
+
825
+ List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
826
+ """
827
+ pulumi.set(__self__, "trust_bundle", trust_bundle)
828
+ if signer_name is not None:
829
+ pulumi.set(__self__, "signer_name", signer_name)
830
+
831
+ @property
832
+ @pulumi.getter(name="trustBundle")
833
+ def trust_bundle(self) -> pulumi.Input[builtins.str]:
834
+ """
835
+ trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
836
+
837
+ The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
838
+
839
+ Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
840
+ """
841
+ return pulumi.get(self, "trust_bundle")
842
+
843
+ @trust_bundle.setter
844
+ def trust_bundle(self, value: pulumi.Input[builtins.str]):
845
+ pulumi.set(self, "trust_bundle", value)
846
+
847
+ @property
848
+ @pulumi.getter(name="signerName")
849
+ def signer_name(self) -> Optional[pulumi.Input[builtins.str]]:
850
+ """
851
+ signerName indicates the associated signer, if any.
852
+
853
+ In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
854
+
855
+ If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
856
+
857
+ If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
858
+
859
+ List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
860
+ """
861
+ return pulumi.get(self, "signer_name")
862
+
863
+ @signer_name.setter
864
+ def signer_name(self, value: Optional[pulumi.Input[builtins.str]]):
865
+ pulumi.set(self, "signer_name", value)
866
+
867
+
868
+ if not MYPY:
869
+ class ClusterTrustBundleArgsDict(TypedDict):
870
+ """
871
+ ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).
872
+
873
+ ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.
874
+
875
+ It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.
876
+ """
877
+ spec: pulumi.Input['ClusterTrustBundleSpecArgsDict']
878
+ """
879
+ spec contains the signer (if any) and trust anchors.
880
+ """
881
+ api_version: NotRequired[pulumi.Input[builtins.str]]
882
+ """
883
+ 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
884
+ """
885
+ kind: NotRequired[pulumi.Input[builtins.str]]
886
+ """
887
+ 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
888
+ """
889
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
890
+ """
891
+ metadata contains the object metadata.
892
+ """
893
+ elif False:
894
+ ClusterTrustBundleArgsDict: TypeAlias = Mapping[str, Any]
895
+
896
+ @pulumi.input_type
897
+ class ClusterTrustBundleArgs:
898
+ def __init__(__self__, *,
899
+ spec: pulumi.Input['ClusterTrustBundleSpecArgs'],
900
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
901
+ kind: Optional[pulumi.Input[builtins.str]] = None,
902
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
903
+ """
904
+ ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).
905
+
906
+ ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.
907
+
908
+ It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.
909
+ :param pulumi.Input['ClusterTrustBundleSpecArgs'] spec: spec contains the signer (if any) and trust anchors.
910
+ :param pulumi.Input[builtins.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
911
+ :param pulumi.Input[builtins.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
912
+ :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: metadata contains the object metadata.
913
+ """
914
+ pulumi.set(__self__, "spec", spec)
915
+ if api_version is not None:
916
+ pulumi.set(__self__, "api_version", 'certificates.k8s.io/v1beta1')
917
+ if kind is not None:
918
+ pulumi.set(__self__, "kind", 'ClusterTrustBundle')
919
+ if metadata is not None:
920
+ pulumi.set(__self__, "metadata", metadata)
921
+
922
+ @property
923
+ @pulumi.getter
924
+ def spec(self) -> pulumi.Input['ClusterTrustBundleSpecArgs']:
925
+ """
926
+ spec contains the signer (if any) and trust anchors.
927
+ """
928
+ return pulumi.get(self, "spec")
929
+
930
+ @spec.setter
931
+ def spec(self, value: pulumi.Input['ClusterTrustBundleSpecArgs']):
932
+ pulumi.set(self, "spec", value)
933
+
934
+ @property
935
+ @pulumi.getter(name="apiVersion")
936
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
937
+ """
938
+ 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
939
+ """
940
+ return pulumi.get(self, "api_version")
941
+
942
+ @api_version.setter
943
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
944
+ pulumi.set(self, "api_version", value)
945
+
946
+ @property
947
+ @pulumi.getter
948
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
949
+ """
950
+ 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
951
+ """
952
+ return pulumi.get(self, "kind")
953
+
954
+ @kind.setter
955
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
956
+ pulumi.set(self, "kind", value)
957
+
958
+ @property
959
+ @pulumi.getter
960
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
961
+ """
962
+ metadata contains the object metadata.
963
+ """
964
+ return pulumi.get(self, "metadata")
965
+
966
+ @metadata.setter
967
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
968
+ pulumi.set(self, "metadata", value)
969
+
970
+