Code Monkey home page Code Monkey logo

ocpbugs-5900's Introduction

Reproduction for OCPBUGS-5900

This repository can be used to recreate the OpenShift OLM issue described in OCPBUGS-5900.

The OLM creates RBAC policies for CSVs/InstallPlans based on the OperatorGroup definitions but the RBAC policy names are generated based on the operator name. Operators installed into differing namespaces with overlapping OperatorGroups will result in the RBAC policies applied to a single Operators serviceaccounts and not both.

To reproduce the issue:

# Apply the manifests (up to step 5)
for i in {1..5} ; do echo "oc apply -f step${i}"; oc apply -f "step${i}" ; done && sleep 60

# Collect the RoleBindings
rm pre-rolebindings.yaml
for NS in ns-a ns-b ; do echo "oc get rolebindings -o yaml -n $NS" ; oc get rolebindings -o yaml -n $NS | oc neat >> pre-rolebindings.yaml ; done

# Apply the final installation of Operator
oc apply -f step6

# Compare the `operand-deployment-lifecycle-manager.v2.0.0-operand--558775dc8c` RoleBinding in `ns-a` and see that this existed before the additional Operator was installed. But has been changed upon the new install
rm post-rolebindings.yaml
for NS in ns-a ns-b ; do echo "oc get rolebindings -o yaml -n $NS" ; oc get rolebindings -o yaml -n $NS | oc neat >> post-rolebindings.yaml ; done

diff pre-rolebindings.yaml post-rolebindings.yaml 

To remove the manifests:

for i in {6..1} ; do echo "oc delete -f step${i}"; oc delete -f "step${i}" ; done

ocpbugs-5900's People

Contributors

michaelwasher avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.