#6379 refactor: use the built-in max/min to simplify the code
Pull request opened by
evenevent
## Tracking issue
## Why are the changes needed?
Use the built-in max/min from the standard library in Go 1.21 to simplify the code.
## What changes were proposed in this pull request?
## How was this patch tested?
### Labels
Please add one or more of the following labels to categorize your PR:
•
added: For new features.
•
changed: For changes in existing functionality.
•
deprecated: For soon-to-be-removed features.
•
removed: For features being removed.
•
fixed: For any bug fixed.
•
security: In case of vulnerabilities
This is important to improve the readability of release notes.
### Setup process
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
## Docs link
### Summary by Bito
This PR refactors code to use Go 1.21's built-in min/max functions, removing custom implementations like minInt, intMin, and intMax. The changes span task plugins, shard strategies, and Kubernetes utilities, enhancing maintainability while preserving functionality.
Unit tests added: False
Estimated effort to review (1-5, lower is better): 1
flyteorg/flyte