Documentation ¶
Index ¶
- func NewContainer(name, image string, port int32) corev1.Container
- func NewDeploymentForContainer(c corev1.Container) *appsv1.Deployment
- func NewIngressForService(path string, annotations map[string]string, s *corev1.Service) *netv1.Ingress
- func NewServiceForDeployment(d *appsv1.Deployment, serviceType corev1.ServiceType) *corev1.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContainer ¶
NewContainer creates a minimal and opinionated corev1.Container object for testing
func NewDeploymentForContainer ¶
func NewDeploymentForContainer(c corev1.Container) *appsv1.Deployment
NewDeploymentForContainer creates a minimal and opinionated *appsv1.Deployment object for testing based on a provided corev1.Container.
func NewIngressForService ¶
func NewIngressForService(path string, annotations map[string]string, s *corev1.Service) *netv1.Ingress
NewIngressForService provides a basic and opinionated *netv1.Ingress object for the provided *corev1.Service to expose it via an ingress controller for testing purposes.
func NewServiceForDeployment ¶
func NewServiceForDeployment(d *appsv1.Deployment, serviceType corev1.ServiceType) *corev1.Service
NewServiceForDeployment provides a minimal and opinionated service to expose the provided *appsv1.Deployment for testing purposes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.