Skip to content
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

[TEP-0029] Isolated steps and sidecar workspaces to beta #6922

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

afrittoli
Copy link
Member

@afrittoli afrittoli commented Jul 12, 2023

Changes

This feature has been implemented in Tekton Pipelines v0.24.0.

Isolated workspaces give our users an option for improved security, which is why it's important to work towards making it available to our users by default.

No outstanding issue exists for this feature, except for the proposal to promote it to beta.

This feature requires the api-features-flag to be set to beta even when using v1beta1, to avoid running into the issues with
v1/v1beta conversion described in TEP-0138. Since this feature has been in alpha until now, this is not a breaking change, and it's specified in the docs that this feature requires the flag to be set when using v1beta1.

Note that this feature was gated both at validation as well as in the reconciler code, which is not how other API driven features are gated. I removed the reconciler code validation to be consistent with the other features.

Fixes #6109

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

The "isolated workspaces" feature allows users to share a workspace with dedicated steps and sidecars, instead of the whole TaskRun. The feature has been promoted to "beta". 

/kind feature

@tekton-robot tekton-robot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jul 12, 2023
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 12, 2023
@afrittoli afrittoli added this to the Pipelines v0.50 (LTS) milestone Jul 12, 2023
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 97.1% -0.0
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 97.1% -0.0
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@JeromeJu
Copy link
Member

/assign

@afrittoli afrittoli force-pushed the issues/6109-isolated-to-beta branch from 2057c67 to 581f32c Compare July 13, 2023 10:56
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 13, 2023
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 97.1% -0.0
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 97.1% -0.0
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@afrittoli afrittoli force-pushed the issues/6109-isolated-to-beta branch from 581f32c to 11e5a7e Compare July 13, 2023 11:37
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 97.1% -0.0
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 97.1% -0.0
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@afrittoli
Copy link
Member Author

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 19, 2023
@afrittoli
Copy link
Member Author

Based on the discussions in TEP-0138, I think now that every feature that we move into beta should not be implicitly on for the v1beta1 API. Since users had to set the API flag to alpha to use them, asking them to use at least beta won't be a breaking change, and we'll avoid adding issues to the existing problem with the coupling between feature flags and API versions.

@JeromeJu @lbernick wdyt?

@JeromeJu
Copy link
Member

Based on the discussions in TEP-0138, I think now that every feature that we move into beta should not be implicitly on for the v1beta1 API
Makes perfect sense to me!

@afrittoli afrittoli force-pushed the issues/6109-isolated-to-beta branch from 11e5a7e to 6c0b284 Compare July 20, 2023 10:35
@afrittoli
Copy link
Member Author

@JeromeJu @lbernick PR updated

@afrittoli
Copy link
Member Author

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 20, 2023
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/taskrun/resources/apply.go 99.2% 98.4% -0.8

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2023
pkg/reconciler/taskrun/resources/apply.go Outdated Show resolved Hide resolved
pkg/apis/pipeline/v1beta1/task_validation_test.go Outdated Show resolved Hide resolved
pkg/apis/pipeline/v1beta1/task_validation.go Outdated Show resolved Hide resolved
This feature has been implemented in Tekton Pipelines v0.24.0.

Isolated workspaces gives our user an option for improved
security, which is why it's important to work towards making
it available to our users by default.

No outstanding issue exists for this feature, except for the
proposal to promote it to beta.

This feature requires the api-features-flag to be set to beta
even when using v1beta1, to avoid running into the issues with
v1/v1beta conversion described in TEP-0138.
Since this feature has been in alpha until now, this is not
a breaking changes, and it's specified in the docs that this
feature requires the flag to be set when using v1beta1.

Note that this feature was gated both at validation as well
as in the reconciler code, which is not how other API driven
features are gated. I removed the reconciler code validation
to be consistent with the other features.

Fixes tektoncd#6109

Signed-off-by: Andrea Frittoli <[email protected]>
@afrittoli afrittoli force-pushed the issues/6109-isolated-to-beta branch from 6c0b284 to a90d610 Compare July 21, 2023 09:47
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 21, 2023
@vdemeester
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 21, 2023
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/taskrun/resources/apply.go 99.2% 99.2% -0.0

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/taskrun/resources/apply.go 99.2% 99.2% -0.0

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lbernick

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 21, 2023
@tekton-robot tekton-robot merged commit 1871c30 into tektoncd:main Jul 21, 2023
2 checks passed
@JeromeJu JeromeJu mentioned this pull request Oct 2, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promote TEP-0029 - Isolated Step and Sidecar Workspaces
5 participants