Documentation ¶
Index ¶
- Constants
- func CheckAction(expected, actual core.Action, t *testing.T)
- func CompareActions(t *testing.T, actions []core.Action, filteredActions []core.Action)
- func FilterInformerActions(actions []core.Action, resourceName string) []core.Action
- func ProcessWorkQueue(queue workqueue.RateLimitingInterface, syncHandler func(eKey string) error, ...) error
- type ClientBuilder
- type EtcdClusterPhase
Constants ¶
View Source
const ( ComponentEtcdClusterController = "etcdcluster-controller" ComponentEtcdInspectionController = "etcdinspection-controller" )
View Source
const ( ClusterTLSSecretName = "certName" ClusterExtensionClientURL = "extClientURL" )
Variables ¶
This section is empty.
Functions ¶
func CheckAction ¶
CheckAction verifies that expected and actual actions are equal and both have same attached resources
func CompareActions ¶
func FilterInformerActions ¶
FilterInformerActions filters list and watch actions for testing resources. Since list and watch don't change resource state we can filter it to lower nose level in our tests.
func ProcessWorkQueue ¶
func ProcessWorkQueue( queue workqueue.RateLimitingInterface, syncHandler func(eKey string) error, obj interface{}) error
ProcessWorkQueue handle item in queue, handle the result of syncHandler
Types ¶
type ClientBuilder ¶
type ClientBuilder interface { ConfigOrDie() *restclient.Config ClientOrDie() clientset.Interface DynamicClientOrDie() dynamic.Interface }
func NewFakeClientBuilder ¶
func NewFakeClientBuilder() ClientBuilder
func NewSimpleClientBuilder ¶
func NewSimpleClientBuilder(kubeconfig string) ClientBuilder
type EtcdClusterPhase ¶
type EtcdClusterPhase string
const ( EtcdClusterCreating EtcdClusterPhase = "EtcdClusterCreating" EtcdClusterUpdating EtcdClusterPhase = "EtcdClusterUpdating" EtcdClusterUpdateStatus EtcdClusterPhase = "EtcdClusterUpdateStatus" )
Click to show internal directories.
Click to hide internal directories.