Add existing certificate to route after redeployment of a service#27
Open
macmacs wants to merge 1 commit intoibotty:masterfrom
macmacs:macmacs-add-existing-certificate-patch
Open
Add existing certificate to route after redeployment of a service#27macmacs wants to merge 1 commit intoibotty:masterfrom macmacs:macmacs-add-existing-certificate-patch
macmacs wants to merge 1 commit intoibotty:masterfrom
macmacs:macmacs-add-existing-certificate-patch
Conversation
This way, an existing certificate is also added to a route if the corresponding service is redeployed.
Owner
|
Do you mean: route redeployment? I prefer recording above whether the route has a certificate and checking below. What do you think? |
Author
|
Yes, route deployment (e.g. when setting up a new application). I noticed, that if a cert for a certain app/route already exists in openshift-letsencrypt storage, the route will NOT be changed to https when I redeploy this app/route. This pullrequest would take care of this case. |
Owner
|
I understand the problem. I am kind of uncomfortable to patch the route any time, unconditionally because of the unnecessary load on the api server.
What logic do you think is required. Is it sufficient to patch the route iff the route has no valid* certificate? Are there edge cases that logic does not handle?
valid = exists, lifetime long enough
|
Author
|
Hmm, I don't see a problem with the api server, because existing, valid certificates will be used. |
Owner
|
It does not matter whether the certificate is different, it will nonetheless create a new route revision. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This way, an existing certificate is also added to a route if the corresponding service is redeployed.