-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Deprecate unusable Step/StepTemplate fields #4851
Conversation
/assign @vdemeester @imjasonh |
/lgtm |
Some fields of Step and StepTemplate only exist because they were inherited from k8s Container, but they don't make sense in a batch workflow context and/or aren't actually supported in Tekton. No changes to Sidecar. This commit deprecates the following fields: - Lifecycle, Ports, ReadinessProbe, LivenessProbe, StartupProbe, StdIn, StdInOnce, TTY: these don't really have a use in the context of Step or StepTemplate - TerminationMessagePath and TerminationMessagePolicy: these are extra confusing since Results are currently written as TerminationMessages - StepTemplate.Name: Steps must have different names.
/lgtm |
/test pull-tekton-pipeline-integration-tests |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: imjasonh 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 |
I am late to the party but 2 things:
|
Not sure what you mean by this; are you suggesting renaming the struct types? They are owned by k8s. Or are you suggesting renaming the field names but keeping the json tags the same so that serialization/deserialization does not change?
I'm actually not sure what an appropriate timeline is here. Our compatibility policy says 9 months but it seems silly to wait 9 months to remove fields that aren't even currently usable. |
Yes, this is what I am suggesting 👼🏼
I tend to agree with that, but I don't really think we have a alternative. At least, we need to communicate what is the time schedule for those to be removed. |
done in #4866 |
Changes
Some fields of Step and StepTemplate only exist because they were inherited from
k8s Container, but they don't make sense in a batch workflow context and/or aren't
actually supported in Tekton. No changes to Sidecar.
This commit deprecates the following fields:
these don't really have a use in the context of Step
currently written as TerminationMessages
/kind cleanup
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes
Closes #4737