BUILD-87: Add Build Volumes API with validation#208
BUILD-87: Add Build Volumes API with validation#208openshift-merge-robot merged 2 commits intoopenshift:masterfrom coreydaley:jira_build_87_secret_configmap_volume_mounts_in_builds
Conversation
|
/assign @adambkaplan @gabemontero |
|
/retest |
|
/retest |
|
Did you run If you have not, you'll need that to get your |
|
/hold Given the complexity of the feature and the time remaining before 4.8 reaches "final freeze" period, we are going to hold this until master opens for 4.9 |
|
/retest |
|
/retest |
|
/retest |
4 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
@coreydaley looks like the upgrade tests are failing for unrelated reasons. I think it is time to start getting QE to test this new feature, and to write the CI tests that we will add to origin. @xiuwang for testing this feature, we will want to modify the existing build tests for Secret and ConfigMap build inputs to use the new volumes API. BuildConfig specs will look like this: spec:
source:
git: ...
strategy:
sourceStrategy:
...
volumes:
- name: some-secret
source:
secret:
secretName: my-secret
mounts:
- destinationPath: /var/run/secret/some-secret
readOnly: true PRs needed to test this feature: |
adambkaplan
left a comment
There was a problem hiding this comment.
/approve
Marking approve to indicate we are ready for QE to begin their verification.
|
/retest |
|
Given the first test by @xiuwang, we need to add validation on the volume name. It needs to have a valid DNS label. Validations should be added here (using a common method):
Upstream k8s/apimachinery has a method which lets us validate the name is an appropriate DNS label (required by kube for volumes): https://github.com/kubernetes/apimachinery/blob/master/pkg/util/validation/validation.go#L187 |
|
@adambkaplan Added validation and tests in current push. ptal |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
I have test the feature following test cases https://url.corp.redhat.com/buildvolumes, no critial issue found. /label qe-approved |
|
@sttts I think we are ready for an approval, the e2e-aws-upgrade test failures are unrelated and being discussed on slack. |
|
A couple of validation formalities are wrong. |
|
@sttts All comments have been addressed, thanks for the review |
- adds validations for new api fields - adds tests for new validations
|
/retest |
| allErrs = append(allErrs, field.Invalid(fldPath.Child("source"), volume.Source, "only one volume source is allowed")) | ||
| } | ||
| if len(foundVolumeSources) != 0 && foundVolumeSources[0] != string(volume.Source.Type) { | ||
| allErrs = append(allErrs, field.Invalid(fldPath.Child("source").Child("type"), volume.Source.Type, "source type and specified type must match")) |
There was a problem hiding this comment.
this and the one above is still not of shape must ..... Follow-up is fine.
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, coreydaley, gabemontero, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
12 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
https://issues.redhat.com/browse/BUILD-87