Documentation
¶
Index ¶
- Constants
- func DestroyResources(env *environment.MetaData) error
- func GetPodList(t *testing.T, clientset *kubernetes.Clientset, namespace string, name string) v1.PodList
- func InitializeEnvironment(env *environment.MetaData) error
- func PodLevelValuesHelmValues() map[string]utils.HelmValue
- func ValidateMetrics(t *testing.T, metrics []string, namespace string)
- func VerifyAgentResources(t *testing.T, clientset *kubernetes.Clientset, configKeyword string)
- func VerifyMetricAboveZero(t *testing.T, metricName string, namespace string)
- func VerifyPodEnvironment(t *testing.T, clientset *kubernetes.Clientset, deploymentName string, ...)
- func VerifyPodLevelValues(t *testing.T, clientset *kubernetes.Clientset, env *environment.MetaData)
Constants ¶
View Source
const ( // PodLevelTestLabelKey/Value are attached to every supported workload's pods. PodLevelTestLabelKey = "e2e-pod-level-values" PodLevelTestLabelValue = "true" // PodLevelTestAnnotationKey/Value are attached to every supported workload's pods. PodLevelTestAnnotationKey = "e2e.amazonaws.com/pod-level-values" PodLevelTestAnnotationValue = "plumbing-check" // PodLevelTestPriorityClass is applied to workloads without a // component-level priorityClassName override (operator; NOT the agent or // fluent-bit, which default to system-node-critical). PodLevelTestPriorityClass = "system-cluster-critical" )
View Source
const ( Wait = 8 * time.Minute WaitForResourceCreation = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func DestroyResources ¶
func DestroyResources(env *environment.MetaData) error
func GetPodList ¶
func InitializeEnvironment ¶
func InitializeEnvironment(env *environment.MetaData) error
func PodLevelValuesHelmValues ¶
PodLevelValuesHelmValues returns the helm --set values that install the pod-level configuration exercised by VerifyPodLevelValues.
func VerifyAgentResources ¶
func VerifyAgentResources(t *testing.T, clientset *kubernetes.Clientset, configKeyword string)
func VerifyMetricAboveZero ¶
func VerifyPodEnvironment ¶
func VerifyPodLevelValues ¶
func VerifyPodLevelValues(t *testing.T, clientset *kubernetes.Clientset, env *environment.MetaData)
VerifyPodLevelValues asserts the pod-level values installed by applyHelmResources were plumbed through the chart into the workloads. Only the HELM_CHART installation type is verified: the EKS addon schema does not expose these fields yet (tracked as a follow-up), so the addon path skips.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.