Skip to content

Commit

Permalink
docs: Deprecate PodPriority field in WorkflowSpec (Fixes argoproj#8762)…
Browse files Browse the repository at this point in the history
… (argoproj#9400)

* fix: Deprecate PodPriority field in WorkflowSpec

Signed-off-by: Mriyam Tamuli <[email protected]>

* Run pre-commit -B make target

Signed-off-by: Mriyam Tamuli <[email protected]>

Signed-off-by: Mriyam Tamuli <[email protected]>
Signed-off-by: juchao <[email protected]>
  • Loading branch information
mbtamuli authored and juchaosong committed Nov 3, 2022
1 parent c7cc9ac commit c4e73f5
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/jsonschema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion docs/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.|
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/workflow/v1alpha1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/apis/workflow/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/apis/workflow/v1alpha1/workflow_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4e73f5

Please sign in to comment.