Skip to content

This adds support for the "projected" K8s volume source. - #4079

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
mattmoor:projected-volumes
Jun 7, 2019
Merged

knative-prow-robot merged 3 commits into
knative:masterfrom
mattmoor:projected-volumes

Conversation

@mattmoor

Copy link
Copy Markdown
Contributor

For more context see discussion here.

Fixes: #3090

WIP because this needs further discussion in the Serving API WG, but since I was poking at this (for the linked issue), I figured I'd sketch it out. cc @dgerd @alexellis

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 11, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label May 11, 2019
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 11, 2019
@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers area/test-and-release It flags unit/e2e/conformance/perf test issues for product features labels May 11, 2019
@mattmoor

Copy link
Copy Markdown
Contributor Author

cc @evankanderson as well

@mattmoor
mattmoor force-pushed the projected-volumes branch from 96cadff to c50aba1 Compare May 12, 2019 00:35
@mattmoor

Copy link
Copy Markdown
Contributor Author

/retest

@mattmoor
mattmoor force-pushed the projected-volumes branch from c50aba1 to 902def2 Compare June 4, 2019 22:47
@mattmoor
mattmoor force-pushed the projected-volumes branch from 902def2 to 0f3e15c Compare June 4, 2019 23:30
Comment thread pkg/apis/serving/fieldmask.go Resolved
@mattmoor mattmoor changed the title [WIP] This adds support for the "projected" K8s volume source. This adds support for the "projected" K8s volume source. Jun 5, 2019
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 5, 2019
Comment thread pkg/apis/serving/fieldmask.go Resolved
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 6, 2019
Comment thread pkg/apis/serving/fieldmask.go Resolved
@mattmoor
mattmoor force-pushed the projected-volumes branch from 5816b2c to 81028bd Compare June 6, 2019 22:57
@mattmoor
mattmoor force-pushed the projected-volumes branch from 81028bd to 45a6e33 Compare June 7, 2019 00:17

@dgerd dgerd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for adding the API coverage for Items and Optional!

text := test.AppendRandomString("hello-volumes-")

// Create the ConfigMap with random text.
configMap, err := clients.KubeClient.Kube.CoreV1().ConfigMaps(test.ServingNamespace).Create(&corev1.ConfigMap{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you follow the pattern here ( c26d86a#diff-7adb269f0ed4dedc3fa8e1157f25dc98 ) to move ConfigMap and Secret creation outside of the test itself?

If you think it is more appropriate to do all of them in this file in a single follow-up I am okay with that as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we should do the whole file at once.

Comment thread test/conformance/api/volumes_test.go Resolved
@knative-metrics-robot

Copy link
Copy Markdown

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/serving/fieldmask.go 99.5% 97.9% -1.6
pkg/apis/serving/k8s_validation.go 99.3% 99.5% 0.1

@dgerd

dgerd commented Jun 7, 2019

Copy link
Copy Markdown

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2019
@mattmoor

mattmoor commented Jun 7, 2019

Copy link
Copy Markdown
Contributor Author

/retest

3 similar comments
@mattmoor

mattmoor commented Jun 7, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@mattmoor

mattmoor commented Jun 7, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@mattmoor

mattmoor commented Jun 7, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@knative-prow-robot
knative-prow-robot merged commit d2ea625 into knative:master Jun 7, 2019
@mattmoor
mattmoor deleted the projected-volumes branch June 7, 2019 22:55
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. area/API API objects and controllers area/test-and-release It flags unit/e2e/conformance/perf test issues for product features cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider allowing "projected" volumes

6 participants