Documentation
¶
Index ¶
- Constants
- func GetCertManagerCRDs(scheme *runtime.Scheme) []*apiextensionsv1.CustomResourceDefinition
- func StartK8s(ctx waitctx.PermissiveContext, crdDirs []string, scheme *k8sruntime.Scheme) (*rest.Config, *k8sruntime.Scheme, error)
- func StartManager(ctx waitctx.PermissiveContext, restConfig *rest.Config, ...) ctrl.Manager
- type Reconciler
- type TestCertManager
- func (m *TestCertManager) GenerateAdminClientCert() error
- func (m *TestCertManager) GenerateClientCert(_ string) error
- func (m *TestCertManager) GenerateHTTPCA() error
- func (m *TestCertManager) GenerateRootCACert() error
- func (m *TestCertManager) GenerateTransportCA() error
- func (m *TestCertManager) GetAdminClientCert() (tls.Certificate, error)
- func (m *TestCertManager) GetClientCert(_ string) (tls.Certificate, error)
- func (m *TestCertManager) GetClientCertRef(_ string) (corev1.LocalObjectReference, error)
- func (m *TestCertManager) GetHTTPCARef() (corev1.LocalObjectReference, error)
- func (m *TestCertManager) GetHTTPRootCAs() (*x509.CertPool, error)
- func (m *TestCertManager) GetTransportCARef() (corev1.LocalObjectReference, error)
- func (m *TestCertManager) GetTransportRootCAs() (*x509.CertPool, error)
- func (m *TestCertManager) PopulateK8sObjects(ctx context.Context, client ctrlclient.Client, namespace string) error
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 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
Click to show internal directories.
Click to hide internal directories.