mirror of
https://github.com/prometheus/prometheus.git
synced 2025-07-03 19:13:23 +00:00
Use protobuf encoding in client-go
Signed-off-by: Maciej Borsz <maciejborsz@google.com>
This commit is contained in:
parent
734772f828
commit
56eba3ace2
1 changed files with 1 additions and 0 deletions
|
@ -336,6 +336,7 @@ func New(l log.Logger, conf *SDConfig) (*Discovery, error) {
|
|||
}
|
||||
|
||||
kcfg.UserAgent = userAgent
|
||||
kcfg.ContentType = "application/vnd.kubernetes.protobuf"
|
||||
|
||||
c, err := kubernetes.NewForConfig(kcfg)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue