Documentation
¶
Index ¶
- func ExecInPod(t *testing.T, f *framework.Framework, namespace string, pod string, ...) (string, string, error)
- func FindPodsByLabels(t *testing.T, client framework.FrameworkClient, namespace string, ...) (*corev1.PodList, error)
- func NewDatadogAgent(ns, name, image string, options *NewDatadogAgentOptions) *datadoghqv1alpha1.DatadogAgent
- func UpdateDatadogAgentFunc(f *framework.Framework, namespace, name string, ...) error
- func WaitForExecInPod(t *testing.T, f *framework.Framework, namespace string, pod string, ...) error
- func WaitForFuncOnClusterAgentDeployment(t *testing.T, client framework.FrameworkClient, namespace, name string, ...) error
- func WaitForFuncOnDaemonSet(t *testing.T, client framework.FrameworkClient, namespace, name string, ...) error
- func WaitForFuncOnDatadogAgent(t *testing.T, client framework.FrameworkClient, namespace, name string, ...) error
- func WaitForFuncOnExtendedDaemonSet(t *testing.T, client framework.FrameworkClient, namespace, name string, ...) error
- func WaitForFuncOnPods(t *testing.T, client framework.FrameworkClient, namespace string, ...) error
- type ExecValidationFunc
- type NewDatadogAgentOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecInPod ¶
func ExecInPod(t *testing.T, f *framework.Framework, namespace string, pod string, container string, command []string) (string, string, error)
ExecInPod executes a command in a running ready pod and returns its stdout and stderr outputs
func FindPodsByLabels ¶
func FindPodsByLabels(t *testing.T, client framework.FrameworkClient, namespace string, labelSelector string) (*corev1.PodList, error)
FindPodsByLabels looks up pods in a namespace using a label selector
func NewDatadogAgent ¶
func NewDatadogAgent(ns, name, image string, options *NewDatadogAgentOptions) *datadoghqv1alpha1.DatadogAgent
NewDatadogAgent returns new DatadogAgent instance with is config hash
func UpdateDatadogAgentFunc ¶
func UpdateDatadogAgentFunc(f *framework.Framework, namespace, name string, updateFunc func(ad *datadoghqv1alpha1.DatadogAgent), retryInterval, timeout time.Duration) error
UpdateDatadogAgentFunc used to update a DatadogAgent with retry and timeout policy
func WaitForExecInPod ¶
func WaitForExecInPod(t *testing.T, f *framework.Framework, namespace string, pod string, container string, command []string, validate ExecValidationFunc, retryInterval, timeout time.Duration) error
WaitForExecInPod is used to wait for a condition based on execution of a command in a running pod
func WaitForFuncOnClusterAgentDeployment ¶
func WaitForFuncOnClusterAgentDeployment(t *testing.T, client framework.FrameworkClient, namespace, name string, f func(dca *appsv1.Deployment) (bool, error), retryInterval, timeout time.Duration) error
WaitForFuncOnClusterAgentDeployment used to wait a valid condition on a Cluster Agent Deployment
func WaitForFuncOnDaemonSet ¶
func WaitForFuncOnDaemonSet(t *testing.T, client framework.FrameworkClient, namespace, name string, f func(ds *appsv1.DaemonSet) (bool, error), retryInterval, timeout time.Duration) error
WaitForFuncOnDaemonSet used to wait a valid condition on a Daemonset
func WaitForFuncOnDatadogAgent ¶
func WaitForFuncOnDatadogAgent(t *testing.T, client framework.FrameworkClient, namespace, name string, f func(ad *datadoghqv1alpha1.DatadogAgent) (bool, error), retryInterval, timeout time.Duration) error
WaitForFuncOnDatadogAgent used to wait a valid condition on a DatadogAgent
func WaitForFuncOnExtendedDaemonSet ¶
func WaitForFuncOnExtendedDaemonSet(t *testing.T, client framework.FrameworkClient, namespace, name string, f func(eds *edsdatadoghqv1alpha1.ExtendedDaemonSet) (bool, error), retryInterval, timeout time.Duration) error
WaitForFuncOnExtendedDaemonSet used to wait a valid condition on a ExtendedDaemonSet
Types ¶
type ExecValidationFunc ¶
ExecValidationFunc checks results of a command execution in a running pod