Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceCache ¶ added in v1.3.0
GetResourceCache returns the cache from the context. Result will return nil when none exists.
func GetResourceName ¶ added in v1.1.1
func GetResourceName(meta metav1.ObjectMeta) (name string)
GetResourceName attempts to get the best name for a resource
Types ¶
type IngressResource ¶
type IngressResource struct { IngressExt extensionsv1beta1.Ingress IngressNet networkingv1beta1.Ingress ResourceName string ResourceKind string }
IngressResource contains the information needed for processing by a Policy
func GetIngressResource ¶
func GetIngressResource(ctx context.Context, ar *admissionv1beta1.AdmissionRequest) *IngressResource
GetIngressResource extracts and IngressResource from an AdmissionRequest
type PodExecResource ¶ added in v1.1.1
PodExecResource contains the information needed for processing by a Policy
func GetPodExecResource ¶ added in v1.1.1
func GetPodExecResource(ctx context.Context, ar *admissionv1beta1.AdmissionRequest) *PodExecResource
GetPodExecResource extracts and PodExecResource from an AdmissionRequest
type PodResource ¶
type PodResource struct { PodSpec corev1.PodSpec PodAnnotations map[string]string ResourceName string ResourceKind string }
PodResource contains the information needed for processing by a Policy
func GetPodResource ¶
func GetPodResource(ctx context.Context, ar *admissionv1beta1.AdmissionRequest) *PodResource
GetPodResource extracts a PodResource from an AdmissionRequest
Click to show internal directories.
Click to hide internal directories.