how to add tls config to a http probe using a go client ? #999
Answered
by
manugarg
kssahazeer
asked this question in
Q&A
-
|
Adding tls config in http probe, tying cloudprober via golang client since tlsconfig is internal and golang dosen't support importing internal directory |
Beta Was this translation helpful? Give feedback.
Answered by
manugarg
Feb 13, 2025
Replies: 1 comment
-
|
One not so great workaround is to build the whole config in text/json and then unmarshal it into protobuf.
This is similar to what cloudprober binary does: Line 145 in 47ff806 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kssahazeer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One not so great workaround is to build the whole config in text/json and then unmarshal it into protobuf.
Go templatebased config templates like this:This is similar to what cloudprober binary does:
cloudprober/config/config.go
Line 145 in 47ff806