Update Makefile and travis to run e2e tests Add ubuntu-nsenter image Fix typo in target name Add image pull policy flag for e2e tests Set config path env vars for e2e tests
27 lines
490 B
Go
27 lines
490 B
Go
package e2e
|
|
|
|
import (
|
|
"k8s.io/api/core/v1"
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
)
|
|
|
|
func NewCertManagerControllerPod(name string) *v1.Pod {
|
|
return &v1.Pod{
|
|
ObjectMeta: metav1.ObjectMeta{
|
|
Name: name,
|
|
Labels: map[string]string{
|
|
"app": name,
|
|
},
|
|
},
|
|
Spec: v1.PodSpec{
|
|
Containers: []v1.Container{
|
|
{
|
|
Name: name,
|
|
Image: certManagerImageFlag,
|
|
ImagePullPolicy: v1.PullPolicy(certManagerImagePullPolicy),
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|