[kube-prometheus-stack] fix admission webhook DNS name rendering#6646
[kube-prometheus-stack] fix admission webhook DNS name rendering#6646jkroepke merged 1 commit intoprometheus-community:mainfrom
Conversation
Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>
|
By way of additional explanation, the template here REQUIRES these cert names to be separated by a newline in order to properly be split/comma-separated. The previous PR was "resolved" by this change only because the I believe the prior issue came down to this:
@vitrix1 you likely need to switch your editor? from using carriage returns and make sure that it only has newline characters (reference this link as one helper for that). It might look different based on your editor/process though. |
|
I guess a bitter fix would be a comma separation, instead a newline spearation? |
I could make that change if it's the desired path - I think |
|
It just seems serios cross os issues with \r\n on windows and \n on linux |
jkroepke
left a comment
There was a problem hiding this comment.
Approve for now to fix this in general
What this PR does / why we need it
This PR reverts #6629 which incorrectly introduced a chomp which results in errors at deploy time:
x509: certificate is valid for kube-prometheus-stack-operatorkube-prometheus-stack-operator.monitoring.svc, not kube-prometheus-stack-operatorNote the way that kube-prometheus-stack-operatorkube-prometheus-stack-operator.monitoring.svc is smushed together rather than two separate names (
kube-prometheus-stack-operatorandkube-prometheus-stack-operator.monitoring.svc).Which issue this PR fixes
Haven't opened an issue, but I can.
Special notes for your reviewer
The prior PR introduced this issue to resolve a bug, but the problem in that case was related to Windows
^M(see https://unix.stackexchange.com/questions/32001/what-is-m-and-how-do-i-get-rid-of-it) - cc @vitrix1Checklist
[prometheus-couchdb-exporter])