pulumi-kubernetes 4.19.0a1733937243__py3-none-any.whl → 4.19.0a1733970382__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/__init__.py +36 -0
- pulumi_kubernetes/admissionregistration/v1/_inputs.py +6 -6
- pulumi_kubernetes/admissionregistration/v1/outputs.py +4 -4
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +0 -8
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +0 -8
- pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +1818 -315
- pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1365 -246
- pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +6 -6
- pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +4 -4
- pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
- pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
- pulumi_kubernetes/apps/v1/_inputs.py +6 -6
- pulumi_kubernetes/apps/v1/outputs.py +4 -4
- pulumi_kubernetes/autoscaling/v2/_inputs.py +15 -15
- pulumi_kubernetes/autoscaling/v2/outputs.py +12 -12
- pulumi_kubernetes/batch/v1/_inputs.py +6 -6
- pulumi_kubernetes/batch/v1/outputs.py +4 -4
- pulumi_kubernetes/coordination/__init__.py +3 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +2 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +2 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
- pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
- pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
- pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
- pulumi_kubernetes/core/v1/Binding.py +2 -2
- pulumi_kubernetes/core/v1/BindingPatch.py +2 -2
- pulumi_kubernetes/core/v1/ServiceAccount.py +4 -4
- pulumi_kubernetes/core/v1/ServiceAccountPatch.py +4 -4
- pulumi_kubernetes/core/v1/_inputs.py +564 -313
- pulumi_kubernetes/core/v1/outputs.py +418 -230
- pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +12 -12
- pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +8 -8
- pulumi_kubernetes/pulumi-plugin.json +1 -1
- pulumi_kubernetes/resource/__init__.py +3 -0
- pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +2 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +2 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +8 -8
- pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/__init__.py +1 -0
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +455 -7
- pulumi_kubernetes/resource/v1alpha3/outputs.py +592 -5
- pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
- pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
- pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
- pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
- pulumi_kubernetes/storage/v1/_inputs.py +4 -4
- pulumi_kubernetes/storage/v1/outputs.py +4 -4
- pulumi_kubernetes/yaml/yaml.py +90 -0
- {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/METADATA +1 -1
- {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/RECORD +87 -59
- {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/WHEEL +0 -0
- {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,215 @@
|
|
|
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__ = ['MutatingAdmissionPolicyListArgs', 'MutatingAdmissionPolicyList']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class MutatingAdmissionPolicyListArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
items: pulumi.Input[Sequence[pulumi.Input['MutatingAdmissionPolicyArgs']]],
|
|
26
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a MutatingAdmissionPolicyList resource.
|
|
31
|
+
:param pulumi.Input[Sequence[pulumi.Input['MutatingAdmissionPolicyArgs']]] items: List of ValidatingAdmissionPolicy.
|
|
32
|
+
: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
|
|
33
|
+
: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
|
|
34
|
+
:param pulumi.Input['_meta.v1.ListMetaArgs'] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
35
|
+
"""
|
|
36
|
+
pulumi.set(__self__, "items", items)
|
|
37
|
+
if api_version is not None:
|
|
38
|
+
pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1alpha1')
|
|
39
|
+
if kind is not None:
|
|
40
|
+
pulumi.set(__self__, "kind", 'MutatingAdmissionPolicyList')
|
|
41
|
+
if metadata is not None:
|
|
42
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter
|
|
46
|
+
def items(self) -> pulumi.Input[Sequence[pulumi.Input['MutatingAdmissionPolicyArgs']]]:
|
|
47
|
+
"""
|
|
48
|
+
List of ValidatingAdmissionPolicy.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "items")
|
|
51
|
+
|
|
52
|
+
@items.setter
|
|
53
|
+
def items(self, value: pulumi.Input[Sequence[pulumi.Input['MutatingAdmissionPolicyArgs']]]):
|
|
54
|
+
pulumi.set(self, "items", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="apiVersion")
|
|
58
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
59
|
+
"""
|
|
60
|
+
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
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "api_version")
|
|
63
|
+
|
|
64
|
+
@api_version.setter
|
|
65
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
66
|
+
pulumi.set(self, "api_version", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter
|
|
70
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
71
|
+
"""
|
|
72
|
+
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
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "kind")
|
|
75
|
+
|
|
76
|
+
@kind.setter
|
|
77
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
+
pulumi.set(self, "kind", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ListMetaArgs']]:
|
|
83
|
+
"""
|
|
84
|
+
Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "metadata")
|
|
87
|
+
|
|
88
|
+
@metadata.setter
|
|
89
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]):
|
|
90
|
+
pulumi.set(self, "metadata", value)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class MutatingAdmissionPolicyList(pulumi.CustomResource):
|
|
94
|
+
@overload
|
|
95
|
+
def __init__(__self__,
|
|
96
|
+
resource_name: str,
|
|
97
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
98
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
99
|
+
items: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MutatingAdmissionPolicyArgs', 'MutatingAdmissionPolicyArgsDict']]]]] = None,
|
|
100
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
|
|
102
|
+
__props__=None):
|
|
103
|
+
"""
|
|
104
|
+
MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.
|
|
105
|
+
|
|
106
|
+
:param str resource_name: The name of the resource.
|
|
107
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
108
|
+
: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
|
|
109
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MutatingAdmissionPolicyArgs', 'MutatingAdmissionPolicyArgsDict']]]] items: List of ValidatingAdmissionPolicy.
|
|
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.ListMetaArgs', '_meta.v1.ListMetaArgsDict']] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
112
|
+
"""
|
|
113
|
+
...
|
|
114
|
+
@overload
|
|
115
|
+
def __init__(__self__,
|
|
116
|
+
resource_name: str,
|
|
117
|
+
args: MutatingAdmissionPolicyListArgs,
|
|
118
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
119
|
+
"""
|
|
120
|
+
MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.
|
|
121
|
+
|
|
122
|
+
:param str resource_name: The name of the resource.
|
|
123
|
+
:param MutatingAdmissionPolicyListArgs args: The arguments to use to populate this resource's properties.
|
|
124
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
125
|
+
"""
|
|
126
|
+
...
|
|
127
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
128
|
+
resource_args, opts = _utilities.get_resource_args_opts(MutatingAdmissionPolicyListArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
129
|
+
if resource_args is not None:
|
|
130
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
131
|
+
else:
|
|
132
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
133
|
+
|
|
134
|
+
def _internal_init(__self__,
|
|
135
|
+
resource_name: str,
|
|
136
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
137
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
138
|
+
items: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MutatingAdmissionPolicyArgs', 'MutatingAdmissionPolicyArgsDict']]]]] = None,
|
|
139
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
140
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
|
|
141
|
+
__props__=None):
|
|
142
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
143
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
144
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
145
|
+
if opts.id is None:
|
|
146
|
+
if __props__ is not None:
|
|
147
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
148
|
+
__props__ = MutatingAdmissionPolicyListArgs.__new__(MutatingAdmissionPolicyListArgs)
|
|
149
|
+
|
|
150
|
+
__props__.__dict__["api_version"] = 'admissionregistration.k8s.io/v1alpha1'
|
|
151
|
+
if items is None and not opts.urn:
|
|
152
|
+
raise TypeError("Missing required property 'items'")
|
|
153
|
+
__props__.__dict__["items"] = items
|
|
154
|
+
__props__.__dict__["kind"] = 'MutatingAdmissionPolicyList'
|
|
155
|
+
__props__.__dict__["metadata"] = metadata
|
|
156
|
+
super(MutatingAdmissionPolicyList, __self__).__init__(
|
|
157
|
+
'kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyList',
|
|
158
|
+
resource_name,
|
|
159
|
+
__props__,
|
|
160
|
+
opts)
|
|
161
|
+
|
|
162
|
+
@staticmethod
|
|
163
|
+
def get(resource_name: str,
|
|
164
|
+
id: pulumi.Input[str],
|
|
165
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'MutatingAdmissionPolicyList':
|
|
166
|
+
"""
|
|
167
|
+
Get an existing MutatingAdmissionPolicyList resource's state with the given name, id, and optional extra
|
|
168
|
+
properties used to qualify the lookup.
|
|
169
|
+
|
|
170
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
171
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
172
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
173
|
+
"""
|
|
174
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
175
|
+
|
|
176
|
+
__props__ = MutatingAdmissionPolicyListArgs.__new__(MutatingAdmissionPolicyListArgs)
|
|
177
|
+
|
|
178
|
+
__props__.__dict__["api_version"] = None
|
|
179
|
+
__props__.__dict__["items"] = None
|
|
180
|
+
__props__.__dict__["kind"] = None
|
|
181
|
+
__props__.__dict__["metadata"] = None
|
|
182
|
+
return MutatingAdmissionPolicyList(resource_name, opts=opts, __props__=__props__)
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
@pulumi.getter(name="apiVersion")
|
|
186
|
+
def api_version(self) -> pulumi.Output[str]:
|
|
187
|
+
"""
|
|
188
|
+
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
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "api_version")
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter
|
|
194
|
+
def items(self) -> pulumi.Output[Sequence['outputs.MutatingAdmissionPolicy']]:
|
|
195
|
+
"""
|
|
196
|
+
List of ValidatingAdmissionPolicy.
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "items")
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
@pulumi.getter
|
|
202
|
+
def kind(self) -> pulumi.Output[str]:
|
|
203
|
+
"""
|
|
204
|
+
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
|
|
205
|
+
"""
|
|
206
|
+
return pulumi.get(self, "kind")
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
@pulumi.getter
|
|
210
|
+
def metadata(self) -> pulumi.Output['_meta.v1.outputs.ListMeta']:
|
|
211
|
+
"""
|
|
212
|
+
Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
213
|
+
"""
|
|
214
|
+
return pulumi.get(self, "metadata")
|
|
215
|
+
|
|
@@ -0,0 +1,226 @@
|
|
|
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__ = ['MutatingAdmissionPolicyPatchArgs', 'MutatingAdmissionPolicyPatch']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class MutatingAdmissionPolicyPatchArgs:
|
|
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.ObjectMetaPatchArgs']] = None,
|
|
28
|
+
spec: Optional[pulumi.Input['MutatingAdmissionPolicySpecPatchArgs']] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a MutatingAdmissionPolicyPatch 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.ObjectMetaPatchArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
34
|
+
:param pulumi.Input['MutatingAdmissionPolicySpecPatchArgs'] spec: Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
35
|
+
"""
|
|
36
|
+
if api_version is not None:
|
|
37
|
+
pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1alpha1')
|
|
38
|
+
if kind is not None:
|
|
39
|
+
pulumi.set(__self__, "kind", 'MutatingAdmissionPolicy')
|
|
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.ObjectMetaPatchArgs']]:
|
|
72
|
+
"""
|
|
73
|
+
Standard object 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.ObjectMetaPatchArgs']]):
|
|
79
|
+
pulumi.set(self, "metadata", value)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def spec(self) -> Optional[pulumi.Input['MutatingAdmissionPolicySpecPatchArgs']]:
|
|
84
|
+
"""
|
|
85
|
+
Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "spec")
|
|
88
|
+
|
|
89
|
+
@spec.setter
|
|
90
|
+
def spec(self, value: Optional[pulumi.Input['MutatingAdmissionPolicySpecPatchArgs']]):
|
|
91
|
+
pulumi.set(self, "spec", value)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class MutatingAdmissionPolicyPatch(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.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
|
|
102
|
+
spec: Optional[pulumi.Input[Union['MutatingAdmissionPolicySpecPatchArgs', 'MutatingAdmissionPolicySpecPatchArgsDict']]] = None,
|
|
103
|
+
__props__=None):
|
|
104
|
+
"""
|
|
105
|
+
Patch resources are used to modify existing Kubernetes resources by using
|
|
106
|
+
Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
|
|
107
|
+
one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
|
|
108
|
+
Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
|
|
109
|
+
[Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
|
|
110
|
+
additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
|
|
111
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
112
|
+
|
|
113
|
+
:param str resource_name: The name of the resource.
|
|
114
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
115
|
+
: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
|
|
116
|
+
: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
|
|
117
|
+
:param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
118
|
+
:param pulumi.Input[Union['MutatingAdmissionPolicySpecPatchArgs', 'MutatingAdmissionPolicySpecPatchArgsDict']] spec: Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
119
|
+
"""
|
|
120
|
+
...
|
|
121
|
+
@overload
|
|
122
|
+
def __init__(__self__,
|
|
123
|
+
resource_name: str,
|
|
124
|
+
args: Optional[MutatingAdmissionPolicyPatchArgs] = None,
|
|
125
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
126
|
+
"""
|
|
127
|
+
Patch resources are used to modify existing Kubernetes resources by using
|
|
128
|
+
Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
|
|
129
|
+
one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
|
|
130
|
+
Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
|
|
131
|
+
[Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
|
|
132
|
+
additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
|
|
133
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
134
|
+
|
|
135
|
+
:param str resource_name: The name of the resource.
|
|
136
|
+
:param MutatingAdmissionPolicyPatchArgs args: The arguments to use to populate this resource's properties.
|
|
137
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
138
|
+
"""
|
|
139
|
+
...
|
|
140
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
141
|
+
resource_args, opts = _utilities.get_resource_args_opts(MutatingAdmissionPolicyPatchArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
142
|
+
if resource_args is not None:
|
|
143
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
144
|
+
else:
|
|
145
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
146
|
+
|
|
147
|
+
def _internal_init(__self__,
|
|
148
|
+
resource_name: str,
|
|
149
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
150
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
151
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
152
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
|
|
153
|
+
spec: Optional[pulumi.Input[Union['MutatingAdmissionPolicySpecPatchArgs', 'MutatingAdmissionPolicySpecPatchArgsDict']]] = None,
|
|
154
|
+
__props__=None):
|
|
155
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
156
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
157
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
158
|
+
if opts.id is None:
|
|
159
|
+
if __props__ is not None:
|
|
160
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
161
|
+
__props__ = MutatingAdmissionPolicyPatchArgs.__new__(MutatingAdmissionPolicyPatchArgs)
|
|
162
|
+
|
|
163
|
+
__props__.__dict__["api_version"] = 'admissionregistration.k8s.io/v1alpha1'
|
|
164
|
+
__props__.__dict__["kind"] = 'MutatingAdmissionPolicy'
|
|
165
|
+
__props__.__dict__["metadata"] = metadata
|
|
166
|
+
__props__.__dict__["spec"] = spec
|
|
167
|
+
super(MutatingAdmissionPolicyPatch, __self__).__init__(
|
|
168
|
+
'kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyPatch',
|
|
169
|
+
resource_name,
|
|
170
|
+
__props__,
|
|
171
|
+
opts)
|
|
172
|
+
|
|
173
|
+
@staticmethod
|
|
174
|
+
def get(resource_name: str,
|
|
175
|
+
id: pulumi.Input[str],
|
|
176
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'MutatingAdmissionPolicyPatch':
|
|
177
|
+
"""
|
|
178
|
+
Get an existing MutatingAdmissionPolicyPatch resource's state with the given name, id, and optional extra
|
|
179
|
+
properties used to qualify the lookup.
|
|
180
|
+
|
|
181
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
182
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
183
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
184
|
+
"""
|
|
185
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
186
|
+
|
|
187
|
+
__props__ = MutatingAdmissionPolicyPatchArgs.__new__(MutatingAdmissionPolicyPatchArgs)
|
|
188
|
+
|
|
189
|
+
__props__.__dict__["api_version"] = None
|
|
190
|
+
__props__.__dict__["kind"] = None
|
|
191
|
+
__props__.__dict__["metadata"] = None
|
|
192
|
+
__props__.__dict__["spec"] = None
|
|
193
|
+
return MutatingAdmissionPolicyPatch(resource_name, opts=opts, __props__=__props__)
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
@pulumi.getter(name="apiVersion")
|
|
197
|
+
def api_version(self) -> pulumi.Output[Optional[str]]:
|
|
198
|
+
"""
|
|
199
|
+
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
|
|
200
|
+
"""
|
|
201
|
+
return pulumi.get(self, "api_version")
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
@pulumi.getter
|
|
205
|
+
def kind(self) -> pulumi.Output[Optional[str]]:
|
|
206
|
+
"""
|
|
207
|
+
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
|
|
208
|
+
"""
|
|
209
|
+
return pulumi.get(self, "kind")
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
@pulumi.getter
|
|
213
|
+
def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
|
|
214
|
+
"""
|
|
215
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "metadata")
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
@pulumi.getter
|
|
221
|
+
def spec(self) -> pulumi.Output[Optional['outputs.MutatingAdmissionPolicySpecPatch']]:
|
|
222
|
+
"""
|
|
223
|
+
Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
224
|
+
"""
|
|
225
|
+
return pulumi.get(self, "spec")
|
|
226
|
+
|
|
@@ -104,10 +104,6 @@ class ValidatingAdmissionPolicyBinding(pulumi.CustomResource):
|
|
|
104
104
|
"""
|
|
105
105
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
106
106
|
|
|
107
|
-
For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
|
|
108
|
-
|
|
109
|
-
The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
110
|
-
|
|
111
107
|
:param str resource_name: The name of the resource.
|
|
112
108
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
113
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
|
|
@@ -124,10 +120,6 @@ class ValidatingAdmissionPolicyBinding(pulumi.CustomResource):
|
|
|
124
120
|
"""
|
|
125
121
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
126
122
|
|
|
127
|
-
For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
|
|
128
|
-
|
|
129
|
-
The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
130
|
-
|
|
131
123
|
:param str resource_name: The name of the resource.
|
|
132
124
|
:param ValidatingAdmissionPolicyBindingInitArgs args: The arguments to use to populate this resource's properties.
|
|
133
125
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -110,10 +110,6 @@ class ValidatingAdmissionPolicyBindingPatch(pulumi.CustomResource):
|
|
|
110
110
|
additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
|
|
111
111
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
112
112
|
|
|
113
|
-
For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
|
|
114
|
-
|
|
115
|
-
The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
116
|
-
|
|
117
113
|
:param str resource_name: The name of the resource.
|
|
118
114
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
119
115
|
: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
|
|
@@ -136,10 +132,6 @@ class ValidatingAdmissionPolicyBindingPatch(pulumi.CustomResource):
|
|
|
136
132
|
additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
|
|
137
133
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
138
134
|
|
|
139
|
-
For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
|
|
140
|
-
|
|
141
|
-
The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
142
|
-
|
|
143
135
|
:param str resource_name: The name of the resource.
|
|
144
136
|
:param ValidatingAdmissionPolicyBindingPatchArgs args: The arguments to use to populate this resource's properties.
|
|
145
137
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
from ... import _utilities
|
|
6
6
|
import typing
|
|
7
7
|
# Export this package's modules as members:
|
|
8
|
+
from .MutatingAdmissionPolicy import *
|
|
9
|
+
from .MutatingAdmissionPolicyBinding import *
|
|
10
|
+
from .MutatingAdmissionPolicyBindingList import *
|
|
11
|
+
from .MutatingAdmissionPolicyBindingPatch import *
|
|
12
|
+
from .MutatingAdmissionPolicyList import *
|
|
13
|
+
from .MutatingAdmissionPolicyPatch import *
|
|
8
14
|
from .ValidatingAdmissionPolicy import *
|
|
9
15
|
from .ValidatingAdmissionPolicyBinding import *
|
|
10
16
|
from .ValidatingAdmissionPolicyBindingList import *
|