Documentation ¶
Index ¶
- func AddCapabilities(a CapabilityPolicy) *v1.SecurityContext
- func CreateBasePod(client clientset.Interface, name string, namespace string, c ContainerPolicy, ...) (*v1.Pod, error)
- func CreatePodinfoPod(client clientset.Interface, namespace string) (*v1.Pod, error)
- func DerefString(s *string) string
- func MakeBasePod(name string, ns string, c ContainerPolicy, p PodPolicy) *v1.Pod
- func MakeBasicPodinfoMonitor(name string) *monitoringv1.PodMonitor
- func MakePodInfoPod(ns string, isPrivileged bool) *v1.Pod
- func WaitForPodsRunningReady(c clientset.Interface, ns string, minPods, allowedNotReadyPods int32, ...) error
- type BasicPod
- type CapabilityPolicy
- type CompliantContainer
- type ContainerPolicy
- type ImagePolicy
- type LivenessProbePolicy
- type PodPolicy
- type PrivilegedModePolicy
- type ReadynessProbePolicy
- type ResourcePolicy
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 ¶
CreatePodinfoPod creates an podinfo pod.
func MakeBasePod ¶
MakeBasePod ...
func MakeBasicPodinfoMonitor ¶
func MakeBasicPodinfoMonitor(name string) *monitoringv1.PodMonitor
MakeBasicPodinfoMonitor similar to MakeBasicPodMonitor
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 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 PrivilegedModePolicy ¶
type PrivilegedModePolicy struct {
AllowPrivilegeEscalation *bool
}
type ReadynessProbePolicy ¶
type ResourcePolicy ¶
type ResourcePolicy struct {
Resource v1.ResourceRequirements
}
Click to show internal directories.
Click to hide internal directories.