only emebed waiter

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
pull/13604/head
Austin Abro 9 months ago
parent 859ff9b548
commit aacaa08be2
No known key found for this signature in database
GPG Key ID: 92EB5159E403F9D6

@ -87,7 +87,6 @@ type Client struct {
Namespace string Namespace string
kubeClient *kubernetes.Clientset kubeClient *kubernetes.Clientset
ResourceManager
Waiter Waiter
} }

@ -29,11 +29,6 @@ import (
// //
// A KubernetesClient must be concurrency safe. // A KubernetesClient must be concurrency safe.
type Interface interface { type Interface interface {
ResourceManager
Waiter
}
type ResourceManager interface {
// Create creates one or more resources. // Create creates one or more resources.
Create(resources ResourceList) (*Result, error) Create(resources ResourceList) (*Result, error)
@ -66,6 +61,7 @@ type ResourceManager interface {
Build(reader io.Reader, validate bool) (ResourceList, error) Build(reader io.Reader, validate bool) (ResourceList, error)
// IsReachable checks whether the client is able to connect to the cluster. // IsReachable checks whether the client is able to connect to the cluster.
IsReachable() error IsReachable() error
Waiter
} }
// Waiter defines methods related to waiting for resource states. // Waiter defines methods related to waiting for resource states.

Loading…
Cancel
Save