Documentation ¶
Overview ¶
Package defaults contains the BuildDefaults admission control plugin.
The plugin allows setting default values for build setings like the git HTTP and HTTPS proxy URLs and additional environment variables for the build strategy
Configuration ¶
Configuration is done via a BuildDefaultsConfig object:
apiVersion: v1 kind: BuildDefaultsConfiguration gitHTTPProxy: http://my.proxy.server:12345 gitHTTPSProxy: https://my.proxy.server:7890 env: - name: ENV_VAR1 value: VALUE1 - name: ENV_VAR2 value: VALUE2
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SchemeGroupVersion = unversioned.GroupVersion{Group: "", Version: ""}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶
func Kind(kind string) unversioned.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func NewBuildDefaults ¶
func NewBuildDefaults(defaultsConfig *BuildDefaultsConfig) admission.Interface
NewBuildDefaults returns an admission control for builds that sets build defaults based on the plugin configuration
func Resource ¶
func Resource(resource string) unversioned.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
func ValidateBuildDefaultsConfig ¶
func ValidateBuildDefaultsConfig(config *BuildDefaultsConfig) field.ErrorList
ValidateBuild tests required fields for a Build.
Types ¶
type BuildDefaultsConfig ¶
type BuildDefaultsConfig struct { unversioned.TypeMeta // GitHTTPProxy is the location of the HTTPProxy for Git source GitHTTPProxy string // GitHTTPSProxy is the location of the HTTPSProxy for Git source GitHTTPSProxy string // Env is a set of default environment variables that will be applied to the // build if the specified variables do not exist on the build Env []kapi.EnvVar }
BuildDefaultsConfig controls the default information for Builds
func (*BuildDefaultsConfig) IsAnAPIObject ¶
func (*BuildDefaultsConfig) IsAnAPIObject()