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 GetBuildFromPod(pod *v1.Pod) (*buildapi.Build, schema.GroupVersion, error)
- func ReadPluginConfig(pluginConfig map[string]configapi.AdmissionPluginConfig, name string, ...) error
- func SetBuildInPod(pod *v1.Pod, build *buildapi.Build, groupVersion schema.GroupVersion) error
- func SetPodLogLevelFromBuild(pod *v1.Pod, build *buildapi.Build) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuildFromPod ¶ added in v1.4.0
GetBuildFromPod returns a build object encoded in a pod's BUILD environment variable along with its encoding version
func ReadPluginConfig ¶ added in v1.1.2
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
SetBuildInPod encodes a build object and sets it in a pod's BUILD environment variable
func SetPodLogLevelFromBuild ¶ added in v1.4.0
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 testing contains types for tests.
|
Package testing contains types for tests. |