pulumi-kubernetes 4.17.0a1723243823__py3-none-any.whl → 4.17.1__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 +42 -2
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +18 -17
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +18 -17
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +18 -17
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +18 -17
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +18 -17
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +18 -17
- pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
- pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
- pulumi_kubernetes/apps/v1/_inputs.py +12 -12
- pulumi_kubernetes/apps/v1/outputs.py +8 -8
- pulumi_kubernetes/batch/v1/_inputs.py +15 -27
- pulumi_kubernetes/batch/v1/outputs.py +12 -20
- pulumi_kubernetes/coordination/__init__.py +3 -0
- pulumi_kubernetes/coordination/v1/_inputs.py +94 -14
- pulumi_kubernetes/coordination/v1/outputs.py +62 -10
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +214 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +215 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +226 -0
- pulumi_kubernetes/coordination/v1alpha1/__init__.py +12 -0
- pulumi_kubernetes/coordination/v1alpha1/_inputs.py +418 -0
- pulumi_kubernetes/coordination/v1alpha1/outputs.py +334 -0
- pulumi_kubernetes/core/v1/Service.py +6 -22
- pulumi_kubernetes/core/v1/ServicePatch.py +6 -22
- pulumi_kubernetes/core/v1/_inputs.py +961 -206
- pulumi_kubernetes/core/v1/outputs.py +1032 -157
- pulumi_kubernetes/networking/v1alpha1/IPAddress.py +2 -0
- pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +2 -0
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +2 -0
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +2 -0
- pulumi_kubernetes/networking/v1beta1/IPAddress.py +216 -0
- pulumi_kubernetes/networking/v1beta1/IPAddressList.py +215 -0
- pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +228 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +226 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +215 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +238 -0
- pulumi_kubernetes/networking/v1beta1/__init__.py +6 -0
- pulumi_kubernetes/networking/v1beta1/_inputs.py +599 -0
- pulumi_kubernetes/networking/v1beta1/outputs.py +461 -0
- 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/PodSchedulingContext.py +2 -0
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +2 -0
- 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 +2 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +2 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +236 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +247 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +231 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +215 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +242 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +232 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +243 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +229 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +215 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +240 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +246 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +257 -0
- pulumi_kubernetes/resource/v1alpha3/__init__.py +23 -0
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +3924 -0
- pulumi_kubernetes/resource/v1alpha3/outputs.py +3327 -0
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +2 -0
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +2 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +252 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +215 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +263 -0
- pulumi_kubernetes/storage/v1beta1/__init__.py +3 -0
- pulumi_kubernetes/storage/v1beta1/_inputs.py +123 -0
- pulumi_kubernetes/storage/v1beta1/outputs.py +94 -0
- pulumi_kubernetes/yaml/yaml.py +102 -0
- {pulumi_kubernetes-4.17.0a1723243823.dist-info → pulumi_kubernetes-4.17.1.dist-info}/METADATA +1 -1
- {pulumi_kubernetes-4.17.0a1723243823.dist-info → pulumi_kubernetes-4.17.1.dist-info}/RECORD +83 -51
- {pulumi_kubernetes-4.17.0a1723243823.dist-info → pulumi_kubernetes-4.17.1.dist-info}/WHEEL +1 -1
- {pulumi_kubernetes-4.17.0a1723243823.dist-info → pulumi_kubernetes-4.17.1.dist-info}/top_level.txt +0 -0
|
@@ -3145,11 +3145,11 @@ if not MYPY:
|
|
|
3145
3145
|
"""
|
|
3146
3146
|
ordinals: NotRequired[pulumi.Input['StatefulSetOrdinalsPatchArgsDict']]
|
|
3147
3147
|
"""
|
|
3148
|
-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3148
|
+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3149
3149
|
"""
|
|
3150
3150
|
persistent_volume_claim_retention_policy: NotRequired[pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgsDict']]
|
|
3151
3151
|
"""
|
|
3152
|
-
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3152
|
+
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3153
3153
|
"""
|
|
3154
3154
|
pod_management_policy: NotRequired[pulumi.Input[str]]
|
|
3155
3155
|
"""
|
|
@@ -3203,8 +3203,8 @@ class StatefulSetSpecPatchArgs:
|
|
|
3203
3203
|
"""
|
|
3204
3204
|
A StatefulSetSpec is the specification of a StatefulSet.
|
|
3205
3205
|
:param pulumi.Input[int] min_ready_seconds: Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
|
|
3206
|
-
:param pulumi.Input['StatefulSetOrdinalsPatchArgs'] ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3207
|
-
:param pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs'] persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3206
|
+
:param pulumi.Input['StatefulSetOrdinalsPatchArgs'] ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3207
|
+
:param pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs'] persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3208
3208
|
:param pulumi.Input[str] pod_management_policy: podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.
|
|
3209
3209
|
:param pulumi.Input[int] replicas: replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
|
|
3210
3210
|
:param pulumi.Input[int] revision_history_limit: revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.
|
|
@@ -3253,7 +3253,7 @@ class StatefulSetSpecPatchArgs:
|
|
|
3253
3253
|
@pulumi.getter
|
|
3254
3254
|
def ordinals(self) -> Optional[pulumi.Input['StatefulSetOrdinalsPatchArgs']]:
|
|
3255
3255
|
"""
|
|
3256
|
-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3256
|
+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3257
3257
|
"""
|
|
3258
3258
|
return pulumi.get(self, "ordinals")
|
|
3259
3259
|
|
|
@@ -3265,7 +3265,7 @@ class StatefulSetSpecPatchArgs:
|
|
|
3265
3265
|
@pulumi.getter(name="persistentVolumeClaimRetentionPolicy")
|
|
3266
3266
|
def persistent_volume_claim_retention_policy(self) -> Optional[pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs']]:
|
|
3267
3267
|
"""
|
|
3268
|
-
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3268
|
+
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3269
3269
|
"""
|
|
3270
3270
|
return pulumi.get(self, "persistent_volume_claim_retention_policy")
|
|
3271
3271
|
|
|
@@ -3393,11 +3393,11 @@ if not MYPY:
|
|
|
3393
3393
|
"""
|
|
3394
3394
|
ordinals: NotRequired[pulumi.Input['StatefulSetOrdinalsArgsDict']]
|
|
3395
3395
|
"""
|
|
3396
|
-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3396
|
+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3397
3397
|
"""
|
|
3398
3398
|
persistent_volume_claim_retention_policy: NotRequired[pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyArgsDict']]
|
|
3399
3399
|
"""
|
|
3400
|
-
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3400
|
+
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3401
3401
|
"""
|
|
3402
3402
|
pod_management_policy: NotRequired[pulumi.Input[str]]
|
|
3403
3403
|
"""
|
|
@@ -3442,8 +3442,8 @@ class StatefulSetSpecArgs:
|
|
|
3442
3442
|
:param pulumi.Input[str] service_name: serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.
|
|
3443
3443
|
:param pulumi.Input['_core.v1.PodTemplateSpecArgs'] template: template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always".
|
|
3444
3444
|
:param pulumi.Input[int] min_ready_seconds: Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
|
|
3445
|
-
:param pulumi.Input['StatefulSetOrdinalsArgs'] ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3446
|
-
:param pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyArgs'] persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3445
|
+
:param pulumi.Input['StatefulSetOrdinalsArgs'] ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3446
|
+
:param pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyArgs'] persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3447
3447
|
:param pulumi.Input[str] pod_management_policy: podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.
|
|
3448
3448
|
:param pulumi.Input[int] replicas: replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
|
|
3449
3449
|
:param pulumi.Input[int] revision_history_limit: revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.
|
|
@@ -3522,7 +3522,7 @@ class StatefulSetSpecArgs:
|
|
|
3522
3522
|
@pulumi.getter
|
|
3523
3523
|
def ordinals(self) -> Optional[pulumi.Input['StatefulSetOrdinalsArgs']]:
|
|
3524
3524
|
"""
|
|
3525
|
-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3525
|
+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3526
3526
|
"""
|
|
3527
3527
|
return pulumi.get(self, "ordinals")
|
|
3528
3528
|
|
|
@@ -3534,7 +3534,7 @@ class StatefulSetSpecArgs:
|
|
|
3534
3534
|
@pulumi.getter(name="persistentVolumeClaimRetentionPolicy")
|
|
3535
3535
|
def persistent_volume_claim_retention_policy(self) -> Optional[pulumi.Input['StatefulSetPersistentVolumeClaimRetentionPolicyArgs']]:
|
|
3536
3536
|
"""
|
|
3537
|
-
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3537
|
+
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3538
3538
|
"""
|
|
3539
3539
|
return pulumi.get(self, "persistent_volume_claim_retention_policy")
|
|
3540
3540
|
|
|
@@ -3442,8 +3442,8 @@ class StatefulSetSpec(dict):
|
|
|
3442
3442
|
:param str service_name: serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller.
|
|
3443
3443
|
:param '_core.v1.PodTemplateSpecArgs' template: template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always".
|
|
3444
3444
|
:param int min_ready_seconds: Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
|
|
3445
|
-
:param 'StatefulSetOrdinalsArgs' ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3446
|
-
:param 'StatefulSetPersistentVolumeClaimRetentionPolicyArgs' persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3445
|
+
:param 'StatefulSetOrdinalsArgs' ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3446
|
+
:param 'StatefulSetPersistentVolumeClaimRetentionPolicyArgs' persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3447
3447
|
:param str pod_management_policy: podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.
|
|
3448
3448
|
:param int replicas: replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
|
|
3449
3449
|
:param int revision_history_limit: revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.
|
|
@@ -3506,7 +3506,7 @@ class StatefulSetSpec(dict):
|
|
|
3506
3506
|
@pulumi.getter
|
|
3507
3507
|
def ordinals(self) -> Optional['outputs.StatefulSetOrdinals']:
|
|
3508
3508
|
"""
|
|
3509
|
-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3509
|
+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3510
3510
|
"""
|
|
3511
3511
|
return pulumi.get(self, "ordinals")
|
|
3512
3512
|
|
|
@@ -3514,7 +3514,7 @@ class StatefulSetSpec(dict):
|
|
|
3514
3514
|
@pulumi.getter(name="persistentVolumeClaimRetentionPolicy")
|
|
3515
3515
|
def persistent_volume_claim_retention_policy(self) -> Optional['outputs.StatefulSetPersistentVolumeClaimRetentionPolicy']:
|
|
3516
3516
|
"""
|
|
3517
|
-
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3517
|
+
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3518
3518
|
"""
|
|
3519
3519
|
return pulumi.get(self, "persistent_volume_claim_retention_policy")
|
|
3520
3520
|
|
|
@@ -3608,8 +3608,8 @@ class StatefulSetSpecPatch(dict):
|
|
|
3608
3608
|
"""
|
|
3609
3609
|
A StatefulSetSpec is the specification of a StatefulSet.
|
|
3610
3610
|
:param int min_ready_seconds: Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
|
|
3611
|
-
:param 'StatefulSetOrdinalsPatchArgs' ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3612
|
-
:param 'StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs' persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3611
|
+
:param 'StatefulSetOrdinalsPatchArgs' ordinals: ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3612
|
+
:param 'StatefulSetPersistentVolumeClaimRetentionPolicyPatchArgs' persistent_volume_claim_retention_policy: persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3613
3613
|
:param str pod_management_policy: podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.
|
|
3614
3614
|
:param int replicas: replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
|
|
3615
3615
|
:param int revision_history_limit: revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.
|
|
@@ -3654,7 +3654,7 @@ class StatefulSetSpecPatch(dict):
|
|
|
3654
3654
|
@pulumi.getter
|
|
3655
3655
|
def ordinals(self) -> Optional['outputs.StatefulSetOrdinalsPatch']:
|
|
3656
3656
|
"""
|
|
3657
|
-
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3657
|
+
ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
|
|
3658
3658
|
"""
|
|
3659
3659
|
return pulumi.get(self, "ordinals")
|
|
3660
3660
|
|
|
@@ -3662,7 +3662,7 @@ class StatefulSetSpecPatch(dict):
|
|
|
3662
3662
|
@pulumi.getter(name="persistentVolumeClaimRetentionPolicy")
|
|
3663
3663
|
def persistent_volume_claim_retention_policy(self) -> Optional['outputs.StatefulSetPersistentVolumeClaimRetentionPolicyPatch']:
|
|
3664
3664
|
"""
|
|
3665
|
-
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is
|
|
3665
|
+
persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
|
|
3666
3666
|
"""
|
|
3667
3667
|
return pulumi.get(self, "persistent_volume_claim_retention_policy")
|
|
3668
3668
|
|
|
@@ -790,7 +790,7 @@ if not MYPY:
|
|
|
790
790
|
"""
|
|
791
791
|
managed_by: NotRequired[pulumi.Input[str]]
|
|
792
792
|
"""
|
|
793
|
-
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
793
|
+
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
794
794
|
|
|
795
795
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
796
796
|
"""
|
|
@@ -809,8 +809,6 @@ if not MYPY:
|
|
|
809
809
|
pod_failure_policy: NotRequired[pulumi.Input['PodFailurePolicyPatchArgsDict']]
|
|
810
810
|
"""
|
|
811
811
|
Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
812
|
-
|
|
813
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
814
812
|
"""
|
|
815
813
|
pod_replacement_policy: NotRequired[pulumi.Input[str]]
|
|
816
814
|
"""
|
|
@@ -829,7 +827,7 @@ if not MYPY:
|
|
|
829
827
|
"""
|
|
830
828
|
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
831
829
|
|
|
832
|
-
This field
|
|
830
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
833
831
|
"""
|
|
834
832
|
suspend: NotRequired[pulumi.Input[bool]]
|
|
835
833
|
"""
|
|
@@ -878,15 +876,13 @@ class JobSpecPatchArgs:
|
|
|
878
876
|
|
|
879
877
|
More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
|
|
880
878
|
:param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
881
|
-
:param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
879
|
+
:param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
882
880
|
|
|
883
881
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
884
882
|
:param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
|
|
885
883
|
:param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
886
884
|
:param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
887
885
|
:param pulumi.Input['PodFailurePolicyPatchArgs'] pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
888
|
-
|
|
889
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
890
886
|
:param pulumi.Input[str] pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
|
|
891
887
|
when they are terminating (has a metadata.deletionTimestamp) or failed.
|
|
892
888
|
- Failed means to wait until a previously created Pod is fully terminated (has phase
|
|
@@ -896,7 +892,7 @@ class JobSpecPatchArgs:
|
|
|
896
892
|
:param pulumi.Input['_meta.v1.LabelSelectorPatchArgs'] selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
897
893
|
:param pulumi.Input['SuccessPolicyPatchArgs'] success_policy: successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
898
894
|
|
|
899
|
-
This field
|
|
895
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
900
896
|
:param pulumi.Input[bool] suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
|
|
901
897
|
:param pulumi.Input['_core.v1.PodTemplateSpecPatchArgs'] template: Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
902
898
|
:param pulumi.Input[int] ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
|
|
@@ -1004,7 +1000,7 @@ class JobSpecPatchArgs:
|
|
|
1004
1000
|
@pulumi.getter(name="managedBy")
|
|
1005
1001
|
def managed_by(self) -> Optional[pulumi.Input[str]]:
|
|
1006
1002
|
"""
|
|
1007
|
-
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1003
|
+
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1008
1004
|
|
|
1009
1005
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1010
1006
|
"""
|
|
@@ -1055,8 +1051,6 @@ class JobSpecPatchArgs:
|
|
|
1055
1051
|
def pod_failure_policy(self) -> Optional[pulumi.Input['PodFailurePolicyPatchArgs']]:
|
|
1056
1052
|
"""
|
|
1057
1053
|
Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1058
|
-
|
|
1059
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1060
1054
|
"""
|
|
1061
1055
|
return pulumi.get(self, "pod_failure_policy")
|
|
1062
1056
|
|
|
@@ -1099,7 +1093,7 @@ class JobSpecPatchArgs:
|
|
|
1099
1093
|
"""
|
|
1100
1094
|
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1101
1095
|
|
|
1102
|
-
This field
|
|
1096
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1103
1097
|
"""
|
|
1104
1098
|
return pulumi.get(self, "success_policy")
|
|
1105
1099
|
|
|
@@ -1181,7 +1175,7 @@ if not MYPY:
|
|
|
1181
1175
|
"""
|
|
1182
1176
|
managed_by: NotRequired[pulumi.Input[str]]
|
|
1183
1177
|
"""
|
|
1184
|
-
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1178
|
+
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1185
1179
|
|
|
1186
1180
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1187
1181
|
"""
|
|
@@ -1200,8 +1194,6 @@ if not MYPY:
|
|
|
1200
1194
|
pod_failure_policy: NotRequired[pulumi.Input['PodFailurePolicyArgsDict']]
|
|
1201
1195
|
"""
|
|
1202
1196
|
Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1203
|
-
|
|
1204
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1205
1197
|
"""
|
|
1206
1198
|
pod_replacement_policy: NotRequired[pulumi.Input[str]]
|
|
1207
1199
|
"""
|
|
@@ -1220,7 +1212,7 @@ if not MYPY:
|
|
|
1220
1212
|
"""
|
|
1221
1213
|
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1222
1214
|
|
|
1223
|
-
This field
|
|
1215
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1224
1216
|
"""
|
|
1225
1217
|
suspend: NotRequired[pulumi.Input[bool]]
|
|
1226
1218
|
"""
|
|
@@ -1266,15 +1258,13 @@ class JobSpecArgs:
|
|
|
1266
1258
|
|
|
1267
1259
|
More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
|
|
1268
1260
|
:param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
1269
|
-
:param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1261
|
+
:param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1270
1262
|
|
|
1271
1263
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1272
1264
|
:param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
|
|
1273
1265
|
:param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
1274
1266
|
:param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
1275
1267
|
:param pulumi.Input['PodFailurePolicyArgs'] pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1276
|
-
|
|
1277
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1278
1268
|
:param pulumi.Input[str] pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
|
|
1279
1269
|
when they are terminating (has a metadata.deletionTimestamp) or failed.
|
|
1280
1270
|
- Failed means to wait until a previously created Pod is fully terminated (has phase
|
|
@@ -1284,7 +1274,7 @@ class JobSpecArgs:
|
|
|
1284
1274
|
:param pulumi.Input['_meta.v1.LabelSelectorArgs'] selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
1285
1275
|
:param pulumi.Input['SuccessPolicyArgs'] success_policy: successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1286
1276
|
|
|
1287
|
-
This field
|
|
1277
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1288
1278
|
:param pulumi.Input[bool] suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
|
|
1289
1279
|
:param pulumi.Input[int] ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
|
|
1290
1280
|
"""
|
|
@@ -1402,7 +1392,7 @@ class JobSpecArgs:
|
|
|
1402
1392
|
@pulumi.getter(name="managedBy")
|
|
1403
1393
|
def managed_by(self) -> Optional[pulumi.Input[str]]:
|
|
1404
1394
|
"""
|
|
1405
|
-
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1395
|
+
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1406
1396
|
|
|
1407
1397
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1408
1398
|
"""
|
|
@@ -1453,8 +1443,6 @@ class JobSpecArgs:
|
|
|
1453
1443
|
def pod_failure_policy(self) -> Optional[pulumi.Input['PodFailurePolicyArgs']]:
|
|
1454
1444
|
"""
|
|
1455
1445
|
Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1456
|
-
|
|
1457
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1458
1446
|
"""
|
|
1459
1447
|
return pulumi.get(self, "pod_failure_policy")
|
|
1460
1448
|
|
|
@@ -1497,7 +1485,7 @@ class JobSpecArgs:
|
|
|
1497
1485
|
"""
|
|
1498
1486
|
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1499
1487
|
|
|
1500
|
-
This field
|
|
1488
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1501
1489
|
"""
|
|
1502
1490
|
return pulumi.get(self, "success_policy")
|
|
1503
1491
|
|
|
@@ -1567,7 +1555,7 @@ if not MYPY:
|
|
|
1567
1555
|
"""
|
|
1568
1556
|
ready: NotRequired[pulumi.Input[int]]
|
|
1569
1557
|
"""
|
|
1570
|
-
The number of pods which have a Ready condition.
|
|
1558
|
+
The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1571
1559
|
"""
|
|
1572
1560
|
start_time: NotRequired[pulumi.Input[str]]
|
|
1573
1561
|
"""
|
|
@@ -1627,7 +1615,7 @@ class JobStatusArgs:
|
|
|
1627
1615
|
:param pulumi.Input[str] failed_indexes: FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
|
|
1628
1616
|
|
|
1629
1617
|
This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
1630
|
-
:param pulumi.Input[int] ready: The number of pods which have a Ready condition.
|
|
1618
|
+
:param pulumi.Input[int] ready: The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1631
1619
|
:param pulumi.Input[str] start_time: Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
|
|
1632
1620
|
|
|
1633
1621
|
Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
|
|
@@ -1749,7 +1737,7 @@ class JobStatusArgs:
|
|
|
1749
1737
|
@pulumi.getter
|
|
1750
1738
|
def ready(self) -> Optional[pulumi.Input[int]]:
|
|
1751
1739
|
"""
|
|
1752
|
-
The number of pods which have a Ready condition.
|
|
1740
|
+
The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1753
1741
|
"""
|
|
1754
1742
|
return pulumi.get(self, "ready")
|
|
1755
1743
|
|
|
@@ -945,15 +945,13 @@ class JobSpec(dict):
|
|
|
945
945
|
|
|
946
946
|
More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
|
|
947
947
|
:param int completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
948
|
-
:param str managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
948
|
+
:param str managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
949
949
|
|
|
950
950
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
951
951
|
:param bool manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
|
|
952
952
|
:param int max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
953
953
|
:param int parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
954
954
|
:param 'PodFailurePolicyArgs' pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
955
|
-
|
|
956
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
957
955
|
:param str pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
|
|
958
956
|
when they are terminating (has a metadata.deletionTimestamp) or failed.
|
|
959
957
|
- Failed means to wait until a previously created Pod is fully terminated (has phase
|
|
@@ -963,7 +961,7 @@ class JobSpec(dict):
|
|
|
963
961
|
:param '_meta.v1.LabelSelectorArgs' selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
964
962
|
:param 'SuccessPolicyArgs' success_policy: successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
965
963
|
|
|
966
|
-
This field
|
|
964
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
967
965
|
:param bool suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
|
|
968
966
|
:param int ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
|
|
969
967
|
"""
|
|
@@ -1057,7 +1055,7 @@ class JobSpec(dict):
|
|
|
1057
1055
|
@pulumi.getter(name="managedBy")
|
|
1058
1056
|
def managed_by(self) -> Optional[str]:
|
|
1059
1057
|
"""
|
|
1060
|
-
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1058
|
+
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1061
1059
|
|
|
1062
1060
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1063
1061
|
"""
|
|
@@ -1092,8 +1090,6 @@ class JobSpec(dict):
|
|
|
1092
1090
|
def pod_failure_policy(self) -> Optional['outputs.PodFailurePolicy']:
|
|
1093
1091
|
"""
|
|
1094
1092
|
Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1095
|
-
|
|
1096
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1097
1093
|
"""
|
|
1098
1094
|
return pulumi.get(self, "pod_failure_policy")
|
|
1099
1095
|
|
|
@@ -1124,7 +1120,7 @@ class JobSpec(dict):
|
|
|
1124
1120
|
"""
|
|
1125
1121
|
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1126
1122
|
|
|
1127
|
-
This field
|
|
1123
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1128
1124
|
"""
|
|
1129
1125
|
return pulumi.get(self, "success_policy")
|
|
1130
1126
|
|
|
@@ -1217,15 +1213,13 @@ class JobSpecPatch(dict):
|
|
|
1217
1213
|
|
|
1218
1214
|
More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
|
|
1219
1215
|
:param int completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
1220
|
-
:param str managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1216
|
+
:param str managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1221
1217
|
|
|
1222
1218
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1223
1219
|
:param bool manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
|
|
1224
1220
|
:param int max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
1225
1221
|
:param int parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
1226
1222
|
:param 'PodFailurePolicyPatchArgs' pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1227
|
-
|
|
1228
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1229
1223
|
:param str pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
|
|
1230
1224
|
when they are terminating (has a metadata.deletionTimestamp) or failed.
|
|
1231
1225
|
- Failed means to wait until a previously created Pod is fully terminated (has phase
|
|
@@ -1235,7 +1229,7 @@ class JobSpecPatch(dict):
|
|
|
1235
1229
|
:param '_meta.v1.LabelSelectorPatchArgs' selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
1236
1230
|
:param 'SuccessPolicyPatchArgs' success_policy: successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1237
1231
|
|
|
1238
|
-
This field
|
|
1232
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1239
1233
|
:param bool suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
|
|
1240
1234
|
:param '_core.v1.PodTemplateSpecPatchArgs' template: Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
1241
1235
|
:param int ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
|
|
@@ -1323,7 +1317,7 @@ class JobSpecPatch(dict):
|
|
|
1323
1317
|
@pulumi.getter(name="managedBy")
|
|
1324
1318
|
def managed_by(self) -> Optional[str]:
|
|
1325
1319
|
"""
|
|
1326
|
-
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed
|
|
1320
|
+
ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
|
|
1327
1321
|
|
|
1328
1322
|
This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
|
|
1329
1323
|
"""
|
|
@@ -1358,8 +1352,6 @@ class JobSpecPatch(dict):
|
|
|
1358
1352
|
def pod_failure_policy(self) -> Optional['outputs.PodFailurePolicyPatch']:
|
|
1359
1353
|
"""
|
|
1360
1354
|
Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
|
|
1361
|
-
|
|
1362
|
-
This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
|
|
1363
1355
|
"""
|
|
1364
1356
|
return pulumi.get(self, "pod_failure_policy")
|
|
1365
1357
|
|
|
@@ -1390,7 +1382,7 @@ class JobSpecPatch(dict):
|
|
|
1390
1382
|
"""
|
|
1391
1383
|
successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
|
|
1392
1384
|
|
|
1393
|
-
This field
|
|
1385
|
+
This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
|
|
1394
1386
|
"""
|
|
1395
1387
|
return pulumi.get(self, "success_policy")
|
|
1396
1388
|
|
|
@@ -1475,7 +1467,7 @@ class JobStatus(dict):
|
|
|
1475
1467
|
:param str failed_indexes: FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
|
|
1476
1468
|
|
|
1477
1469
|
This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
1478
|
-
:param int ready: The number of pods which have a Ready condition.
|
|
1470
|
+
:param int ready: The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1479
1471
|
:param str start_time: Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
|
|
1480
1472
|
|
|
1481
1473
|
Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
|
|
@@ -1573,7 +1565,7 @@ class JobStatus(dict):
|
|
|
1573
1565
|
@pulumi.getter
|
|
1574
1566
|
def ready(self) -> Optional[int]:
|
|
1575
1567
|
"""
|
|
1576
|
-
The number of pods which have a Ready condition.
|
|
1568
|
+
The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1577
1569
|
"""
|
|
1578
1570
|
return pulumi.get(self, "ready")
|
|
1579
1571
|
|
|
@@ -1677,7 +1669,7 @@ class JobStatusPatch(dict):
|
|
|
1677
1669
|
:param str failed_indexes: FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
|
|
1678
1670
|
|
|
1679
1671
|
This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
|
|
1680
|
-
:param int ready: The number of pods which have a Ready condition.
|
|
1672
|
+
:param int ready: The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1681
1673
|
:param str start_time: Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
|
|
1682
1674
|
|
|
1683
1675
|
Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
|
|
@@ -1775,7 +1767,7 @@ class JobStatusPatch(dict):
|
|
|
1775
1767
|
@pulumi.getter
|
|
1776
1768
|
def ready(self) -> Optional[int]:
|
|
1777
1769
|
"""
|
|
1778
|
-
The number of pods which have a Ready condition.
|
|
1770
|
+
The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
|
|
1779
1771
|
"""
|
|
1780
1772
|
return pulumi.get(self, "ready")
|
|
1781
1773
|
|
|
@@ -9,9 +9,12 @@ import typing
|
|
|
9
9
|
if typing.TYPE_CHECKING:
|
|
10
10
|
import pulumi_kubernetes.coordination.v1 as __v1
|
|
11
11
|
v1 = __v1
|
|
12
|
+
import pulumi_kubernetes.coordination.v1alpha1 as __v1alpha1
|
|
13
|
+
v1alpha1 = __v1alpha1
|
|
12
14
|
import pulumi_kubernetes.coordination.v1beta1 as __v1beta1
|
|
13
15
|
v1beta1 = __v1beta1
|
|
14
16
|
else:
|
|
15
17
|
v1 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1')
|
|
18
|
+
v1alpha1 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1alpha1')
|
|
16
19
|
v1beta1 = _utilities.lazy_import('pulumi_kubernetes.coordination.v1beta1')
|
|
17
20
|
|