mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-19 08:32:56 -04:00
The client-go variant of ktesting is a superset of the normal ktesting, which makes it possible to get the full original functionality simply by changing the import path.
26 lines
938 B
Go
26 lines
938 B
Go
/*
|
|
Copyright 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 ktesting in client-go adds supports for testing with client-go
|
|
// to ktesting:
|
|
// - Storing and retrieving client instances and REST configuration.
|
|
// - TODO: Namespace creation.
|
|
//
|
|
// Those can of course also be passed as separate parameters.
|
|
// When using TContext, a single parameter is enough.
|
|
//
|
|
// TODO: move to k8s.io/client-go/ktesting
|
|
package ktesting
|