-
Notifications
You must be signed in to change notification settings - Fork 84
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
No longer only search for apbs that end with -apb #719
Conversation
Turns out we do skip if we don't find the apb label.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What was the premise behind this change? Do we know if there is any performance impact with this? |
Just using the ansibleplaybookbundle repo, I don't see any time difference in bootstrapping the broker.
Using the code in master, bootstrap took: 6.27 seconds
I only did one run and captured the logs for each. Surprisingly this change came in faster by 0.596 seconds. :) |
I'd like for us to look at cleaning up our logging for bootstrapping to make it more organized, possibly for a later PR. |
Would it be bad to make this behavior configurable? that is disable the -apb check by default, but allow someone to turn it on with a flag? I mean this has served us well so far while removing it will solve one use case, I can see someone wanting to keep the original behavior. |
Forgive the lack of knowledge here but does the white_list not provide them with this functionality? |
It's already configurable with whitelist and the default behaviour is identical to the filter I'm removing. https://github.com/openshift/ansible-service-broker/blob/master/templates/deploy-ansible-service-broker.template.yaml#L311-L312. What I'm doing with this patch is removing the redundancy because we are filtering in two places. Whitelist should work as advertised and filter on the regex the user expects. Right now, that's not true because we always filter on the suffix -apb in addition to what's in whitelist. @jmrodri There's some additional information in the issue #685 if I didn't address your concern. Let me know if you have any more comments/concerns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
@rthallisey thanks for that clarification. This makes a lot of sense now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was concerned about this change possibly introducing a regression issue over something we missed, but I honestly can't think of anything. This is a problem for APB devs, I think I helped 3 different people in the last couple weeks who didn't understand why their APBs were not showing up in the catalog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I initially had concerns that the filter and pulling of metadata required that they be APBs but that does not appear to be the case.
I was also concerned that we may have wanted to change the interface here, but it seems that this change plus the change in whitelist behavior to require a whitelist value, seems to be more obvious.
👍 LGTM
Describe what this PR does and why we need it:
Give full respect to the whitelist config value by no longer filtering for '-apb'.
Changes proposed in this pull request
Which issue this PR fixes (This will close that issue when PR gets merged)
fixes #685