Merge pull request #11353 from mborsz/protobuf

Use protobuf encoding in kubernetes discovery
This commit is contained in:
Frederic Branczyk 2022-09-30 10:38:37 +02:00 committed by GitHub
commit c48d8df627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {