Documentation ¶
Index ¶
- Constants
- func DeploymentImages(deployment appsv1.Deployment) []string
- func MetadataClient(config *Config) (metadata.ReadWriteClient, error)
- func MetadataReadOnlyClient(config *Config) (metadata.ReadOnlyClient, error)
- func PodImages(pod v1.Pod) []string
- func ReplicaSetImages(rs appsv1.ReplicaSet) []string
- func ReviewHandler(w http.ResponseWriter, r *http.Request, config *Config)
- type Config
- type Status
Constants ¶
View Source
const ( Pod = "Pod" ReplicaSet = "ReplicaSet" Deployment = "Deployment" )
A list of all Kubernetes objects kritis can validate
Variables ¶
This section is empty.
Functions ¶
func DeploymentImages ¶
func DeploymentImages(deployment appsv1.Deployment) []string
DeploymentImages returns a list of images in a deployment
func MetadataClient ¶
func MetadataClient(config *Config) (metadata.ReadWriteClient, error)
MetadataClient returns metadata.ReadWriteClient based on the admission control config
func MetadataReadOnlyClient ¶ added in v0.2.1
func MetadataReadOnlyClient(config *Config) (metadata.ReadOnlyClient, error)
MetadataReadOnlyClient returns metadata.ReadOnlyClient based on the admission control config
func ReplicaSetImages ¶
func ReplicaSetImages(rs appsv1.ReplicaSet) []string
ReplicaSetImages returns a list of images in a replica set
func ReviewHandler ¶
func ReviewHandler(w http.ResponseWriter, r *http.Request, config *Config)
Types ¶
type Config ¶
type Config struct { Metadata string // Metadata is the name of the metadata client fetcher Grafeas kritis.GrafeasConfigSpec Certs *grafeas.CertConfig }
Config is the metadata client configuration
type Status ¶
type Status string
Define constants for metav1.Status.Status See https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/devel/api-conventions.md#response-status-kind
Click to show internal directories.
Click to hide internal directories.