Skip to content

Refactor VolumeMountPath to Directory#13202

Merged
knative-prow[bot] merged 3 commits into
knative:mainfrom
davidhadas:VolumeMountPathToDirectory
Aug 15, 2022
Merged

Refactor VolumeMountPath to Directory#13202
knative-prow[bot] merged 3 commits into
knative:mainfrom
davidhadas:VolumeMountPathToDirectory

Conversation

@davidhadas

Copy link
Copy Markdown
Contributor

Proposed Changes

  • Name refactoring
  • Add exported const for Annotations filepath

@davidhadas

Copy link
Copy Markdown
Contributor Author

@rhuss rhuss 9 hours ago
minor nit pick: From a user's point of view, it does not matter whether a directory is mounted or part or a original directory of that file directory. Therefore I really would prefer "directory" instead of "mountPath" except when you would actually would do the mount yourself (I doubt that). I would better rename the other MountPath constants to use Directory instead (like PodInfoVolumeMountPath)

@davidhadas davidhadas 4 hours ago
Fine either way, as long as all mount points use the same convention.

Note however that we added a config feature to control if podInfo is mounted or not - this is also reflected in the documentation as a result - so we do expose this externally as a mounted volume.

If we open a new PR for this, I would like to also add a PodInfoAnnotationsPath (or we can call it AnnotationsPath) const in shardmain - this allows Options importing shardmain to use the shardmain const rather than importing also pkg/queue to gain access to the consts defining the annotations file path to open and read.

@psschwei psschwei 3 hours ago
"directory" works for me (it also seems more in line with the spirit of these variables, as the original comments note these are for "the name of the directory path")

@knative-prow knative-prow Bot added area/API API objects and controllers area/autoscale size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/networking labels Aug 11, 2022
@davidhadas

Copy link
Copy Markdown
Contributor Author

/cc @rhuss @psschwei

@knative-prow
knative-prow Bot requested review from psschwei and rhuss August 11, 2022 15:36
@codecov

codecov Bot commented Aug 11, 2022

Copy link
Copy Markdown

Codecov Report

Merging #13202 (15d8a2e) into main (5bba016) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #13202      +/-   ##
==========================================
- Coverage   86.72%   86.62%   -0.11%     
==========================================
  Files         196      196              
  Lines       14463    14493      +30     
==========================================
+ Hits        12543    12554      +11     
- Misses       1624     1640      +16     
- Partials      296      299       +3     
Impacted Files Coverage Δ
pkg/queue/sharedmain/main.go 0.64% <ø> (-0.01%) ⬇️
pkg/reconciler/revision/resources/deploy.go 90.54% <ø> (ø)
pkg/reconciler/revision/resources/queue.go 98.23% <100.00%> (+0.09%) ⬆️
pkg/http/handler/timeout.go 83.44% <0.00%> (-6.36%) ⬇️
pkg/reconciler/configuration/configuration.go 83.67% <0.00%> (-1.54%) ⬇️
pkg/apis/config/defaults.go 84.48% <0.00%> (-1.24%) ⬇️
pkg/activator/net/revision_backends.go 92.19% <0.00%> (-0.58%) ⬇️
pkg/apis/serving/v1/revision_types.go 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Comment thread pkg/queue/sharedmain/main.go Outdated
Co-authored-by: Dave Protasowski <dprotaso@gmail.com>
Comment thread pkg/queue/sharedmain/main.go Outdated
Comment thread pkg/queue/sharedmain/main.go Outdated
@dprotaso

Copy link
Copy Markdown
Member

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2022
@knative-prow

knative-prow Bot commented Aug 15, 2022

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidhadas, dprotaso

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 knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2022
@psschwei

Copy link
Copy Markdown
Member

/test upgrade-tests_serving_main

@dprotaso

Copy link
Copy Markdown
Member

/retest

1 similar comment
@davidhadas

Copy link
Copy Markdown
Contributor Author

/retest

@knative-prow
knative-prow Bot merged commit dd2abc9 into knative:main Aug 15, 2022
@davidhadas
davidhadas deleted the VolumeMountPathToDirectory branch December 13, 2022 09:08
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/autoscale area/networking lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants