From 5539fefd089b75f790a3e46cbb2574135a6f80c4 Mon Sep 17 00:00:00 2001 From: Nikhita Raghunath Date: Wed, 4 Jul 2018 16:35:13 +0530 Subject: [PATCH] client-go/discovery: fix godoc package comment --- staging/src/k8s.io/client-go/discovery/BUILD | 1 + staging/src/k8s.io/client-go/discovery/doc.go | 19 +++++++++++++++++++ .../client-go/discovery/round_tripper.go | 1 - 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 staging/src/k8s.io/client-go/discovery/doc.go diff --git a/staging/src/k8s.io/client-go/discovery/BUILD b/staging/src/k8s.io/client-go/discovery/BUILD index cfeeb67f218..2481a199d9b 100644 --- a/staging/src/k8s.io/client-go/discovery/BUILD +++ b/staging/src/k8s.io/client-go/discovery/BUILD @@ -11,6 +11,7 @@ go_library( srcs = [ "cached_discovery.go", "discovery_client.go", + "doc.go", "helper.go", "round_tripper.go", "unstructured.go", diff --git a/staging/src/k8s.io/client-go/discovery/doc.go b/staging/src/k8s.io/client-go/discovery/doc.go new file mode 100644 index 00000000000..76495588ef7 --- /dev/null +++ b/staging/src/k8s.io/client-go/discovery/doc.go @@ -0,0 +1,19 @@ +/* +Copyright 2018 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package discovery provides ways to discover server-supported +// API groups, versions and resources. +package discovery diff --git a/staging/src/k8s.io/client-go/discovery/round_tripper.go b/staging/src/k8s.io/client-go/discovery/round_tripper.go index 2e352b888f2..a195d2a2a04 100644 --- a/staging/src/k8s.io/client-go/discovery/round_tripper.go +++ b/staging/src/k8s.io/client-go/discovery/round_tripper.go @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Package transport provides a round tripper capable of caching HTTP responses. package discovery import (