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

OCPBUGS-18708: fix: disallow creation of LVMCluster outside of operator namespace and restrict cache #428

Conversation

jakobmoellerdev
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev commented Sep 19, 2023

Introduces 2 new Limitations and tests for them in the Creation of LVMClusters:

  1. LVMCluster Duplicates in one namespace are not allowed
  2. LVMCluster can only be created in the Namespace of the Operator introspected by POD_NAMESPACE

This leads to us only being allowed exactly one LVMCluster in the Namespace of the operator

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 19, 2023
@openshift-ci-robot
Copy link

@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-18708, which is invalid:

  • expected the bug to target the "4.15.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

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.

@jakobmoellerdev
Copy link
Contributor Author

/test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 19, 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

@jakobmoellerdev
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 19, 2023
@openshift-ci-robot
Copy link

@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-18708, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @radeore

In response to this:

/jira refresh

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 openshift-ci bot requested a review from radeore September 19, 2023 12:00
@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 19, 2023
@jakobmoellerdev
Copy link
Contributor Author

/test all

@jakobmoellerdev
Copy link
Contributor Author

/retest-required

2 similar comments
@jakobmoellerdev
Copy link
Contributor Author

/retest-required

@jakobmoellerdev
Copy link
Contributor Author

/retest-required

@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws-sno

@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-18708-disallow-lvmcluster-outside-operator-namespace branch from 1b72ad2 to f618e3b Compare September 20, 2023 08:41
@openshift-ci openshift-ci bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 20, 2023
@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-18708-disallow-lvmcluster-outside-operator-namespace branch from f618e3b to 739b1bc Compare September 20, 2023 09:00
@jakobmoellerdev
Copy link
Contributor Author

/test all

@jakobmoellerdev jakobmoellerdev marked this pull request as ready for review September 20, 2023 09:07
@jakobmoellerdev
Copy link
Contributor Author

/test all

@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 Sep 20, 2023
@openshift-ci openshift-ci bot requested review from brandisher and qJkee September 20, 2023 09:14
@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-18708-disallow-lvmcluster-outside-operator-namespace branch from 739b1bc to f31d780 Compare September 20, 2023 09:20
@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-18708-disallow-lvmcluster-outside-operator-namespace branch from f31d780 to f755bd0 Compare September 20, 2023 09:21
@codecov-commenter
Copy link

Codecov Report

Merging #428 (f755bd0) into main (f2d644a) will increase coverage by 1.33%.
The diff coverage is 47.05%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #428      +/-   ##
==========================================
+ Coverage   62.34%   63.68%   +1.33%     
==========================================
  Files          27       28       +1     
  Lines        2332     2360      +28     
==========================================
+ Hits         1454     1503      +49     
+ Misses        746      709      -37     
- Partials      132      148      +16     
Files Changed Coverage Δ
pkg/cluster/namespace.go 0.00% <0.00%> (ø)
api/v1alpha1/lvmcluster_webhook.go 24.87% <52.17%> (+24.87%) ⬆️

@jakobmoellerdev
Copy link
Contributor Author

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2023

@jakobmoellerdev: 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.

@suleymanakbas91
Copy link
Contributor

/lgtm
/approve

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

openshift-ci bot commented Sep 20, 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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 20, 2023
@openshift-merge-robot openshift-merge-robot merged commit 9677ed3 into openshift:main Sep 20, 2023
@openshift-ci-robot
Copy link

@jakobmoellerdev: Jira Issue OCPBUGS-18708: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-18708 has been moved to the MODIFIED state.

In response to this:

Introduces 2 new Limitations and tests for them in the Creation of LVMClusters:

  1. LVMCluster Duplicates in one namespace are not allowed
  2. LVMCluster can only be created in the Namespace of the Operator introspected by POD_NAMESPACE

This leads to us only being allowed exactly one LVMCluster in the Namespace of the operator

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.

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-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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.

5 participants