resources

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Overview

Package resources provides methods to convert a Build CRD to a k8s Pod resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStatusFromPod

func BuildStatusFromPod(p *corev1.Pod, buildSpec v1alpha1.BuildSpec) v1alpha1.BuildStatus

BuildStatusFromPod returns a BuildStatus based on the Pod and the original BuildSpec.

func GetUniquePodName added in v0.4.0

func GetUniquePodName(name string) (string, error)

GetUniquePodName returns a unique name based on the build's name.

func MakePod

func MakePod(build *v1alpha1.Build, kubeclient kubernetes.Interface) (*corev1.Pod, error)

MakePod converts a Build object to a Pod which implements the build specified by the supplied CRD.

Types

This section is empty.

Jump to

Keyboard shortcuts

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