e2e

package
v1.0.10-0...-ca1957b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const AgentCustomResourceName string = "instana-agent"
View Source
const AgentDaemonSetName string = "instana-agent"
View Source
const InstanaAgentConfigSecretName string = "instana-agent-config"
View Source
const InstanaNamespace string = "instana-agent"
View Source
const InstanaOperatorDeploymentName string = "controller-manager"
View Source
const K8sensorDeploymentName string = "instana-agent-k8sensor"

Variables

This section is empty.

Functions

func AdjustOcpPermissionsIfNecessary

func AdjustOcpPermissionsIfNecessary() env.Func

On OpenShift we need to ensure the instana-agent service account gets permission to the privilged security context This action is only necessary once per OCP cluster as it is not tight to a namespace, but to a cluster

func DeleteAgentCRIfPresent

func DeleteAgentCRIfPresent() env.Func

func DeployAgentCr

func DeployAgentCr(agent *v1.InstanaAgent) e2etypes.StepFunc

func EnsureAgentNamespaceDeletion

func EnsureAgentNamespaceDeletion() env.Func

DeleteAgentNamespace ensures a proper cleanup of existing instana agent installations. The namespace cannot be just deleted in all scenarios, as finalizers on the agent CR might block the namespace termination

func NewAgentCr

func NewAgentCr(t *testing.T) v1.InstanaAgent

Helper to produce test structs

func SetupOperatorDevBuild

func SetupOperatorDevBuild() e2etypes.StepFunc

Setup functions

func ValidateAgentMultiBackendConfiguration

func ValidateAgentMultiBackendConfiguration() e2etypes.StepFunc

func WaitForAgentDaemonSetToBecomeReady

func WaitForAgentDaemonSetToBecomeReady() e2etypes.StepFunc

func WaitForAgentSuccessfulBackendConnection

func WaitForAgentSuccessfulBackendConnection() e2etypes.StepFunc

func WaitForDeploymentToBecomeReady

func WaitForDeploymentToBecomeReady(name string) e2etypes.StepFunc

Assess functions

Types

type ContainerRegistry

type ContainerRegistry struct {
	Name     string
	User     string
	Host     string
	Password string
}

type InstanaBackend

type InstanaBackend struct {
	EndpointHost string
	EndpointPort int
	AgentKey     string
}

type InstanaTestConfig

type InstanaTestConfig struct {
	ContainerRegistry *ContainerRegistry
	InstanaBackend    *InstanaBackend
	OperatorImage     *OperatorImage
}
var InstanaTestCfg InstanaTestConfig

type OperatorImage

type OperatorImage struct {
	Name string
	Tag  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL