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

Add support to pass CSI workspace #1794

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

vinamra28
Copy link
Member

@vinamra28 vinamra28 commented Nov 16, 2022

Changes

Since Pipelines version v0.38.0, an user can pass CSI Volume
as a workspace. A sample CSI file can look like

driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
  secretProviderClass: "vault-database"

This requires feature flag to be alpha. Once feature flag is enabled
user can pass in tkn start like

$ tkn pipeline start foobar -w=csiFile=csi.yaml

closes #1668

Signed-off-by: vinamra28 [email protected]

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

Add support to pass CSI as workspace at the time of starting a Task/ClusterTask/Pipeline

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Nov 16, 2022
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 16, 2022
@vinamra28 vinamra28 changed the title Add support to pass CSI workspace WIP: Add support to pass CSI workspace Nov 16, 2022
@tekton-robot tekton-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 16, 2022
@vinamra28
Copy link
Member Author

/retest

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.

I think we should document this a bit more somehow, as initially it wasn't really clear to me that it would load a file. Other than this, looks good to me 👍🏼

@vinamra28
Copy link
Member Author

I think we should document this a bit more somehow, as initially it wasn't really clear to me that it would load a file. Other than this, looks good to me 👍🏼

yeah makes sense. Will be adding this and improving the code a little bit more

@vinamra28
Copy link
Member Author

/retest

@vinamra28 vinamra28 changed the title WIP: Add support to pass CSI workspace Add support to pass CSI workspace Dec 6, 2022
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 6, 2022
@vinamra28
Copy link
Member Author

/retest

@vinamra28
Copy link
Member Author

/cc @piyush-garg @vdemeester

@vinamra28
Copy link
Member Author

/retest

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.

/retest

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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 Dec 21, 2022
@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2022
@vinamra28
Copy link
Member Author

/retest

@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 26, 2022
@vinamra28
Copy link
Member Author

/retest

@piyush-garg
Copy link
Contributor

@vinamra28 seems like this is breaking because of 0.43 release

Since Pipelines version v0.38.0, an user can pass CSI Volume
as a workspace. A sample CSI file can look like

```yaml
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
  secretProviderClass: "vault-database"
```

This requires feature flag to be alpha. Once feature flag is enabled
user can pass in `tkn` start like

```sh
$ tkn pipeline start foobar -w=csiFile=csi.yaml
```

Signed-off-by: vinamra28 <[email protected]>
@piyush-garg
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 26, 2022
@vinamra28
Copy link
Member Author

/retest

@tekton-robot tekton-robot merged commit 1d3f2a7 into tektoncd:main Dec 26, 2022
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. 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.

CSI workspace type support
4 participants