-
Notifications
You must be signed in to change notification settings - Fork 97
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
THREESCALE-8002 - feat: allow reading policy configuration from secret #813
Conversation
Cool! 🥇 This PR is ready to be merged Let me drop two comments and one "request for change".
|
Yes, the intention was to have the secret take precedence but it is true that typically plain values would take precedence 🤔 I can make the change for the plain value to take precendence and note it in the documentation
Ah yes, I forgot about this scenario 🤦 Yes, unfortunately the nature of the CRDs being cluster scoped can force this to occur. Proper CRD versioning would possibly mitigate this 🤔 I'll play around with I guess to note that even if we can work around this, Products in namespace B will still end up as being "invalid" in a sense since I guess the CRs would lose reference to the secretRef in the CR spec and use the plain value instead (which would likely be empty)? 🤔
Sure, I'll add an example in there 👍 |
I remember working in an issue related to this #754. |
Oh cool, wasn't aware of that. Thanks ! 👍 |
09411d0
to
4ef1789
Compare
refactor: plain value takes precendence over secret refacor: add default value for configuration to maintain backwards compatability docs: add example for configuration from secret to capabilies doc
4ef1789
to
734fd5c
Compare
Code Climate has analyzed commit 734fd5c and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Congrats for the detailed and good verification steps All the steps worked like a charm |
Description
Allow reading policy configuration from secret
Verification
APIMananger
Product
with configuration from value{}
as the default value forconfiguration
in policies