Bug 1989398: Avoid processing the .indexignore file when walking the root fs#153
Bug 1989398: Avoid processing the .indexignore file when walking the root fs#153timflannagan wants to merge 1 commit intoopenshift:masterfrom
Conversation
… the root fs (openshift#733) Update internal/declcfg/load.go and avoid processing any files that are named `.indexignore` when walking the declarative config index root filesystem. When validating declarative config directories, the .indexignore file was being processed and validated. Signed-off-by: timflannagan <timflannagan@gmail.com> Upstream-repository: operator-registry Upstream-commit: 78f27b39dc098c2e56681d9a3d8e786aae95d4fe
|
@timflannagan: This pull request references Bugzilla bug 1989398, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (kuiwang@redhat.com), skipping review request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
5 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
| if info.IsDir() || matcher.Match(path, false) { | ||
| // avoid validating a directory, an .indexignore file, or any file that matches | ||
| // an ignore pattern outlined in a .indexignore file. | ||
| if info.IsDir() || info.Name() == indexIgnoreFilename || matcher.Match(path, false) { |
There was a problem hiding this comment.
Are there no tests for this?
njhale
left a comment
There was a problem hiding this comment.
Ideally, all behavioral changes should be accompanied by a test, but since this has already merged upstream, I don't think we should introduce a downstream-diff for it.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: njhale, timflannagan 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 |
|
Decided against porting this downstream. |
|
@timflannagan: This pull request references Bugzilla bug 1989398. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
* add SA field to config Signed-off-by: Ish Shah <ishah@redhat.com> * Update pkg/apis/scorecard/v1alpha3/configuration_types.go Co-authored-by: Joe Lanford <joe.lanford@gmail.com> Upstream-repository: api Upstream-commit: 179663555651895b714e51a56dc0461fbc197235
* add SA field to config Signed-off-by: Ish Shah <ishah@redhat.com> * Update pkg/apis/scorecard/v1alpha3/configuration_types.go Co-authored-by: Joe Lanford <joe.lanford@gmail.com> Upstream-repository: api Upstream-commit: 179663555651895b714e51a56dc0461fbc197235
* add SA field to config Signed-off-by: Ish Shah <ishah@redhat.com> * Update pkg/apis/scorecard/v1alpha3/configuration_types.go Co-authored-by: Joe Lanford <joe.lanford@gmail.com> Upstream-repository: api Upstream-commit: 179663555651895b714e51a56dc0461fbc197235
Update internal/declcfg/load.go and avoid processing any files that are
named
.indexignorewhen walking the declarative config index rootfilesystem. When validating declarative config directories, the
.indexignore file was being processed and validated.
Signed-off-by: timflannagan timflannagan@gmail.com
Upstream-repository: operator-registry
Upstream-commit: 78f27b39dc098c2e56681d9a3d8e786aae95d4fe