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

OCPVE-760: Save lvmd config to a configmap instead of a file #480

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

suleymanakbas91
Copy link
Contributor

@suleymanakbas91 suleymanakbas91 commented Nov 8, 2023

This PR changes the way how VG Manager supplies lvmd config to TopoLVM Node. The config file was saved as a file on the host before. Now, VG Manager creates a ConfigMap that is mounted to TopoLVM Node. This way, TopoLVM does not need the file-checker init-container anymore, hence it is deleted.

Copy link
Contributor

openshift-ci bot commented Nov 8, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 8, 2023
@suleymanakbas91
Copy link
Contributor Author

/test all

@suleymanakbas91 suleymanakbas91 force-pushed the lvmd-conf branch 3 times, most recently from 1d5bd2a to 91f9b98 Compare November 8, 2023 14:31
@suleymanakbas91 suleymanakbas91 marked this pull request as ready for review November 8, 2023 16:18
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 8, 2023
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

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

Looks great :)

Just one question: what happens with lvmd when the file / configmap is gone?

If you interact with config maps in the controller (especially if you do it on every reconciel), I think you should cache them and restrict the cache to the namespace that the operator is deployed in. Even if lvmd works fine still, we probably need to add a watch to namespaced config maps to react and reconcile in case of deletion requests?

Other than that we are good to go I think 🚀

internal/controllers/vgmanager/lvmd/lvmd.go Outdated Show resolved Hide resolved
internal/controllers/vgmanager/lvmd/lvmd.go Outdated Show resolved Hide resolved
internal/controllers/vgmanager/lvmd/lvmd.go Show resolved Hide resolved
@suleymanakbas91 suleymanakbas91 changed the title feat: save lvmd config to a configmap instead of a file OCPVE-760: Save lvmd config to a configmap instead of a file Nov 9, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 9, 2023

@suleymanakbas91: This pull request references OCPVE-760 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.15.0" version, but no target version was set.

In 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.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 9, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2023

Codecov Report

Merging #480 (faed224) into main (7499d08) will increase coverage by 0.24%.
Report is 8 commits behind head on main.
The diff coverage is 87.50%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
+ Coverage   81.93%   82.17%   +0.24%     
==========================================
  Files          24       24              
  Lines        1771     1784      +13     
==========================================
+ Hits         1451     1466      +15     
+ Misses        219      218       -1     
+ Partials      101      100       -1     
Files Coverage Δ
internal/controllers/vgmanager/controller.go 77.14% <87.50%> (+0.91%) ⬆️

... and 2 files with indirect coverage changes

@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 9, 2023

@suleymanakbas91: This pull request references OCPVE-760 which is a valid jira issue.

In response to this:

This PR changes the way how VG Manager supplies lvmd config to TopoLVM Node. The config file was saved as a file on the host before. Now, VG Manager creates a ConfigMap that is mounted to TopoLVM Node. This way, TopoLVM does not need the file-checker init-container anymore, hence it is deleted.

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.

Copy link
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

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

/lgtm
💯

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2023
Copy link
Contributor

openshift-ci bot commented Nov 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jakobmoellerdev, suleymanakbas91

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 [jakobmoellerdev,suleymanakbas91]

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

@suleymanakbas91
Copy link
Contributor Author

/retest

Copy link
Contributor

openshift-ci bot commented Nov 9, 2023

@suleymanakbas91: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit cf5eeb1 into openshift:main Nov 9, 2023
9 checks passed
@suleymanakbas91 suleymanakbas91 deleted the lvmd-conf branch November 9, 2023 16:24
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants