Documentation
¶
Index ¶
- Constants
- func CollectPodLogs(c *Clients, podName, namespace string, logf logging.FormatLogger)
- func CreateNamespace(namespace string, kubeClient *knativetest.KubeClient)
- func CreateServiceAccountSecret(c *knativetest.KubeClient, namespace string, secretName string) (bool, error)
- func DeleteNamespace(namespace string, cs *Clients)
- func Header(logf logging.FormatLogger, text string)
- func TearDown(t *testing.T, cs *Clients, namespace string)
- func VerifyServiceAccountExistence(namespace string, kubeClient *knativetest.KubeClient)
- func VerifyServiceAccountExistenceForSecrets(namespace string, kubeClient *knativetest.KubeClient, sa string)
- type Clients
- type Test
Constants ¶
View Source
const ( Interval = 1 * time.Second Apitimeout = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func CollectPodLogs ¶
func CollectPodLogs(c *Clients, podName, namespace string, logf logging.FormatLogger)
CollectPodLogs will get the logs for all containers in a Pod
func CreateNamespace ¶
func CreateNamespace(namespace string, kubeClient *knativetest.KubeClient)
func CreateServiceAccountSecret ¶
func CreateServiceAccountSecret(c *knativetest.KubeClient, namespace string, secretName string) (bool, error)
Create Service Account
func DeleteNamespace ¶
func Header ¶
func Header(logf logging.FormatLogger, text string)
func VerifyServiceAccountExistence ¶
func VerifyServiceAccountExistence(namespace string, kubeClient *knativetest.KubeClient)
func VerifyServiceAccountExistenceForSecrets ¶
func VerifyServiceAccountExistenceForSecrets(namespace string, kubeClient *knativetest.KubeClient, sa string)
Types ¶
type Clients ¶
type Clients struct {
KubeClient *knativetest.KubeClient
PipelineClient v1alpha1.PipelineInterface
TaskClient v1alpha1.TaskInterface
ClusterTaskClient v1alpha1.ClusterTaskInterface
TaskRunClient v1alpha1.TaskRunInterface
PipelineRunClient v1alpha1.PipelineRunInterface
PipelineResourceClient resourcev1alpha1.PipelineResourceInterface
ConditionClient v1alpha1.ConditionInterface
}
clients holds instances of interfaces for making requests to the Pipeline controllers.
func NewClients ¶
newClients instantiates and returns several clientsets required for making requests to the Pipeline cluster specified by the combination of clusterName and configPath. Clients can make requests within namespace.
Click to show internal directories.
Click to hide internal directories.