Documentation ¶
Index ¶
- Constants
- func AssertActions(t *testing.T, actualActions []clienttesting.Action, expectedVerbs ...string)
- func AssertError(t *testing.T, actual error, expectedErr string)
- func AssertNoActions(t *testing.T, actualActions []clienttesting.Action)
- func NewApprovedCSR(holder CSRHolder) *certv1.CertificateSigningRequest
- func NewCSR(holder CSRHolder) *certv1.CertificateSigningRequest
- func NewDeniedCSR(holder CSRHolder) *certv1.CertificateSigningRequest
- func NewHubKubeconfigSecret(namespace, name, resourceVersion string, cert *TestCert, ...) *corev1.Secret
- func NewKubeconfig(key, cert []byte) []byte
- type CSRHolder
- type FakeSyncContext
- type TestCert
Constants ¶
View Source
const (
TestManagedClusterName = "testmanagedcluster"
)
Variables ¶
This section is empty.
Functions ¶
func AssertActions ¶
func AssertActions(t *testing.T, actualActions []clienttesting.Action, expectedVerbs ...string)
AssertActions asserts the actual actions have the expected action verb
func AssertError ¶
AssertError asserts the actual error representation is the same with the expected, if the expected error representation is empty, the actual should be nil
func AssertNoActions ¶
func AssertNoActions(t *testing.T, actualActions []clienttesting.Action)
AssertNoActions asserts no actions are happened
func NewApprovedCSR ¶
func NewApprovedCSR(holder CSRHolder) *certv1.CertificateSigningRequest
func NewCSR ¶
func NewCSR(holder CSRHolder) *certv1.CertificateSigningRequest
func NewDeniedCSR ¶
func NewDeniedCSR(holder CSRHolder) *certv1.CertificateSigningRequest
func NewHubKubeconfigSecret ¶
func NewKubeconfig ¶
Types ¶
type FakeSyncContext ¶
type FakeSyncContext struct {
// contains filtered or unexported fields
}
func NewFakeSyncContext ¶
func NewFakeSyncContext(t *testing.T, clusterName string) *FakeSyncContext
func (FakeSyncContext) Queue ¶
func (f FakeSyncContext) Queue() workqueue.RateLimitingInterface
func (FakeSyncContext) QueueKey ¶
func (f FakeSyncContext) QueueKey() string
func (FakeSyncContext) Recorder ¶
func (f FakeSyncContext) Recorder() events.Recorder
Click to show internal directories.
Click to hide internal directories.