Documentation ¶
Index ¶
- func CreateCollectorObjects(t *testing.T, client *K8sClient, testID string, manifestsDir string) []*unstructured.Unstructured
- func CreateObject(client *K8sClient, manifest []byte) (*unstructured.Unstructured, error)
- func CreateObjects(client *K8sClient, dir string) ([]*unstructured.Unstructured, error)
- func DeleteObject(client *K8sClient, obj *unstructured.Unstructured) error
- func DeleteObjects(client *K8sClient, objs []*unstructured.Unstructured) error
- func HostEndpoint(t *testing.T) string
- func SelectorFromMap(labelMap map[string]any) labels.Selector
- func WaitForCollectorToStart(t *testing.T, client *K8sClient, podNamespace string, podLabels map[string]any)
- func WaitForTelemetryGenToStart(t *testing.T, client *K8sClient, podNamespace string, podLabels map[string]any, ...)
- type K8sClient
- type TelemetrygenCreateOpts
- type TelemetrygenObjInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCollectorObjects ¶
func CreateCollectorObjects(t *testing.T, client *K8sClient, testID string, manifestsDir string) []*unstructured.Unstructured
func CreateObject ¶
func CreateObject(client *K8sClient, manifest []byte) (*unstructured.Unstructured, error)
func CreateObjects ¶ added in v0.113.0
func CreateObjects(client *K8sClient, dir string) ([]*unstructured.Unstructured, error)
func DeleteObject ¶
func DeleteObject(client *K8sClient, obj *unstructured.Unstructured) error
func DeleteObjects ¶ added in v0.113.0
func DeleteObjects(client *K8sClient, objs []*unstructured.Unstructured) error
func HostEndpoint ¶
func WaitForCollectorToStart ¶
Types ¶
type K8sClient ¶ added in v0.97.0
type K8sClient struct { DynamicClient *dynamic.DynamicClient DiscoveryClient *discovery.DiscoveryClient Mapper *restmapper.DeferredDiscoveryRESTMapper }
func NewK8sClient ¶ added in v0.97.0
type TelemetrygenCreateOpts ¶ added in v0.97.0
type TelemetrygenObjInfo ¶
type TelemetrygenObjInfo struct { Namespace string PodLabelSelectors map[string]any DataType string Workload string }
func CreateTelemetryGenObjects ¶
func CreateTelemetryGenObjects(t *testing.T, client *K8sClient, createOpts *TelemetrygenCreateOpts) ([]*unstructured.Unstructured, []*TelemetrygenObjInfo)
Click to show internal directories.
Click to hide internal directories.