testk8s

package
v0.10.0-rc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MockCAName         = "mock-ca-cert"
	MockClientCertName = "mock-client-cert"
)

Variables

This section is empty.

Functions

func GetCertManagerCRDs

func GetCertManagerCRDs(scheme *runtime.Scheme) []*apiextensionsv1.CustomResourceDefinition

func StartK8s

func StartK8s(ctx waitctx.PermissiveContext, crdDirs []string, scheme *k8sruntime.Scheme) (*rest.Config, *k8sruntime.Scheme, error)

func StartManager

func StartManager(ctx waitctx.PermissiveContext, restConfig *rest.Config, scheme *k8sruntime.Scheme, reconcilers ...Reconciler) ctrl.Manager

Types

type Reconciler

type Reconciler interface {
	SetupWithManager(ctrl.Manager) error
}

type TestCertManager

type TestCertManager struct{}

func (*TestCertManager) GenerateAdminClientCert

func (m *TestCertManager) GenerateAdminClientCert() error

func (*TestCertManager) GenerateClientCert

func (m *TestCertManager) GenerateClientCert(_ string) error

func (*TestCertManager) GenerateHTTPCA

func (m *TestCertManager) GenerateHTTPCA() error

func (*TestCertManager) GenerateRootCACert

func (m *TestCertManager) GenerateRootCACert() error

func (*TestCertManager) GenerateTransportCA

func (m *TestCertManager) GenerateTransportCA() error

func (*TestCertManager) GetAdminClientCert

func (m *TestCertManager) GetAdminClientCert() (tls.Certificate, error)

func (*TestCertManager) GetClientCert

func (m *TestCertManager) GetClientCert(_ string) (tls.Certificate, error)

func (*TestCertManager) GetClientCertRef

func (m *TestCertManager) GetClientCertRef(_ string) (corev1.LocalObjectReference, error)

func (*TestCertManager) GetHTTPCARef

func (m *TestCertManager) GetHTTPCARef() (corev1.LocalObjectReference, error)

func (*TestCertManager) GetHTTPRootCAs

func (m *TestCertManager) GetHTTPRootCAs() (*x509.CertPool, error)

func (*TestCertManager) GetTransportCARef

func (m *TestCertManager) GetTransportCARef() (corev1.LocalObjectReference, error)

func (*TestCertManager) GetTransportRootCAs

func (m *TestCertManager) GetTransportRootCAs() (*x509.CertPool, error)

func (*TestCertManager) PopulateK8sObjects

func (m *TestCertManager) PopulateK8sObjects(ctx context.Context, client ctrlclient.Client, namespace string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL