Documentation ¶
Index ¶
- func MatchPatch(patch client.Patch) gomock.Matcher
- type ClientPatch
- type ControllerManagerTestSuiteBase
- func (s *ControllerManagerTestSuiteBase) AddClusterIPService(name string, selector map[string]string, serviceIp string, pods []*corev1.Pod) *corev1.Service
- func (s *ControllerManagerTestSuiteBase) AddDaemonSet(name string, podIps []string, podLabels map[string]string) (*appsv1.DaemonSet, []*corev1.Pod)
- func (s *ControllerManagerTestSuiteBase) AddDaemonSetWithService(name string, podIps []string, podLabels map[string]string, serviceIp string) (*appsv1.DaemonSet, *corev1.Service)
- func (s *ControllerManagerTestSuiteBase) AddDeployment(name string, podIps []string, podLabels map[string]string) (*appsv1.Deployment, []*corev1.Pod)
- func (s *ControllerManagerTestSuiteBase) AddDeploymentWithIngressService(name string, podIps []string, podLabels map[string]string, serviceIp string, ...) (*appsv1.Deployment, *corev1.Service, []*corev1.Pod)
- func (s *ControllerManagerTestSuiteBase) AddDeploymentWithService(name string, podIps []string, podLabels map[string]string, serviceIp string) (*appsv1.Deployment, *corev1.Service, []*corev1.Pod)
- func (s *ControllerManagerTestSuiteBase) AddEndpoints(name string, pods []*corev1.Pod, port *int) *corev1.Endpoints
- func (s *ControllerManagerTestSuiteBase) AddIngress(name string, serviceName string, serviceNamespace, externalIP string, port int) *networkingv1.Ingress
- func (s *ControllerManagerTestSuiteBase) AddLoadBalancerService(name string, selector map[string]string, serviceIp string, pods []*corev1.Pod) *corev1.Service
- func (s *ControllerManagerTestSuiteBase) AddPod(name string, podIp string, labels map[string]string, ...) *corev1.Pod
- func (s *ControllerManagerTestSuiteBase) AddPodWithHostNetwork(name, ip string, labels, annotations map[string]string, hostNetwork bool) *corev1.Pod
- func (s *ControllerManagerTestSuiteBase) AddReplicaSet(name string, podIps []string, podLabels map[string]string) (*appsv1.ReplicaSet, []*corev1.Pod)
- func (s *ControllerManagerTestSuiteBase) AddService(name string, selector map[string]string, serviceIp string, pods []*corev1.Pod, ...) *corev1.Service
- func (s *ControllerManagerTestSuiteBase) AddServiceWithIngress(name string, selector map[string]string, serviceIp string, externalIP string, ...) *corev1.Service
- func (s *ControllerManagerTestSuiteBase) BeforeTest(_, testName string)
- func (s *ControllerManagerTestSuiteBase) GetAPIServerService() *corev1.Service
- func (s *ControllerManagerTestSuiteBase) SetupTest()
- func (s *ControllerManagerTestSuiteBase) TearDownTest()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientPatch ¶
func (ClientPatch) Matches ¶
func (p ClientPatch) Matches(x interface{}) bool
func (ClientPatch) String ¶
func (p ClientPatch) String() string
type ControllerManagerTestSuiteBase ¶
type ControllerManagerTestSuiteBase struct { suite.Suite TestNamespace string K8sDirectClient *kubernetes.Clientset Mgr manager.Manager // contains filtered or unexported fields }
func (*ControllerManagerTestSuiteBase) AddClusterIPService ¶
func (*ControllerManagerTestSuiteBase) AddDaemonSet ¶
func (*ControllerManagerTestSuiteBase) AddDaemonSetWithService ¶
func (*ControllerManagerTestSuiteBase) AddDeployment ¶
func (s *ControllerManagerTestSuiteBase) AddDeployment(name string, podIps []string, podLabels map[string]string) (*appsv1.Deployment, []*corev1.Pod)
func (*ControllerManagerTestSuiteBase) AddDeploymentWithIngressService ¶
func (*ControllerManagerTestSuiteBase) AddDeploymentWithService ¶
func (*ControllerManagerTestSuiteBase) AddEndpoints ¶
func (*ControllerManagerTestSuiteBase) AddIngress ¶
func (s *ControllerManagerTestSuiteBase) AddIngress(name string, serviceName string, serviceNamespace, externalIP string, port int) *networkingv1.Ingress
func (*ControllerManagerTestSuiteBase) AddLoadBalancerService ¶
func (*ControllerManagerTestSuiteBase) AddPod ¶
func (s *ControllerManagerTestSuiteBase) AddPod(name string, podIp string, labels map[string]string, ownerRefs []metav1.OwnerReference) *corev1.Pod
func (*ControllerManagerTestSuiteBase) AddPodWithHostNetwork ¶
func (*ControllerManagerTestSuiteBase) AddReplicaSet ¶
func (s *ControllerManagerTestSuiteBase) AddReplicaSet(name string, podIps []string, podLabels map[string]string) (*appsv1.ReplicaSet, []*corev1.Pod)
func (*ControllerManagerTestSuiteBase) AddService ¶
func (*ControllerManagerTestSuiteBase) AddServiceWithIngress ¶
func (*ControllerManagerTestSuiteBase) BeforeTest ¶
func (s *ControllerManagerTestSuiteBase) BeforeTest(_, testName string)
BeforeTest happens AFTER the SetupTest()
func (*ControllerManagerTestSuiteBase) GetAPIServerService ¶
func (s *ControllerManagerTestSuiteBase) GetAPIServerService() *corev1.Service
func (*ControllerManagerTestSuiteBase) SetupTest ¶
func (s *ControllerManagerTestSuiteBase) SetupTest()
func (*ControllerManagerTestSuiteBase) TearDownTest ¶
func (s *ControllerManagerTestSuiteBase) TearDownTest()
Click to show internal directories.
Click to hide internal directories.