Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cns/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,8 @@
return errors.Wrap(err, "failed to get kubeconfig")
}
kubeConfig.UserAgent = fmt.Sprintf("azure-cns-%s", version)
kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
kubeConfig.ContentType = "application/vnd.kubernetes.protobuf"
// kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"

Check failure on line 1248 in cns/service/main.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

commentedOutCode: may want to remove commented-out code (gocritic)

Check failure on line 1248 in cns/service/main.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, windows-latest)

commentedOutCode: may want to remove commented-out code (gocritic)

Check failure on line 1248 in cns/service/main.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

commentedOutCode: may want to remove commented-out code (gocritic)

Check failure on line 1248 in cns/service/main.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, windows-latest)

commentedOutCode: may want to remove commented-out code (gocritic)
// kubeConfig.ContentType = "application/vnd.kubernetes.protobuf"

clientset, err := kubernetes.NewForConfig(kubeConfig)
if err != nil {
Expand Down
Loading