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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildDefaults ¶ added in v1.4.0
type BuildDefaults struct {
// contains filtered or unexported fields
}
func NewBuildDefaults ¶
func NewBuildDefaults(pluginConfig map[string]configapi.AdmissionPluginConfig) (BuildDefaults, error)
NewBuildDefaults creates a new BuildDefaults that will apply the defaults specified in the plugin config
func (BuildDefaults) ApplyDefaults ¶ added in v1.4.0
func (b BuildDefaults) ApplyDefaults(pod *kapi.Pod) error
ApplyDefaults applies configured build defaults to a build pod
Directories ¶
Path | Synopsis |
---|---|
Package api is the internal version of the API.
|
Package api is the internal version of the API. |
Click to show internal directories.
Click to hide internal directories.