-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add issuer override #202
Add issuer override #202
Conversation
@oyvindio, can you take a look? 😄 |
@oyvindio is on vacation until next week, and I don't understand the feature well enough (or the codebase, for that matter) to be the sole approver. So this will have to wait until he's back, unfortunately. |
@j18e no problem at all. I will create my own image with this change meanwhile 😄 I will add some fixes about python3 I'm just discovering while testing this image |
Thanks for the PR! I will try to make some time to take a closer look at this later this week |
Thank you @oyvindio! Were you able to take a quick look? 😄 |
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.
Functionally, this looks good to me.
Before merging, please update the operator guide with documentation describing how to use the new configuration flag. (I'm setting request changes mainly for this).
IngressDeployer
is already a bit complicated, so while it looks like this should work, I don't think it is ideal that more TLS related functionality is "leaking" into this class. Some ideas to refactor this might be;
- Wrap the
_tls_issuer_*
instance variables and_get_issuer_*
methods in a separate class (TLSIssuerConfiguration?, TLSIssuers?) and use that in IngressDeployer. That seems relatively straightforward to do and could make the separation of concerns a bit clearer. - Make
AnnotatedIngress
a proper (data?)class, move more of the of the logic around issuer types and issuer names into it (maybe combine this with using the class to encapsulate issuer name/type logic suggested above inAnnotatedIngress
?).AnnotatedIngress
could be passed toIngressTLSDeployer
for setting the TLS annotations. I think this could leave only the ingress item grouping related logic related to TLS issuers inIngressDeployer
. This probably requires moving a bit more code around than the previous point.
What do you think? Refactoring could potentially be handled in a followup PR.
Hello Oyvindio, I will try to check the comments, but for the refactor I will not be able to work on it until April, Is it okay to merge this PR and, in April, I refactor the TLS code? |
d82fb33
to
f81f046
Compare
Yes, I think it is okay to do refactoring in a followup PR. |
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
PR to include the override of the issuer name as we already do with the issuer type
We have the need to have different certificate_issuers per ingress in the same application and the current FIAAS spec does not allow us to do it
Also fixed an error that appeared with python3 version