admission

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package admission contains admission control plugins that work with builds or pods that are running builds.

Each admission control plugin has its own sub package. Common utilities live directly in this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildFromPod added in v1.4.0

func GetBuildFromPod(pod *kapi.Pod) (*buildapi.Build, unversioned.GroupVersion, error)

GetBuildFromPod returns a build object encoded in a pod's BUILD environment variable along with its encoding version

func ReadPluginConfig

func ReadPluginConfig(pluginConfig map[string]configapi.AdmissionPluginConfig, name string, config runtime.Object) error

ReadPluginConfig will read a plugin configuration object from a reader stream

func SetBuildInPod added in v1.4.0

func SetBuildInPod(pod *kapi.Pod, build *buildapi.Build, groupVersion unversioned.GroupVersion) error

SetBuildInPod encodes a build object and sets it in a pod's BUILD environment variable

func SetPodLogLevelFromBuild added in v1.4.0

func SetPodLogLevelFromBuild(pod *kapi.Pod, build *buildapi.Build) error

SetPodLogLevelFromBuild extracts BUILD_LOGLEVEL from the Build environment and feeds it as an argument to the Pod's entrypoint. The BUILD_LOGLEVEL environment variable may have been set in multiple ways: a default value, by a BuildConfig, or by the BuildDefaults admission plugin. In this method we finally act on the value by injecting it into the Pod.

Types

This section is empty.

Directories

Path Synopsis
Package defaults contains the BuildDefaults admission control plugin.
Package defaults contains the BuildDefaults admission control plugin.
api
Package api is the internal version of the API.
Package api is the internal version of the API.
Package overrides contains the BuildOverrides admission control plugin.
Package overrides contains the BuildOverrides admission control plugin.
api
Package api is the internal version of the API.
Package api is the internal version of the API.

Jump to

Keyboard shortcuts

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