Skip to content

Commit

Permalink
deprecation notice of results field for prs and trs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhelfand authored and tekton-robot committed Sep 5, 2019
1 parent 2d1c512 commit 6e7e97f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api_compatibility_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ Backwards incompatible changes change the API, e.g. by removing fields from a CR
spec. These changes will mean that folks using a previous version of the API will need
to adjust their usage in order to use the new version.

These changes must be make [in a backwards compatible manner first](#backwards-compatible-changes-first),
and they must be improved by [more than half of the project OWNERS](OWNERS)
These changes must be made [in a backwards compatible manner first](#backwards-compatible-changes-first),
and the changes must be approved by [more than half of the project OWNERS](OWNERS)
(i.e. 50% + 1).
7 changes: 6 additions & 1 deletion pkg/apis/pipeline/v1alpha1/pipelinerun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ type PipelineRunSpec struct {
ServiceAccount string `json:"serviceAccount"`
// +optional
ServiceAccounts []PipelineRunSpecServiceAccount `json:"serviceAccounts,omitempty"`
// Deprecation Notice: The field Results will be removed in v0.8.0
// and should not be used. Plan to have this field removed before upgradring
// to v0.8.0.
// +optional
Results *Results `json:"results,omitempty"`
// Used for cancelling a pipelinerun (and maybe more later on)
Expand Down Expand Up @@ -112,7 +115,9 @@ type PipelineRef struct {
type PipelineRunStatus struct {
duckv1beta1.Status `json:",inline"`

// In #107 should be updated to hold the location logs have been uploaded to
// Deprecation Notice: The field Results will be removed in v0.8.0
// and should not be used. Plan to have this field removed before upgradring
// to v0.8.0.
// +optional
Results *Results `json:"results,omitempty"`

Expand Down
7 changes: 6 additions & 1 deletion pkg/apis/pipeline/v1alpha1/taskrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ type TaskRunSpec struct {
Inputs TaskRunInputs `json:"inputs,omitempty"`
// +optional
Outputs TaskRunOutputs `json:"outputs,omitempty"`
// Deprecation Notice: The field Results will be removed in v0.8.0
// and should not be used. Plan to have this field removed before upgradring
// to v0.8.0.
// +optional
Results *Results `json:"results,omitempty"`
// +optional
Expand Down Expand Up @@ -115,7 +118,9 @@ var taskRunCondSet = apis.NewBatchConditionSet()
type TaskRunStatus struct {
duckv1beta1.Status `json:",inline"`

// In #107 should be updated to hold the location logs have been uploaded to
// Deprecation Notice: The field Results will be removed in v0.8.0
// and should not be used. Plan to have this field removed before upgradring
// to v0.8.0.
// +optional
Results *Results `json:"results,omitempty"`

Expand Down

0 comments on commit 6e7e97f

Please sign in to comment.