diff --git a/api/jsonschema/schema.json b/api/jsonschema/schema.json index 794f34855ba5..1c1955b433b3 100644 --- a/api/jsonschema/schema.json +++ b/api/jsonschema/schema.json @@ -7177,7 +7177,7 @@ "description": "PodMetadata defines additional metadata that should be applied to workflow pods" }, "podPriority": { - "description": "Priority to apply to workflow pods.", + "description": "Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.", "type": "integer" }, "podPriorityClassName": { diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 1a09b5313f2d..4c7c6cc229c9 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -11063,7 +11063,7 @@ "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Metadata" }, "podPriority": { - "description": "Priority to apply to workflow pods.", + "description": "Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.", "type": "integer" }, "podPriorityClassName": { diff --git a/docs/fields.md b/docs/fields.md index a475562c8d28..a47300e55e02 100644 --- a/docs/fields.md +++ b/docs/fields.md @@ -807,7 +807,7 @@ WorkflowSpec is the specification of a Workflow. |`podDisruptionBudget`|[`PodDisruptionBudgetSpec`](#poddisruptionbudgetspec)|PodDisruptionBudget holds the number of concurrent disruptions that you allow for Workflow's Pods. Controller will automatically add the selector with workflow name, if selector is empty. Optional: Defaults to empty.| |`podGC`|[`PodGC`](#podgc)|PodGC describes the strategy to use when deleting completed pods| |`podMetadata`|[`Metadata`](#metadata)|PodMetadata defines additional metadata that should be applied to workflow pods| -|`podPriority`|`integer`|Priority to apply to workflow pods.| +|~`podPriority`~|~`integer`~|~Priority to apply to workflow pods.~ DEPRECATED: Use PodPriorityClassName instead.| |`podPriorityClassName`|`string`|PriorityClassName to apply to workflow pods.| |`podSpecPatch`|`string`|PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits).| |`priority`|`integer`|Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first.| diff --git a/pkg/apis/workflow/v1alpha1/generated.proto b/pkg/apis/workflow/v1alpha1/generated.proto index e830700591b6..d4025f8d9dd2 100644 --- a/pkg/apis/workflow/v1alpha1/generated.proto +++ b/pkg/apis/workflow/v1alpha1/generated.proto @@ -1935,6 +1935,7 @@ message WorkflowSpec { optional string podPriorityClassName = 23; // Priority to apply to workflow pods. + // DEPRECATED: Use PodPriorityClassName instead. optional int32 podPriority = 24; // +patchStrategy=merge diff --git a/pkg/apis/workflow/v1alpha1/openapi_generated.go b/pkg/apis/workflow/v1alpha1/openapi_generated.go index 8f5f4c60ddae..66ad4cd339a2 100644 --- a/pkg/apis/workflow/v1alpha1/openapi_generated.go +++ b/pkg/apis/workflow/v1alpha1/openapi_generated.go @@ -7344,7 +7344,7 @@ func schema_pkg_apis_workflow_v1alpha1_WorkflowSpec(ref common.ReferenceCallback }, "podPriority": { SchemaProps: spec.SchemaProps{ - Description: "Priority to apply to workflow pods.", + Description: "Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.", Type: []string{"integer"}, Format: "int32", }, diff --git a/pkg/apis/workflow/v1alpha1/workflow_types.go b/pkg/apis/workflow/v1alpha1/workflow_types.go index f2912ce433cc..99800e5bb6f1 100644 --- a/pkg/apis/workflow/v1alpha1/workflow_types.go +++ b/pkg/apis/workflow/v1alpha1/workflow_types.go @@ -387,6 +387,7 @@ type WorkflowSpec struct { PodPriorityClassName string `json:"podPriorityClassName,omitempty" protobuf:"bytes,23,opt,name=podPriorityClassName"` // Priority to apply to workflow pods. + // DEPRECATED: Use PodPriorityClassName instead. PodPriority *int32 `json:"podPriority,omitempty" protobuf:"bytes,24,opt,name=podPriority"` // +patchStrategy=merge diff --git a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md index 4becac8fcb8e..474e58847459 100644 --- a/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md +++ b/sdks/java/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes **podDisruptionBudget** | [**IoK8sApiPolicyV1beta1PodDisruptionBudgetSpec**](IoK8sApiPolicyV1beta1PodDisruptionBudgetSpec.md) | | [optional] **podGC** | [**IoArgoprojWorkflowV1alpha1PodGC**](IoArgoprojWorkflowV1alpha1PodGC.md) | | [optional] **podMetadata** | [**IoArgoprojWorkflowV1alpha1Metadata**](IoArgoprojWorkflowV1alpha1Metadata.md) | | [optional] -**podPriority** | **Integer** | Priority to apply to workflow pods. | [optional] +**podPriority** | **Integer** | Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead. | [optional] **podPriorityClassName** | **String** | PriorityClassName to apply to workflow pods. | [optional] **podSpecPatch** | **String** | PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits). | [optional] **priority** | **Integer** | Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first. | [optional] diff --git a/sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_workflow_spec.py b/sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_workflow_spec.py index 9f9ec634180f..601c55384381 100644 --- a/sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_workflow_spec.py +++ b/sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_workflow_spec.py @@ -290,7 +290,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 pod_disruption_budget (IoK8sApiPolicyV1beta1PodDisruptionBudgetSpec): [optional] # noqa: E501 pod_gc (IoArgoprojWorkflowV1alpha1PodGC): [optional] # noqa: E501 pod_metadata (IoArgoprojWorkflowV1alpha1Metadata): [optional] # noqa: E501 - pod_priority (int): Priority to apply to workflow pods.. [optional] # noqa: E501 + pod_priority (int): Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.. [optional] # noqa: E501 pod_priority_class_name (str): PriorityClassName to apply to workflow pods.. [optional] # noqa: E501 pod_spec_patch (str): PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits).. [optional] # noqa: E501 priority (int): Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first.. [optional] # noqa: E501 @@ -413,7 +413,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 pod_disruption_budget (IoK8sApiPolicyV1beta1PodDisruptionBudgetSpec): [optional] # noqa: E501 pod_gc (IoArgoprojWorkflowV1alpha1PodGC): [optional] # noqa: E501 pod_metadata (IoArgoprojWorkflowV1alpha1Metadata): [optional] # noqa: E501 - pod_priority (int): Priority to apply to workflow pods.. [optional] # noqa: E501 + pod_priority (int): Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead.. [optional] # noqa: E501 pod_priority_class_name (str): PriorityClassName to apply to workflow pods.. [optional] # noqa: E501 pod_spec_patch (str): PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits).. [optional] # noqa: E501 priority (int): Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first.. [optional] # noqa: E501 diff --git a/sdks/python/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md b/sdks/python/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md index 544d2e771bfb..4c7208c35ec0 100644 --- a/sdks/python/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md +++ b/sdks/python/client/docs/IoArgoprojWorkflowV1alpha1WorkflowSpec.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **pod_disruption_budget** | [**IoK8sApiPolicyV1beta1PodDisruptionBudgetSpec**](IoK8sApiPolicyV1beta1PodDisruptionBudgetSpec.md) | | [optional] **pod_gc** | [**IoArgoprojWorkflowV1alpha1PodGC**](IoArgoprojWorkflowV1alpha1PodGC.md) | | [optional] **pod_metadata** | [**IoArgoprojWorkflowV1alpha1Metadata**](IoArgoprojWorkflowV1alpha1Metadata.md) | | [optional] -**pod_priority** | **int** | Priority to apply to workflow pods. | [optional] +**pod_priority** | **int** | Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead. | [optional] **pod_priority_class_name** | **str** | PriorityClassName to apply to workflow pods. | [optional] **pod_spec_patch** | **str** | PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits). | [optional] **priority** | **int** | Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first. | [optional]