Skip to content
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

cache: fixup pogreb db permissions #1317

Merged

Conversation

joelanford
Copy link
Member

Description of the change:
This commit updates the pogreb cache such that file and directory permissions are updated so that the pogreb DB is read/writable by the group.

Motivation for the change:
In certain runtime situations, the user that owns the files inside the image is not the effective user when the image runs, resulting in permission errors when creating a DB lock and when reading the DB files.

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /docs
  • Commit messages sensible and descriptive

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2024
Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 50.02%. Comparing base (e7ca8e3) to head (9f7939f).

Files Patch % Lines
pkg/cache/pogrebv1.go 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1317      +/-   ##
==========================================
- Coverage   50.06%   50.02%   -0.05%     
==========================================
  Files         135      135              
  Lines       12995    13006      +11     
==========================================
  Hits         6506     6506              
- Misses       5405     5416      +11     
  Partials     1084     1084              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

openshift-ci bot commented May 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grokspawn, joelanford

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:
  • OWNERS [grokspawn,joelanford]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@grokspawn
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 17, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 3a4d9e1 into operator-framework:master May 17, 2024
9 of 11 checks passed
@joelanford joelanford deleted the cache-pogreb-fix branch May 17, 2024 12:55
renovate bot added a commit to registry-operator/registry-operator that referenced this pull request May 17, 2024
…try to v1.43.0 (#57)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/operator-framework/operator-registry](https://togithub.com/operator-framework/operator-registry)
| `v1.42.0` -> `v1.43.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2foperator-framework%2foperator-registry/v1.43.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2foperator-framework%2foperator-registry/v1.43.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2foperator-framework%2foperator-registry/v1.42.0/v1.43.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2foperator-framework%2foperator-registry/v1.42.0/v1.43.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>operator-framework/operator-registry
(github.com/operator-framework/operator-registry)</summary>

###
[`v1.43.0`](https://togithub.com/operator-framework/operator-registry/releases/tag/v1.43.0)

[Compare
Source](https://togithub.com/operator-framework/operator-registry/compare/v1.42.0...v1.43.0)

#### What's Changed

- build(deps): bump google.golang.org/grpc from 1.63.2 to 1.64.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[operator-framework/operator-registry#1315
- build(deps): bump k8s.io/apimachinery from 0.30.0 to 0.30.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[operator-framework/operator-registry#1314
- build(deps): bump sigs.k8s.io/kind from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[operator-framework/operator-registry#1313
- build(deps): bump k8s.io/apiextensions-apiserver from 0.30.0 to 0.30.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[operator-framework/operator-registry#1312
- cache: fixup pogreb db permissions by
[@&#8203;joelanford](https://togithub.com/joelanford) in
[operator-framework/operator-registry#1317

**Full Changelog**:
operator-framework/operator-registry@v1.42.0...v1.43.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/registry-operator/registry-operator).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhcmVhL2RlcGVuZGVuY3kiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants