feat: use proto in CNS usage of client-go (#3131)
feat: use proto in client-go Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
This commit is contained in:
Родитель
352a948406
Коммит
082d6a6655
|
@ -1245,6 +1245,8 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
|
||||||
return errors.Wrap(err, "failed to get kubeconfig")
|
return errors.Wrap(err, "failed to get kubeconfig")
|
||||||
}
|
}
|
||||||
kubeConfig.UserAgent = fmt.Sprintf("azure-cns-%s", version)
|
kubeConfig.UserAgent = fmt.Sprintf("azure-cns-%s", version)
|
||||||
|
kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
|
||||||
|
kubeConfig.ContentType = "application/vnd.kubernetes.protobuf"
|
||||||
|
|
||||||
clientset, err := kubernetes.NewForConfig(kubeConfig)
|
clientset, err := kubernetes.NewForConfig(kubeConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче