Skip to content

Commit e01b51d

Browse files
committed
why not proto
1 parent f91ab26 commit e01b51d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

npm/cmd/start_server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ func startControlplane(config npmconfig.Config, flags npmconfig.Flags) error {
8181
}
8282
}
8383

84+
k8sConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
85+
k8sConfig.ContentType = "application/vnd.kubernetes.protobuf"
86+
8487
// Creates the clientset
8588
clientset, err := kubernetes.NewForConfig(k8sConfig)
8689
if err != nil {

0 commit comments

Comments
 (0)