-
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
Add Secret volume source support to workspaces #1801
Conversation
The following is the coverage report on pkg/.
|
Rebased on top of v1alpha2 changes. Not ready for review until #1800 changes go in. |
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
@@ -24,5 +24,4 @@ import ( | |||
type WorkspaceDeclaration = v1alpha2.WorkspaceDeclaration | |||
|
|||
// WorkspaceBinding maps a Task's declared workspace to a Volume. | |||
// Currently we only support PersistentVolumeClaims, EmptyDir and ConfigMap. |
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.
Removed as suggested in #1800 (comment)
The following is the coverage report on pkg/.
|
@@ -77,6 +85,30 @@ func TestWorkspaceBindingValidateInvalid(t *testing.T) { | |||
ClaimName: "pool-party", | |||
}, | |||
}, | |||
}, { | |||
name: "Provided both emptydir and configmap", |
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.
Added in response to #1800 (comment)
We could write a thing that tests every permutation but I'm not super compelled to do so with this PR.
Fixes #1438 The final of the original feature requests related to workspaces was to include support for Secrets as the source of a volume mounted into Task containers. This PR introduces support for Secrets as workspaces in a TaskRun definition.
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
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.
looking good :)
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom, 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 |
Changes
Fixes #1438
The final of the original feature requests related to workspaces
was to include support for Secrets as the source of a volume mounted
into Task containers.
This PR introduces support for Secrets as workspaces in a TaskRun
definition.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes