admission

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 PodImages

func PodImages(pod v1.Pod) []string

PodImages returns a list of images in a pod

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

Jump to

Keyboard shortcuts

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