Documentation ¶
Index ¶
- func GetBuildFromPod(pod *corev1.Pod) (*buildv1.Build, error)
- func HandleBuildPruning(buildConfigName string, namespace string, buildLister buildlister.BuildLister, ...) error
- func HasBuildPodNameAnnotation(build *buildv1.Build) bool
- func ResolveValueFrom(pod *corev1.Pod, client kubernetes.Interface) error
- func SetBuildInPod(pod *corev1.Pod, build *buildv1.Build) error
- func SetBuildPodNameAnnotation(build *buildv1.Build, podName string)
- type ByCreationTimestamp
- type ErrEnvVarResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuildFromPod ¶
GetBuildFromPod returns a build object encoded in a pod's BUILD environment variable along with its encoding version
func HandleBuildPruning ¶
func HandleBuildPruning(buildConfigName string, namespace string, buildLister buildlister.BuildLister, buildConfigGetter buildlister.BuildConfigLister, buildDeleter buildclient.BuildDeleter) error
HandleBuildPruning handles the deletion of old successful and failed builds based on settings in the BuildConfig.
func ResolveValueFrom ¶
func ResolveValueFrom(pod *corev1.Pod, client kubernetes.Interface) error
ResolveValueFrom resolves valueFrom references in build environment variables including references to existing environment variables, jsonpath references to the build object, secrets, and configmaps. The build.Strategy.BuildStrategy.Env is replaced with the resolved references.
func SetBuildInPod ¶
SetBuildInPod encodes a build object and sets it in a pod's BUILD environment variable
Types ¶
type ByCreationTimestamp ¶
func (ByCreationTimestamp) Len ¶
func (b ByCreationTimestamp) Len() int
func (ByCreationTimestamp) Less ¶
func (b ByCreationTimestamp) Less(i, j int) bool
func (ByCreationTimestamp) Swap ¶
func (b ByCreationTimestamp) Swap(i, j int)
type ErrEnvVarResolver ¶
type ErrEnvVarResolver struct {
// contains filtered or unexported fields
}
ErrEnvVarResolver is an error type for build environment resolution errors
func (ErrEnvVarResolver) Error ¶
func (e ErrEnvVarResolver) Error() string
Error returns a string representation of the error