Documentation
¶
Index ¶
- func AppendSecretVolume(volumes *[]apiv1.Volume, mounts *[]apiv1.VolumeMount, name string, path string)
- func AssertJob(t *testing.T, job *batchv1.Job)
- func CreateResourcesFromYAML(vanClient *client.VanClient, fileOrUrl string) error
- func CreateTestJob(ns string, kubeClient kubernetes.Interface, name string, command []string) (*batchv1.Job, error)
- func CreateTestJobWithSecret(ns string, kubeClient kubernetes.Interface, name string, command []string, ...) (*batchv1.Job, error)
- func DeleteNamespaceAndWait(kubeClient kubernetes.Interface, name string) error
- func Execute(kubeClient kubernetes.Interface, config *rest.Config, ns string, ...) (bytes.Buffer, bytes.Buffer, error)
- func GetJobLogs(ns string, kubeClient kubernetes.Interface, name string) (string, error)
- func GetTestImage() string
- func NewDeployment(name, namespace string, opts DeploymentOpts) (*v1.Deployment, error)
- func NewJob(name, namespace string, opts JobOpts) *batchv1.Job
- func WaitForJob(ns string, kubeClient kubernetes.Interface, jobName string, ...) (*batchv1.Job, error)
- func WaitForServiceToBeAvailable(ns string, kubeClient kubernetes.Interface, name string, timeout time.Duration) (service *apiv1.Service, err error)
- func WaitForServiceToBeAvailableDefaultTimeout(ns string, kubeClient kubernetes.Interface, name string) (service *apiv1.Service, err error)
- func WaitForServiceToBeCreated(ns string, kubeClient kubernetes.Interface, name string, ...) (*apiv1.Service, error)
- func WaitForServiceToBeCreatedAndReadyToUse(ns string, kubeClient kubernetes.Interface, serviceName string, ...) (*apiv1.Service, error)
- func WaitForSkupperServiceToBeCreatedAndReadyToUse(ns string, kubeClient kubernetes.Interface, serviceName string) (*apiv1.Service, error)
- type DeploymentOpts
- type JobOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSecretVolume ¶
func CreateResourcesFromYAML ¶
CreateResourcesFromYAML creates all resources from the provided YAML file or URL using an initialized VanClient instance.
func CreateTestJob ¶
func CreateTestJobWithSecret ¶
func DeleteNamespaceAndWait ¶
func DeleteNamespaceAndWait(kubeClient kubernetes.Interface, name string) error
func Execute ¶
func Execute(kubeClient kubernetes.Interface, config *rest.Config, ns string, pod, container string, command []string) (bytes.Buffer, bytes.Buffer, error)
Execute helps executing commands on a given pod, using the k8s rest api returning stdout, stderr, err This function is nil safe and so stdout and stderr are always returned
func GetJobLogs ¶
func GetTestImage ¶
func GetTestImage() string
func NewDeployment ¶
func NewDeployment(name, namespace string, opts DeploymentOpts) (*v1.Deployment, error)