fixes golint error in staging/src/k8s.io/sample-controller/pkg/apis/samplecontroller/v1alpha1

fixes golint error in staging/src/k8s.io/sample-controller/pkg/apis/samplecontroller

fixes golint errors in staging/src/k8s.io/sample-apiserver/pkg/cmd/server

fixex golint errors in staging/src/k8s.io/sample-apiserver/pkg/apiserver

Kubernetes-commit: 55d45867e6a8b6336be0c56da0b4843dd552b1b0
This commit is contained in:
Baasbank 2019-05-03 23:10:40 +01:00 committed by Kubernetes Publisher
parent 567c0e89da
commit c0d85825ce
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ limitations under the License.
package samplecontroller
// GroupName is the group name used in this package
const (
GroupName = "samplecontroller.k8s.io"
)

View File

@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
}
var (
// SchemeBuilder initializes a scheme builder
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme
// AddToScheme is a global function that registers this API group & version to a scheme
AddToScheme = SchemeBuilder.AddToScheme
)
// Adds the list of known types to Scheme.