-
Notifications
You must be signed in to change notification settings - Fork 40.7k
DRA API: remove obsolete types from v1alpha3 #132000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
8cd65f5
to
7255199
Compare
|
||
// The device this taint is attached to has the "effect" on | ||
// any claim which does not tolerate the taint and, through the claim, | ||
// to pods using the claim. | ||
// | ||
// +protobuf.options.(gogoproto.goproto_stringer)=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This aligns the v1alpha3 API with how the beta APIs define DeviceTaint.
This goes a bit beyond "obsolete type removal", I just happened to run into this.
7255199
to
d3d2fce
Compare
@pohly: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/remove-sig api-machinery |
Anyone who enabled DRA stuff while in v1alpha3, and upgraded their cluster since then without doing any storage migrations needs to run a storage migration on DRA types before upgrading to 1.34 which includes this PR. That's fair game since this is an alpha version, but should be release noted. |
/lgtm one question about the test file, and please update the release note |
LGTM label has been added. Git tree hash: 05c7f7b5ef5490bea9bb67f38c8012823751d920
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, pohly The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
test/integration/scheduler_perf/dra/templates/resourceslice-partitionable.yaml
Show resolved
Hide resolved
Do we have some standard instructions for doing this? |
Hmm... I thought we did, but all I'm finding is https://kubernetes.io/docs/tasks/manage-kubernetes-objects/storage-version-migration/ which is the alpha controller-driven feature. Conceptually, a no-op patch of every instance would accomplish what we need. Something like this does it, but is gorpy / weird to document as the "official" way to do a manual storage migration: kubectl get resourceslices,resourceclaims,deviceclasses,resourceclaimtemplates,devicetaintrules -A -o json \
| jq -r '.items[] | "-n \(.metadata.namespace) \(.kind)s/\(.metadata.name)"' \
| xargs -L 1 kubectl patch --type=merge --patch='{}' |
cc @deads2k for visibility ... probably should have storage migration procedures documented |
Considering that this only affects users of Kubernetes < 1.32 and only if they enabled an alpha feature, I think we can go for "delete all of these types before an update". /release-note-edit
|
/hold cancel |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The v1alpha3 version is still needed for DeviceTaintRule, but the rest of the types and most structs became obsolete in v1.32 when we introduced v1beta1 and bumped the storage version to v1beta1.
Removing them now simplifies adding new features because new fields don't need to be added to these obsolete types. This could have been done already in 1.33, but wasn't to minimize disrupting on-going work.
Which issue(s) this PR fixes:
Related-to: kubernetes/enhancements#4381, #131903
Does this PR introduce a user-facing change?
/assign @mortent