Documentation ¶
Index ¶
- func AllInOneSmokeTest(jaegerInstanceName string)
- func CreateEsPortForward(esNamespace string) (portForwES *portforward.PortForwarder, closeChanES chan struct{}, ...)
- func CreatePortForward(namespace, podNamePrefix, containsImage string, ports []string, ...) (*portforward.PortForwarder, chan struct{})
- func DeleteEsIndices(esNamespace string)
- func ExecuteEsRequest(esNamespace, httpMethod, api string) ([]byte, error)
- func GetJaegerSelfProvSimpleProdCR(instanceName, namespace string, nodeCount int32) *v1.Jaeger
- func GetJaegerSimpleProdWithServerUrlsCR(name, esServerUrls string) *v1.Jaeger
- func GetPod(namespace, namePrefix, containsImage string, kubeclient kubernetes.Interface) corev1.Pod
- func ProductionSmokeTest(resourceName string)
- func ProductionSmokeTestWithNamespace(resourceName, smokeTestNamespace string)
- func WaitAndPollForHTTPResponse(targetURL string, condition ValidateHTTPResponseFunc) (err error)
- func WaitForCronJob(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- func WaitForDaemonSet(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- func WaitForDeployment(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- func WaitForHTTPResponse(httpClient http.Client, method, url string, response interface{}) (err error)
- func WaitForIngress(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) (*networkingv1.Ingress, error)
- func WaitForJob(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- func WaitForJobOfAnOwner(t *testing.T, kubeclient kubernetes.Interface, namespace, ownerName string, ...) error
- func WaitForSecret(secretName, secretNamespace string)
- func WaitForStatefulset(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- type EsIndex
- type ValidateHTTPResponseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllInOneSmokeTest ¶ added in v1.14.0
func AllInOneSmokeTest(jaegerInstanceName string)
AllInOneSmokeTest is for the all-in-one image, where query and collector use the same pod
func CreateEsPortForward ¶ added in v1.21.3
func CreateEsPortForward(esNamespace string) (portForwES *portforward.PortForwarder, closeChanES chan struct{}, esPort string)
CreateEsPortForward creates local port forwarding
func CreatePortForward ¶ added in v1.9.0
func CreatePortForward(namespace, podNamePrefix, containsImage string, ports []string, kConfig *rest.Config) (*portforward.PortForwarder, chan struct{})
CreatePortForward listens for local connections and forwards them to a remote pod
func DeleteEsIndices ¶ added in v1.21.3
func DeleteEsIndices(esNamespace string)
DeleteEsIndices deletes all the indices on es node
func ExecuteEsRequest ¶ added in v1.21.3
ExecuteEsRequest executes rest api request on es node
func GetJaegerSelfProvSimpleProdCR ¶ added in v1.21.3
GetJaegerSelfProvSimpleProdCR returns self provisioned production simple CR
func GetJaegerSimpleProdWithServerUrlsCR ¶ added in v1.21.3
GetJaegerSimpleProdWithServerUrlsCR returns simple production CR with external es server urls
func GetPod ¶ added in v1.9.0
func GetPod(namespace, namePrefix, containsImage string, kubeclient kubernetes.Interface) corev1.Pod
GetPod returns pod name
func ProductionSmokeTest ¶ added in v1.14.0
func ProductionSmokeTest(resourceName string)
ProductionSmokeTest should be used if query and collector are in separate pods
func ProductionSmokeTestWithNamespace ¶ added in v1.15.0
func ProductionSmokeTestWithNamespace(resourceName, smokeTestNamespace string)
ProductionSmokeTestWithNamespace is the same as ProductionSmokeTest but for when you can't use the default namespace
func WaitAndPollForHTTPResponse ¶ added in v1.14.0
func WaitAndPollForHTTPResponse(targetURL string, condition ValidateHTTPResponseFunc) (err error)
WaitAndPollForHTTPResponse will try the targetURL until it gets the desired response or times out
func WaitForCronJob ¶ added in v1.9.0
func WaitForCronJob(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, retryInterval, timeout time.Duration) error
WaitForCronJob checks to see if a given cron job scheduled a job See #WaitForDeployment for the full semantics
func WaitForDaemonSet ¶ added in v1.8.0
func WaitForDaemonSet(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, retryInterval, timeout time.Duration) error
WaitForDaemonSet checks to see if a given daemonset has the desired number of instances available after a specified amount of time See #WaitForDeployment for the full semantics
func WaitForDeployment ¶ added in v1.15.0
func WaitForDeployment(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, replicas int, retryInterval, timeout time.Duration) error
WaitForDeployment waits for a deployment to finish and reports how long the operation took
func WaitForHTTPResponse ¶ added in v1.28.0
func WaitForHTTPResponse(httpClient http.Client, method, url string, response interface{}) (err error)
WaitForHTTPResponse waits for an HTTP valid response
func WaitForIngress ¶ added in v1.8.0
func WaitForIngress(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, retryInterval, timeout time.Duration) (*networkingv1.Ingress, error)
WaitForIngress checks to see if a given ingress' load balancer is ready after a specified amount of time See #WaitForDeployment for the full semantics
func WaitForJob ¶ added in v1.8.0
func WaitForJob(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, retryInterval, timeout time.Duration) error
WaitForJob checks to see if a given job has completed successfully See #WaitForDeployment for the full semantics
func WaitForJobOfAnOwner ¶ added in v1.9.0
func WaitForJobOfAnOwner(t *testing.T, kubeclient kubernetes.Interface, namespace, ownerName string, retryInterval, timeout time.Duration) error
WaitForJobOfAnOwner checks to see if a given job has completed successfully See #WaitForDeployment for the full semantics
func WaitForSecret ¶ added in v1.15.0
func WaitForSecret(secretName, secretNamespace string)
WaitForSecret waits for a secret to be available
func WaitForStatefulset ¶
func WaitForStatefulset(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, retryInterval, timeout time.Duration) error
WaitForStatefulset checks to see if a given statefulset has the desired number of replicas available after a specified amount of time See #WaitForDeployment for the full semantics
Types ¶
type EsIndex ¶ added in v1.21.3
type EsIndex struct { UUID string `json:"uuid"` Status string `json:"status"` Index string `json:"index"` Health string `json:"health"` DocsCount string `json:"docs.count"` DocsDeleted string `json:"docs.deleted"` StoreSize string `json:"store.size"` }
EsIndex struct to map indices data from es rest api response es api: /_cat/indices?format=json
func GetEsIndices ¶ added in v1.21.3
GetEsIndices return indices from es node