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 ¶
- func GetBuild(a admission.Attributes) (*buildapi.Build, unversioned.GroupVersion, error)
- func GetPod(a admission.Attributes) (*kapi.Pod, error)
- func IsBuildPod(a admission.Attributes) bool
- func ReadPluginConfig(reader io.Reader, config runtime.Object) error
- func SetBuild(a admission.Attributes, build *buildapi.Build, ...) error
- func SetBuildLogLevel(attributes admission.Attributes, build *buildapi.Build) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuild ¶ added in v1.1.2
func GetBuild(a admission.Attributes) (*buildapi.Build, unversioned.GroupVersion, error)
GetBuild returns a build object encoded in a pod's BUILD environment variable along with its encoding version
func GetPod ¶ added in v1.1.2
func GetPod(a admission.Attributes) (*kapi.Pod, error)
GetPod returns a pod from an admission attributes object
func IsBuildPod ¶ added in v1.1.2
func IsBuildPod(a admission.Attributes) bool
IsBuildPod returns true if a pod is a pod generated for a Build
func ReadPluginConfig ¶ added in v1.1.2
ReadPluginConfig will read a plugin configuration object from a reader stream
func SetBuild ¶ added in v1.1.2
func SetBuild(a admission.Attributes, build *buildapi.Build, groupVersion unversioned.GroupVersion) error
SetBuild encodes a build object and sets it in a pod's BUILD environment variable
func SetBuildLogLevel ¶ added in v1.3.0
func SetBuildLogLevel(attributes admission.Attributes, build *buildapi.Build) error
SetBuildLogLevel 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. |