framework

package
v0.0.0-...-8fe1211 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCapabilities

func AddCapabilities(a CapabilityPolicy) *v1.SecurityContext

func CreateBasePod

func CreateBasePod(client clientset.Interface, name string, namespace string, c ContainerPolicy, p PodPolicy) (*v1.Pod, error)

CreateBasePod creates a base pod which we can then add policies to.

func CreatePodinfoPod

func CreatePodinfoPod(client clientset.Interface, namespace string) (*v1.Pod, error)

CreatePodinfoPod creates an podinfo pod.

func DerefString

func DerefString(s *string) string

DerefString convert string pointer to string

func MakeBasePod

func MakeBasePod(name string, ns string, c ContainerPolicy, p PodPolicy) *v1.Pod

MakeBasePod ...

func MakeBasicPodinfoMonitor

func MakeBasicPodinfoMonitor(name string) *monitoringv1.PodMonitor

MakeBasicPodinfoMonitor similar to MakeBasicPodMonitor

func MakePodInfoPod

func MakePodInfoPod(ns string, isPrivileged bool) *v1.Pod

MakePodInfoPod ...

func WaitForPodsRunningReady

func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedNotReadyPods int32, timeout time.Duration, ignoreLabels map[string]string) error

WaitForPodsRunningReady : copied from "k8s.io/kubernetes/test/e2e/framework/pod/wait.go" but refactored to also include statefulsets plus fixed bug with ignoreSelector as upstream uses empty set whihc messes up for loop below..

Types

type BasicPod

type BasicPod struct{}

type CapabilityPolicy

type CapabilityPolicy struct {
	Capability []v1.Capability
}

type CompliantContainer

type CompliantContainer struct{}

type ContainerPolicy

type ContainerPolicy interface {
	// contains filtered or unexported methods
}

type ImagePolicy

type ImagePolicy struct {
	ImageUrl string
}

type LivenessProbePolicy

type LivenessProbePolicy struct {
	LivenessProbe *v1.Probe
}

type PodPolicy

type PodPolicy interface {
	// contains filtered or unexported methods
}

type PrivilegedModePolicy

type PrivilegedModePolicy struct {
	AllowPrivilegeEscalation *bool
}

type ReadynessProbePolicy

type ReadynessProbePolicy struct {
	ReadynessProbe *v1.Probe
}

type ResourcePolicy

type ResourcePolicy struct {
	Resource v1.ResourceRequirements
}

Jump to

Keyboard shortcuts

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