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
pulumi_kubernetes/__init__.py
CHANGED
|
@@ -120,6 +120,12 @@ _utilities.register(
|
|
|
120
120
|
"mod": "admissionregistration.k8s.io/v1alpha1",
|
|
121
121
|
"fqn": "pulumi_kubernetes.admissionregistration.v1alpha1",
|
|
122
122
|
"classes": {
|
|
123
|
+
"kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicy": "MutatingAdmissionPolicy",
|
|
124
|
+
"kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyBinding": "MutatingAdmissionPolicyBinding",
|
|
125
|
+
"kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyBindingList": "MutatingAdmissionPolicyBindingList",
|
|
126
|
+
"kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyBindingPatch": "MutatingAdmissionPolicyBindingPatch",
|
|
127
|
+
"kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyList": "MutatingAdmissionPolicyList",
|
|
128
|
+
"kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyPatch": "MutatingAdmissionPolicyPatch",
|
|
123
129
|
"kubernetes:admissionregistration.k8s.io/v1alpha1:ValidatingAdmissionPolicy": "ValidatingAdmissionPolicy",
|
|
124
130
|
"kubernetes:admissionregistration.k8s.io/v1alpha1:ValidatingAdmissionPolicyBinding": "ValidatingAdmissionPolicyBinding",
|
|
125
131
|
"kubernetes:admissionregistration.k8s.io/v1alpha1:ValidatingAdmissionPolicyBindingList": "ValidatingAdmissionPolicyBindingList",
|
|
@@ -380,6 +386,16 @@ _utilities.register(
|
|
|
380
386
|
"kubernetes:coordination.k8s.io/v1alpha1:LeaseCandidatePatch": "LeaseCandidatePatch"
|
|
381
387
|
}
|
|
382
388
|
},
|
|
389
|
+
{
|
|
390
|
+
"pkg": "kubernetes",
|
|
391
|
+
"mod": "coordination.k8s.io/v1alpha2",
|
|
392
|
+
"fqn": "pulumi_kubernetes.coordination.v1alpha2",
|
|
393
|
+
"classes": {
|
|
394
|
+
"kubernetes:coordination.k8s.io/v1alpha2:LeaseCandidate": "LeaseCandidate",
|
|
395
|
+
"kubernetes:coordination.k8s.io/v1alpha2:LeaseCandidateList": "LeaseCandidateList",
|
|
396
|
+
"kubernetes:coordination.k8s.io/v1alpha2:LeaseCandidatePatch": "LeaseCandidatePatch"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
383
399
|
{
|
|
384
400
|
"pkg": "kubernetes",
|
|
385
401
|
"mod": "coordination.k8s.io/v1beta1",
|
|
@@ -833,9 +849,29 @@ _utilities.register(
|
|
|
833
849
|
"kubernetes:resource.k8s.io/v1alpha3:ResourceClaimTemplateList": "ResourceClaimTemplateList",
|
|
834
850
|
"kubernetes:resource.k8s.io/v1alpha3:ResourceClaimTemplatePatch": "ResourceClaimTemplatePatch",
|
|
835
851
|
"kubernetes:resource.k8s.io/v1alpha3:ResourceSlice": "ResourceSlice",
|
|
852
|
+
"kubernetes:resource.k8s.io/v1alpha3:ResourceSliceList": "ResourceSliceList",
|
|
836
853
|
"kubernetes:resource.k8s.io/v1alpha3:ResourceSlicePatch": "ResourceSlicePatch"
|
|
837
854
|
}
|
|
838
855
|
},
|
|
856
|
+
{
|
|
857
|
+
"pkg": "kubernetes",
|
|
858
|
+
"mod": "resource.k8s.io/v1beta1",
|
|
859
|
+
"fqn": "pulumi_kubernetes.resource.v1beta1",
|
|
860
|
+
"classes": {
|
|
861
|
+
"kubernetes:resource.k8s.io/v1beta1:DeviceClass": "DeviceClass",
|
|
862
|
+
"kubernetes:resource.k8s.io/v1beta1:DeviceClassList": "DeviceClassList",
|
|
863
|
+
"kubernetes:resource.k8s.io/v1beta1:DeviceClassPatch": "DeviceClassPatch",
|
|
864
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceClaim": "ResourceClaim",
|
|
865
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceClaimList": "ResourceClaimList",
|
|
866
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceClaimPatch": "ResourceClaimPatch",
|
|
867
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceClaimTemplate": "ResourceClaimTemplate",
|
|
868
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceClaimTemplateList": "ResourceClaimTemplateList",
|
|
869
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceClaimTemplatePatch": "ResourceClaimTemplatePatch",
|
|
870
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceSlice": "ResourceSlice",
|
|
871
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceSliceList": "ResourceSliceList",
|
|
872
|
+
"kubernetes:resource.k8s.io/v1beta1:ResourceSlicePatch": "ResourceSlicePatch"
|
|
873
|
+
}
|
|
874
|
+
},
|
|
839
875
|
{
|
|
840
876
|
"pkg": "kubernetes",
|
|
841
877
|
"mod": "scheduling.k8s.io/v1",
|
|
@@ -3079,7 +3079,7 @@ if not MYPY:
|
|
|
3079
3079
|
|
|
3080
3080
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
3081
3081
|
|
|
3082
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
3082
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
3083
3083
|
|
|
3084
3084
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3085
3085
|
|
|
@@ -3114,7 +3114,7 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
|
|
|
3114
3114
|
|
|
3115
3115
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
3116
3116
|
|
|
3117
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
3117
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
3118
3118
|
|
|
3119
3119
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3120
3120
|
|
|
@@ -3183,7 +3183,7 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
|
|
|
3183
3183
|
|
|
3184
3184
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
3185
3185
|
|
|
3186
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
3186
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
3187
3187
|
|
|
3188
3188
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3189
3189
|
|
|
@@ -3229,7 +3229,7 @@ if not MYPY:
|
|
|
3229
3229
|
|
|
3230
3230
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
3231
3231
|
|
|
3232
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
3232
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
3233
3233
|
|
|
3234
3234
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3235
3235
|
|
|
@@ -3264,7 +3264,7 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
|
|
|
3264
3264
|
|
|
3265
3265
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
3266
3266
|
|
|
3267
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
3267
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
3268
3268
|
|
|
3269
3269
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3270
3270
|
|
|
@@ -3333,7 +3333,7 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
|
|
|
3333
3333
|
|
|
3334
3334
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
3335
3335
|
|
|
3336
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
3336
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
3337
3337
|
|
|
3338
3338
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3339
3339
|
|
|
@@ -2577,7 +2577,7 @@ class ValidatingAdmissionPolicyBindingSpec(dict):
|
|
|
2577
2577
|
|
|
2578
2578
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
2579
2579
|
|
|
2580
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
2580
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
2581
2581
|
|
|
2582
2582
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
2583
2583
|
|
|
@@ -2634,7 +2634,7 @@ class ValidatingAdmissionPolicyBindingSpec(dict):
|
|
|
2634
2634
|
|
|
2635
2635
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
2636
2636
|
|
|
2637
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
2637
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
2638
2638
|
|
|
2639
2639
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
2640
2640
|
|
|
@@ -2695,7 +2695,7 @@ class ValidatingAdmissionPolicyBindingSpecPatch(dict):
|
|
|
2695
2695
|
|
|
2696
2696
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
2697
2697
|
|
|
2698
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
2698
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
2699
2699
|
|
|
2700
2700
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
2701
2701
|
|
|
@@ -2752,7 +2752,7 @@ class ValidatingAdmissionPolicyBindingSpecPatch(dict):
|
|
|
2752
2752
|
|
|
2753
2753
|
"Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
|
|
2754
2754
|
|
|
2755
|
-
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
|
|
2755
|
+
"Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{\\"message\\": \\"Invalid value\\", {\\"policy\\": \\"policy.example.com\\", {\\"binding\\": \\"policybinding.example.com\\", {\\"expressionIndex\\": \\"1\\", {\\"validationActions\\": [\\"Audit\\"]}]"`
|
|
2756
2756
|
|
|
2757
2757
|
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
2758
2758
|
|
|
@@ -0,0 +1,214 @@
|
|
|
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__ = ['MutatingAdmissionPolicyInitArgs', 'MutatingAdmissionPolicy']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class MutatingAdmissionPolicyInitArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
|
|
28
|
+
spec: Optional[pulumi.Input['MutatingAdmissionPolicySpecArgs']] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a MutatingAdmissionPolicy resource.
|
|
31
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
32
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
33
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
34
|
+
:param pulumi.Input['MutatingAdmissionPolicySpecArgs'] 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.ObjectMetaArgs']]:
|
|
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.ObjectMetaArgs']]):
|
|
79
|
+
pulumi.set(self, "metadata", value)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def spec(self) -> Optional[pulumi.Input['MutatingAdmissionPolicySpecArgs']]:
|
|
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['MutatingAdmissionPolicySpecArgs']]):
|
|
91
|
+
pulumi.set(self, "spec", value)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class MutatingAdmissionPolicy(pulumi.CustomResource):
|
|
95
|
+
@overload
|
|
96
|
+
def __init__(__self__,
|
|
97
|
+
resource_name: str,
|
|
98
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
99
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
|
|
102
|
+
spec: Optional[pulumi.Input[Union['MutatingAdmissionPolicySpecArgs', 'MutatingAdmissionPolicySpecArgsDict']]] = None,
|
|
103
|
+
__props__=None):
|
|
104
|
+
"""
|
|
105
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
106
|
+
|
|
107
|
+
:param str resource_name: The name of the resource.
|
|
108
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
109
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
110
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
111
|
+
:param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
112
|
+
:param pulumi.Input[Union['MutatingAdmissionPolicySpecArgs', 'MutatingAdmissionPolicySpecArgsDict']] spec: Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
113
|
+
"""
|
|
114
|
+
...
|
|
115
|
+
@overload
|
|
116
|
+
def __init__(__self__,
|
|
117
|
+
resource_name: str,
|
|
118
|
+
args: Optional[MutatingAdmissionPolicyInitArgs] = None,
|
|
119
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
120
|
+
"""
|
|
121
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
122
|
+
|
|
123
|
+
:param str resource_name: The name of the resource.
|
|
124
|
+
:param MutatingAdmissionPolicyInitArgs args: The arguments to use to populate this resource's properties.
|
|
125
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
126
|
+
"""
|
|
127
|
+
...
|
|
128
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
129
|
+
resource_args, opts = _utilities.get_resource_args_opts(MutatingAdmissionPolicyInitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
130
|
+
if resource_args is not None:
|
|
131
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
132
|
+
else:
|
|
133
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
134
|
+
|
|
135
|
+
def _internal_init(__self__,
|
|
136
|
+
resource_name: str,
|
|
137
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
138
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
139
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
140
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
|
|
141
|
+
spec: Optional[pulumi.Input[Union['MutatingAdmissionPolicySpecArgs', 'MutatingAdmissionPolicySpecArgsDict']]] = None,
|
|
142
|
+
__props__=None):
|
|
143
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
144
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
145
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
146
|
+
if opts.id is None:
|
|
147
|
+
if __props__ is not None:
|
|
148
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
149
|
+
__props__ = MutatingAdmissionPolicyInitArgs.__new__(MutatingAdmissionPolicyInitArgs)
|
|
150
|
+
|
|
151
|
+
__props__.__dict__["api_version"] = 'admissionregistration.k8s.io/v1alpha1'
|
|
152
|
+
__props__.__dict__["kind"] = 'MutatingAdmissionPolicy'
|
|
153
|
+
__props__.__dict__["metadata"] = metadata
|
|
154
|
+
__props__.__dict__["spec"] = spec
|
|
155
|
+
super(MutatingAdmissionPolicy, __self__).__init__(
|
|
156
|
+
'kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicy',
|
|
157
|
+
resource_name,
|
|
158
|
+
__props__,
|
|
159
|
+
opts)
|
|
160
|
+
|
|
161
|
+
@staticmethod
|
|
162
|
+
def get(resource_name: str,
|
|
163
|
+
id: pulumi.Input[str],
|
|
164
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'MutatingAdmissionPolicy':
|
|
165
|
+
"""
|
|
166
|
+
Get an existing MutatingAdmissionPolicy resource's state with the given name, id, and optional extra
|
|
167
|
+
properties used to qualify the lookup.
|
|
168
|
+
|
|
169
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
170
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
171
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
172
|
+
"""
|
|
173
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
174
|
+
|
|
175
|
+
__props__ = MutatingAdmissionPolicyInitArgs.__new__(MutatingAdmissionPolicyInitArgs)
|
|
176
|
+
|
|
177
|
+
__props__.__dict__["api_version"] = None
|
|
178
|
+
__props__.__dict__["kind"] = None
|
|
179
|
+
__props__.__dict__["metadata"] = None
|
|
180
|
+
__props__.__dict__["spec"] = None
|
|
181
|
+
return MutatingAdmissionPolicy(resource_name, opts=opts, __props__=__props__)
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
@pulumi.getter(name="apiVersion")
|
|
185
|
+
def api_version(self) -> pulumi.Output[str]:
|
|
186
|
+
"""
|
|
187
|
+
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
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "api_version")
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
@pulumi.getter
|
|
193
|
+
def kind(self) -> pulumi.Output[str]:
|
|
194
|
+
"""
|
|
195
|
+
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
|
|
196
|
+
"""
|
|
197
|
+
return pulumi.get(self, "kind")
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter
|
|
201
|
+
def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
|
|
202
|
+
"""
|
|
203
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
204
|
+
"""
|
|
205
|
+
return pulumi.get(self, "metadata")
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
@pulumi.getter
|
|
209
|
+
def spec(self) -> pulumi.Output['outputs.MutatingAdmissionPolicySpec']:
|
|
210
|
+
"""
|
|
211
|
+
Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
212
|
+
"""
|
|
213
|
+
return pulumi.get(self, "spec")
|
|
214
|
+
|
|
@@ -0,0 +1,222 @@
|
|
|
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__ = ['MutatingAdmissionPolicyBindingInitArgs', 'MutatingAdmissionPolicyBinding']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class MutatingAdmissionPolicyBindingInitArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
|
|
28
|
+
spec: Optional[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs']] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a MutatingAdmissionPolicyBinding resource.
|
|
31
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
32
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
33
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
34
|
+
:param pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs'] spec: Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
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", 'MutatingAdmissionPolicyBinding')
|
|
40
|
+
if metadata is not None:
|
|
41
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
42
|
+
if spec is not None:
|
|
43
|
+
pulumi.set(__self__, "spec", spec)
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
@pulumi.getter(name="apiVersion")
|
|
47
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
48
|
+
"""
|
|
49
|
+
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
50
|
+
"""
|
|
51
|
+
return pulumi.get(self, "api_version")
|
|
52
|
+
|
|
53
|
+
@api_version.setter
|
|
54
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
55
|
+
pulumi.set(self, "api_version", value)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
60
|
+
"""
|
|
61
|
+
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "kind")
|
|
64
|
+
|
|
65
|
+
@kind.setter
|
|
66
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
67
|
+
pulumi.set(self, "kind", value)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
72
|
+
"""
|
|
73
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "metadata")
|
|
76
|
+
|
|
77
|
+
@metadata.setter
|
|
78
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
79
|
+
pulumi.set(self, "metadata", value)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def spec(self) -> Optional[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs']]:
|
|
84
|
+
"""
|
|
85
|
+
Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "spec")
|
|
88
|
+
|
|
89
|
+
@spec.setter
|
|
90
|
+
def spec(self, value: Optional[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs']]):
|
|
91
|
+
pulumi.set(self, "spec", value)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class MutatingAdmissionPolicyBinding(pulumi.CustomResource):
|
|
95
|
+
@overload
|
|
96
|
+
def __init__(__self__,
|
|
97
|
+
resource_name: str,
|
|
98
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
99
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
|
|
102
|
+
spec: Optional[pulumi.Input[Union['MutatingAdmissionPolicyBindingSpecArgs', 'MutatingAdmissionPolicyBindingSpecArgsDict']]] = None,
|
|
103
|
+
__props__=None):
|
|
104
|
+
"""
|
|
105
|
+
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.
|
|
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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).
|
|
108
|
+
|
|
109
|
+
Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
110
|
+
|
|
111
|
+
:param str resource_name: The name of the resource.
|
|
112
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
113
|
+
: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
|
|
114
|
+
: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
|
|
115
|
+
:param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
116
|
+
:param pulumi.Input[Union['MutatingAdmissionPolicyBindingSpecArgs', 'MutatingAdmissionPolicyBindingSpecArgsDict']] spec: Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
117
|
+
"""
|
|
118
|
+
...
|
|
119
|
+
@overload
|
|
120
|
+
def __init__(__self__,
|
|
121
|
+
resource_name: str,
|
|
122
|
+
args: Optional[MutatingAdmissionPolicyBindingInitArgs] = None,
|
|
123
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
124
|
+
"""
|
|
125
|
+
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.
|
|
126
|
+
|
|
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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).
|
|
128
|
+
|
|
129
|
+
Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
130
|
+
|
|
131
|
+
:param str resource_name: The name of the resource.
|
|
132
|
+
:param MutatingAdmissionPolicyBindingInitArgs args: The arguments to use to populate this resource's properties.
|
|
133
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
134
|
+
"""
|
|
135
|
+
...
|
|
136
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
137
|
+
resource_args, opts = _utilities.get_resource_args_opts(MutatingAdmissionPolicyBindingInitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
138
|
+
if resource_args is not None:
|
|
139
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
140
|
+
else:
|
|
141
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
142
|
+
|
|
143
|
+
def _internal_init(__self__,
|
|
144
|
+
resource_name: str,
|
|
145
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
146
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
147
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
148
|
+
metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
|
|
149
|
+
spec: Optional[pulumi.Input[Union['MutatingAdmissionPolicyBindingSpecArgs', 'MutatingAdmissionPolicyBindingSpecArgsDict']]] = None,
|
|
150
|
+
__props__=None):
|
|
151
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
152
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
153
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
154
|
+
if opts.id is None:
|
|
155
|
+
if __props__ is not None:
|
|
156
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
157
|
+
__props__ = MutatingAdmissionPolicyBindingInitArgs.__new__(MutatingAdmissionPolicyBindingInitArgs)
|
|
158
|
+
|
|
159
|
+
__props__.__dict__["api_version"] = 'admissionregistration.k8s.io/v1alpha1'
|
|
160
|
+
__props__.__dict__["kind"] = 'MutatingAdmissionPolicyBinding'
|
|
161
|
+
__props__.__dict__["metadata"] = metadata
|
|
162
|
+
__props__.__dict__["spec"] = spec
|
|
163
|
+
super(MutatingAdmissionPolicyBinding, __self__).__init__(
|
|
164
|
+
'kubernetes:admissionregistration.k8s.io/v1alpha1:MutatingAdmissionPolicyBinding',
|
|
165
|
+
resource_name,
|
|
166
|
+
__props__,
|
|
167
|
+
opts)
|
|
168
|
+
|
|
169
|
+
@staticmethod
|
|
170
|
+
def get(resource_name: str,
|
|
171
|
+
id: pulumi.Input[str],
|
|
172
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'MutatingAdmissionPolicyBinding':
|
|
173
|
+
"""
|
|
174
|
+
Get an existing MutatingAdmissionPolicyBinding resource's state with the given name, id, and optional extra
|
|
175
|
+
properties used to qualify the lookup.
|
|
176
|
+
|
|
177
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
178
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
179
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
180
|
+
"""
|
|
181
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
182
|
+
|
|
183
|
+
__props__ = MutatingAdmissionPolicyBindingInitArgs.__new__(MutatingAdmissionPolicyBindingInitArgs)
|
|
184
|
+
|
|
185
|
+
__props__.__dict__["api_version"] = None
|
|
186
|
+
__props__.__dict__["kind"] = None
|
|
187
|
+
__props__.__dict__["metadata"] = None
|
|
188
|
+
__props__.__dict__["spec"] = None
|
|
189
|
+
return MutatingAdmissionPolicyBinding(resource_name, opts=opts, __props__=__props__)
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
@pulumi.getter(name="apiVersion")
|
|
193
|
+
def api_version(self) -> pulumi.Output[str]:
|
|
194
|
+
"""
|
|
195
|
+
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
|
|
196
|
+
"""
|
|
197
|
+
return pulumi.get(self, "api_version")
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter
|
|
201
|
+
def kind(self) -> pulumi.Output[str]:
|
|
202
|
+
"""
|
|
203
|
+
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
|
|
204
|
+
"""
|
|
205
|
+
return pulumi.get(self, "kind")
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
@pulumi.getter
|
|
209
|
+
def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
|
|
210
|
+
"""
|
|
211
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
212
|
+
"""
|
|
213
|
+
return pulumi.get(self, "metadata")
|
|
214
|
+
|
|
215
|
+
@property
|
|
216
|
+
@pulumi.getter
|
|
217
|
+
def spec(self) -> pulumi.Output['outputs.MutatingAdmissionPolicyBindingSpec']:
|
|
218
|
+
"""
|
|
219
|
+
Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
220
|
+
"""
|
|
221
|
+
return pulumi.get(self, "spec")
|
|
222
|
+
|