defaults

package
v0.0.0-...-00984ce Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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

type BuildDefaults struct {
	Config *configapi.BuildDefaultsConfig
}

func (BuildDefaults) ApplyDefaults

func (b BuildDefaults) ApplyDefaults(pod *v1.Pod) error

ApplyDefaults applies configured build defaults to a build pod

Jump to

Keyboard shortcuts

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