v1alpha1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 18 Imported by: 17

Documentation

Index

Constants

View Source
const (
	SecretTemplateName           = "secret-volume-%s"
	SecretPathName               = "/var/build-secrets/%s"
	BuildLabel                   = "build.pivotal.io/build"
	DOCKERSecretAnnotationPrefix = "build.pivotal.io/docker"
	GITSecretAnnotationPrefix    = "build.pivotal.io/git"
)
View Source
const (
	BuildNumberLabel = "image.build.pivotal.io/buildNumber"
	ImageLabel       = "image.build.pivotal.io/image"

	BuildReasonAnnotation = "image.build.pivotal.io/reason"
	BuildReasonConfig     = "CONFIG"
	BuildReasonCommit     = "COMMIT"
	BuildReasonBuildpack  = "BUILDPACK"
	BuildReasonStack      = "STACK"
)
View Source
const (
	BuilderNotFound = "BuilderNotFound"
	BuilderNotReady = "BuilderNotReady"
)
View Source
const ActivePolling = "ActivePolling"
View Source
const BuilderKind = "Builder"
View Source
const ClusterBuilderKind = "ClusterBuilder"
View Source
const ConditionBuilderReady duckv1alpha1.ConditionType = "BuilderReady"

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: build.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Blob added in v0.0.2

type Blob struct {
	URL string `json:"url"`
}

func (*Blob) BuildEnvVars added in v0.0.3

func (b *Blob) BuildEnvVars() []corev1.EnvVar

func (*Blob) DeepCopy added in v0.0.2

func (in *Blob) DeepCopy() *Blob

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Blob.

func (*Blob) DeepCopyInto added in v0.0.2

func (in *Blob) DeepCopyInto(out *Blob)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Blob) ImagePullSecretsVolume added in v0.0.3

func (b *Blob) ImagePullSecretsVolume() corev1.Volume

func (*Blob) Validate added in v0.0.5

func (b *Blob) Validate(context context.Context) *apis.FieldError

type Build

type Build struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BuildSpec   `json:"spec"`
	Status BuildStatus `json:"status"`
}

func (*Build) BuildPod added in v0.0.2

func (b *Build) BuildPod(config BuildPodImages, secrets []corev1.Secret, buildPodBuilderConfig BuildPodBuilderConfig) (*corev1.Pod, error)

func (*Build) BuildRef

func (b *Build) BuildRef() string

func (*Build) BuiltImage

func (b *Build) BuiltImage() string

func (*Build) DeepCopy

func (in *Build) DeepCopy() *Build

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Build.

func (*Build) DeepCopyInto

func (in *Build) DeepCopyInto(out *Build)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Build) DeepCopyObject

func (in *Build) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Build) Finished

func (b *Build) Finished() bool

func (*Build) GetGroupVersionKind

func (*Build) GetGroupVersionKind() schema.GroupVersionKind

func (*Build) ImagePullSecretsVolume added in v0.0.3

func (b *Build) ImagePullSecretsVolume() corev1.Volume

func (*Build) IsFailure

func (b *Build) IsFailure() bool

func (*Build) IsRunning

func (b *Build) IsRunning() bool

func (*Build) IsSuccess

func (b *Build) IsSuccess() bool

func (*Build) MetadataReady

func (b *Build) MetadataReady(pod *corev1.Pod) bool

func (*Build) PodName

func (b *Build) PodName() string

func (*Build) Rebasable added in v0.0.5

func (b *Build) Rebasable(builderStack string) bool

func (*Build) SetDefaults

func (b *Build) SetDefaults(ctx context.Context)

func (*Build) SourceEnvVars added in v0.0.5

func (b *Build) SourceEnvVars() []corev1.EnvVar

func (*Build) Stack

func (b *Build) Stack() string

func (*Build) Tag

func (b *Build) Tag() string

func (*Build) Validate

func (b *Build) Validate(ctx context.Context) *apis.FieldError

type BuildApplier added in v0.0.2

type BuildApplier interface {
	Apply(creator BuildCreator) (ReconciledBuild, error)
}

type BuildBuilderSpec added in v0.0.5

type BuildBuilderSpec struct {
	Image            string                        `json:"image"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"`
}

func (*BuildBuilderSpec) DeepCopy added in v0.0.5

func (in *BuildBuilderSpec) DeepCopy() *BuildBuilderSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildBuilderSpec.

func (*BuildBuilderSpec) DeepCopyInto added in v0.0.5

func (in *BuildBuilderSpec) DeepCopyInto(out *BuildBuilderSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuildBuilderSpec) Validate added in v0.0.5

func (bbs *BuildBuilderSpec) Validate(ctx context.Context) *apis.FieldError

type BuildCreator added in v0.0.2

type BuildCreator interface {
	CreateBuild(*Build) (*Build, error)
}

type BuildList

type BuildList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Build `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*BuildList) DeepCopy

func (in *BuildList) DeepCopy() *BuildList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildList.

func (*BuildList) DeepCopyInto

func (in *BuildList) DeepCopyInto(out *BuildList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuildList) DeepCopyObject

func (in *BuildList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BuildPodBuilderConfig added in v0.0.5

type BuildPodBuilderConfig struct {
	BuilderSpec BuildBuilderSpec
	StackID     string
	RunImage    string
	Uid         int64
	Gid         int64
}

func (*BuildPodBuilderConfig) DeepCopy added in v0.0.5

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildPodBuilderConfig.

func (*BuildPodBuilderConfig) DeepCopyInto added in v0.0.5

func (in *BuildPodBuilderConfig) DeepCopyInto(out *BuildPodBuilderConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuildPodImages added in v0.0.5

type BuildPodImages struct {
	BuildInitImage  string
	CompletionImage string
	RebaseImage     string
}

func (*BuildPodImages) DeepCopy added in v0.0.5

func (in *BuildPodImages) DeepCopy() *BuildPodImages

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildPodImages.

func (*BuildPodImages) DeepCopyInto added in v0.0.5

func (in *BuildPodImages) DeepCopyInto(out *BuildPodImages)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuildSpec

type BuildSpec struct {
	Tags           []string                    `json:"tags"`
	Builder        BuildBuilderSpec            `json:"builder"`
	ServiceAccount string                      `json:"serviceAccount"`
	Source         SourceConfig                `json:"source"`
	CacheName      string                      `json:"cacheName"`
	Env            []corev1.EnvVar             `json:"env"`
	Resources      corev1.ResourceRequirements `json:"resources"`
	LastBuild      LastBuild                   `json:"lastBuild"`
}

func (*BuildSpec) DeepCopy

func (in *BuildSpec) DeepCopy() *BuildSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildSpec.

func (*BuildSpec) DeepCopyInto

func (in *BuildSpec) DeepCopyInto(out *BuildSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuildSpec) Validate

func (bs *BuildSpec) Validate(ctx context.Context) *apis.FieldError

type BuildStack added in v0.0.5

type BuildStack struct {
	RunImage string `json:"runImage"`
	ID       string `json:"id"`
}

func (*BuildStack) DeepCopy added in v0.0.5

func (in *BuildStack) DeepCopy() *BuildStack

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildStack.

func (*BuildStack) DeepCopyInto added in v0.0.5

func (in *BuildStack) DeepCopyInto(out *BuildStack)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuildStatus

type BuildStatus struct {
	duckv1alpha1.Status `json:",inline"`
	BuildMetadata       BuildpackMetadataList   `json:"buildMetadata"`
	Stack               BuildStack              `json:"stack"`
	LatestImage         string                  `json:"latestImage"`
	PodName             string                  `json:"podName"`
	StepStates          []corev1.ContainerState `json:"stepStates,omitempty"`
	StepsCompleted      []string                `json:"stepsCompleted,omitempty"`
}

func (*BuildStatus) DeepCopy

func (in *BuildStatus) DeepCopy() *BuildStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildStatus.

func (*BuildStatus) DeepCopyInto

func (in *BuildStatus) DeepCopyInto(out *BuildStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Builder

type Builder struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BuilderWithSecretsSpec `json:"spec"`
	Status BuilderStatus          `json:"status"`
}

func (*Builder) BuildBuilderSpec added in v0.0.5

func (b *Builder) BuildBuilderSpec() BuildBuilderSpec

func (*Builder) BuildpackMetadata added in v0.0.4

func (b *Builder) BuildpackMetadata() BuildpackMetadataList

func (*Builder) DeepCopy

func (in *Builder) DeepCopy() *Builder

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Builder.

func (*Builder) DeepCopyInto

func (in *Builder) DeepCopyInto(out *Builder)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Builder) DeepCopyObject

func (in *Builder) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Builder) DeepCopyObjectMetaAccessor

func (in *Builder) DeepCopyObjectMetaAccessor() metav1.ObjectMetaAccessor

DeepCopyObjectMetaAccessor is an autogenerated deepcopy function, copying the receiver, creating a new metav1.ObjectMetaAccessor.

func (*Builder) GetGroupVersionKind

func (*Builder) GetGroupVersionKind() schema.GroupVersionKind

func (*Builder) Image added in v0.0.4

func (b *Builder) Image() string

func (*Builder) ImagePullSecrets added in v0.0.5

func (b *Builder) ImagePullSecrets() []v1.LocalObjectReference

func (*Builder) Ready added in v0.0.3

func (b *Builder) Ready() bool

func (*Builder) RunImage added in v0.0.5

func (b *Builder) RunImage() string

func (*Builder) SetDefaults

func (b *Builder) SetDefaults(ctx context.Context)

func (*Builder) Stack added in v0.0.5

func (b *Builder) Stack() string

func (*Builder) Validate

func (b *Builder) Validate(ctx context.Context) *apis.FieldError

type BuilderList

type BuilderList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Builder `json:"items"`
}

func (*BuilderList) DeepCopy

func (in *BuilderList) DeepCopy() *BuilderList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderList.

func (*BuilderList) DeepCopyInto

func (in *BuilderList) DeepCopyInto(out *BuilderList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuilderList) DeepCopyObject

func (in *BuilderList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BuilderResource

type BuilderResource interface {
	metav1.ObjectMetaAccessor
	BuildBuilderSpec() BuildBuilderSpec
	Image() string
	ImagePullSecrets() []v1.LocalObjectReference
	Ready() bool
	BuildpackMetadata() BuildpackMetadataList
	RunImage() string
	Stack() string
}

type BuilderSpec

type BuilderSpec struct {
	Image        string              `json:"image"`
	UpdatePolicy BuilderUpdatePolicy `json:"updatePolicy"`
}

func (*BuilderSpec) DeepCopy

func (in *BuilderSpec) DeepCopy() *BuilderSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderSpec.

func (*BuilderSpec) DeepCopyInto

func (in *BuilderSpec) DeepCopyInto(out *BuilderSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuilderSpec) Validate

func (bs *BuilderSpec) Validate(ctx context.Context) *apis.FieldError

type BuilderStatus

type BuilderStatus struct {
	duckv1alpha1.Status `json:",inline"`
	BuilderMetadata     BuildpackMetadataList `json:"builderMetadata"`
	Stack               BuildStack            `json:"stack"`
	LatestImage         string                `json:"latestImage"`
}

func (*BuilderStatus) DeepCopy

func (in *BuilderStatus) DeepCopy() *BuilderStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderStatus.

func (*BuilderStatus) DeepCopyInto

func (in *BuilderStatus) DeepCopyInto(out *BuilderStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuilderUpdatePolicy added in v0.0.2

type BuilderUpdatePolicy string
const (
	Polling  BuilderUpdatePolicy = "polling"
	External BuilderUpdatePolicy = "external"
)

type BuilderWithSecretsSpec added in v0.0.4

type BuilderWithSecretsSpec struct {
	BuilderSpec      `json:",inline"`
	ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"`
}

func (*BuilderWithSecretsSpec) DeepCopy added in v0.0.4

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderWithSecretsSpec.

func (*BuilderWithSecretsSpec) DeepCopyInto added in v0.0.4

func (in *BuilderWithSecretsSpec) DeepCopyInto(out *BuilderWithSecretsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuildpackMetadata added in v0.0.1

type BuildpackMetadata struct {
	ID      string `json:"key"`
	Version string `json:"version"`
}

func (*BuildpackMetadata) DeepCopy added in v0.0.1

func (in *BuildpackMetadata) DeepCopy() *BuildpackMetadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildpackMetadata.

func (*BuildpackMetadata) DeepCopyInto added in v0.0.1

func (in *BuildpackMetadata) DeepCopyInto(out *BuildpackMetadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuildpackMetadataList added in v0.0.1

type BuildpackMetadataList []BuildpackMetadata

func (BuildpackMetadataList) DeepCopy added in v0.0.2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildpackMetadataList.

func (BuildpackMetadataList) DeepCopyInto added in v0.0.2

func (in BuildpackMetadataList) DeepCopyInto(out *BuildpackMetadataList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (BuildpackMetadataList) Include added in v0.0.1

type ClusterBuilder

type ClusterBuilder struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BuilderSpec   `json:"spec"`
	Status BuilderStatus `json:"status"`
}

func (*ClusterBuilder) BuildBuilderSpec added in v0.0.5

func (c *ClusterBuilder) BuildBuilderSpec() BuildBuilderSpec

func (*ClusterBuilder) BuildpackMetadata added in v0.0.4

func (c *ClusterBuilder) BuildpackMetadata() BuildpackMetadataList

func (*ClusterBuilder) DeepCopy

func (in *ClusterBuilder) DeepCopy() *ClusterBuilder

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBuilder.

func (*ClusterBuilder) DeepCopyInto

func (in *ClusterBuilder) DeepCopyInto(out *ClusterBuilder)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterBuilder) DeepCopyObject

func (in *ClusterBuilder) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterBuilder) DeepCopyObjectMetaAccessor

func (in *ClusterBuilder) DeepCopyObjectMetaAccessor() metav1.ObjectMetaAccessor

DeepCopyObjectMetaAccessor is an autogenerated deepcopy function, copying the receiver, creating a new metav1.ObjectMetaAccessor.

func (*ClusterBuilder) GetGroupVersionKind

func (*ClusterBuilder) GetGroupVersionKind() schema.GroupVersionKind

func (*ClusterBuilder) Image added in v0.0.4

func (c *ClusterBuilder) Image() string

func (*ClusterBuilder) ImagePullSecrets added in v0.0.5

func (c *ClusterBuilder) ImagePullSecrets() []v1.LocalObjectReference

func (*ClusterBuilder) Ready added in v0.0.4

func (c *ClusterBuilder) Ready() bool

func (*ClusterBuilder) Ref added in v0.0.4

func (in *ClusterBuilder) Ref() v1.ObjectReference

func (*ClusterBuilder) RunImage added in v0.0.5

func (c *ClusterBuilder) RunImage() string

func (*ClusterBuilder) SetDefaults

func (b *ClusterBuilder) SetDefaults(ctx context.Context)

func (*ClusterBuilder) Stack added in v0.0.5

func (c *ClusterBuilder) Stack() string

func (*ClusterBuilder) Validate

func (b *ClusterBuilder) Validate(ctx context.Context) *apis.FieldError

type ClusterBuilderList

type ClusterBuilderList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ClusterBuilder `json:"items"`
}

func (*ClusterBuilderList) DeepCopy

func (in *ClusterBuilderList) DeepCopy() *ClusterBuilderList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBuilderList.

func (*ClusterBuilderList) DeepCopyInto

func (in *ClusterBuilderList) DeepCopyInto(out *ClusterBuilderList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterBuilderList) DeepCopyObject

func (in *ClusterBuilderList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type Git added in v0.0.1

type Git struct {
	URL      string `json:"url"`
	Revision string `json:"revision"`
}

func (*Git) BuildEnvVars added in v0.0.3

func (g *Git) BuildEnvVars() []corev1.EnvVar

func (*Git) DeepCopy added in v0.0.1

func (in *Git) DeepCopy() *Git

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Git.

func (*Git) DeepCopyInto added in v0.0.1

func (in *Git) DeepCopyInto(out *Git)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Git) ImagePullSecretsVolume added in v0.0.3

func (in *Git) ImagePullSecretsVolume() corev1.Volume

func (*Git) Validate added in v0.0.5

func (g *Git) Validate(context context.Context) *apis.FieldError

type GitSourceKind added in v0.0.2

type GitSourceKind string
const (
	Unknown GitSourceKind = "Unknown"
	Branch  GitSourceKind = "Branch"
	Tag     GitSourceKind = "Tag"
	Commit  GitSourceKind = "Commit"
)

type Image

type Image struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ImageSpec   `json:"spec"`
	Status ImageStatus `json:"status"`
}

func (*Image) BuildCache

func (im *Image) BuildCache() *corev1.PersistentVolumeClaim

func (*Image) BuilderNotFound

func (im *Image) BuilderNotFound() duckv1alpha1.Conditions

func (*Image) CacheName

func (im *Image) CacheName() string

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Image) DeepCopyObject

func (in *Image) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Image) GetGroupVersionKind

func (*Image) GetGroupVersionKind() schema.GroupVersionKind

func (*Image) NamespacedName

func (i *Image) NamespacedName() types.NamespacedName

func (*Image) NeedCache

func (im *Image) NeedCache() bool

func (*Image) ReconcileBuild added in v0.0.2

func (im *Image) ReconcileBuild(latestBuild *Build, resolver *SourceResolver, builder BuilderResource) (BuildApplier, error)

func (*Image) SetDefaults

func (s *Image) SetDefaults(ctx context.Context)

func (*Image) SourceResolver

func (im *Image) SourceResolver() *SourceResolver

func (*Image) SourceResolverName

func (im *Image) SourceResolverName() string

func (*Image) Validate

func (s *Image) Validate(ctx context.Context) *apis.FieldError

type ImageBuild

type ImageBuild struct {
	Env       []corev1.EnvVar             `json:"env"`
	Resources corev1.ResourceRequirements `json:"resources"`
}

func (*ImageBuild) DeepCopy

func (in *ImageBuild) DeepCopy() *ImageBuild

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuild.

func (*ImageBuild) DeepCopyInto

func (in *ImageBuild) DeepCopyInto(out *ImageBuild)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ImageBuilder added in v0.0.4

type ImageBuilder struct {
	metav1.TypeMeta `json:",inline"`
	Name            string `json:"name"`
}

func (*ImageBuilder) DeepCopy added in v0.0.4

func (in *ImageBuilder) DeepCopy() *ImageBuilder

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder.

func (*ImageBuilder) DeepCopyInto added in v0.0.4

func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ImageBuilder) Validate added in v0.0.5

func (im *ImageBuilder) Validate(context context.Context) *apis.FieldError

type ImageList

type ImageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Image `json:"items"`
}

func (*ImageList) DeepCopy

func (in *ImageList) DeepCopy() *ImageList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.

func (*ImageList) DeepCopyInto

func (in *ImageList) DeepCopyInto(out *ImageList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ImageList) DeepCopyObject

func (in *ImageList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ImageSpec

type ImageSpec struct {
	Tag                      string               `json:"tag"`
	Builder                  ImageBuilder         `json:"builder"`
	ServiceAccount           string               `json:"serviceAccount"`
	Source                   SourceConfig         `json:"source"`
	CacheSize                *resource.Quantity   `json:"cacheSize,omitempty"`
	FailedBuildHistoryLimit  *int64               `json:"failedBuildHistoryLimit"`
	SuccessBuildHistoryLimit *int64               `json:"successBuildHistoryLimit"`
	ImageTaggingStrategy     ImageTaggingStrategy `json:"imageTaggingStrategy"`
	Build                    ImageBuild           `json:"build"`
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ImageSpec) Validate added in v0.0.5

func (is *ImageSpec) Validate(ctx context.Context) *apis.FieldError

type ImageStatus

type ImageStatus struct {
	duckv1alpha1.Status `json:",inline"`
	LatestBuildRef      string `json:"latestBuildRef"`
	LatestImage         string `json:"latestImage"`
	LatestStack         string `json:"latestStack"`
	BuildCounter        int64  `json:"buildCounter"`
	BuildCacheName      string `json:"buildCacheName"`
}

func (*ImageStatus) DeepCopy

func (in *ImageStatus) DeepCopy() *ImageStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageStatus.

func (*ImageStatus) DeepCopyInto

func (in *ImageStatus) DeepCopyInto(out *ImageStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ImageTaggingStrategy added in v0.0.3

type ImageTaggingStrategy string
const (
	None        ImageTaggingStrategy = "None"
	BuildNumber ImageTaggingStrategy = "BuildNumber"
)

type LastBuild

type LastBuild struct {
	Image   string `json:"image"`
	StackID string `json:"stackId"`
}

func (*LastBuild) DeepCopy

func (in *LastBuild) DeepCopy() *LastBuild

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastBuild.

func (*LastBuild) DeepCopyInto

func (in *LastBuild) DeepCopyInto(out *LastBuild)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReconciledBuild added in v0.0.2

type ReconciledBuild struct {
	Build        *Build
	BuildCounter int64
	LatestImage  string
	Conditions   duckv1alpha1.Conditions
}

func (*ReconciledBuild) DeepCopy added in v0.0.2

func (in *ReconciledBuild) DeepCopy() *ReconciledBuild

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconciledBuild.

func (*ReconciledBuild) DeepCopyInto added in v0.0.2

func (in *ReconciledBuild) DeepCopyInto(out *ReconciledBuild)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Registry added in v0.0.3

type Registry struct {
	Image            string                        `json:"image"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"`
}

func (*Registry) BuildEnvVars added in v0.0.3

func (r *Registry) BuildEnvVars() []corev1.EnvVar

func (*Registry) DeepCopy added in v0.0.3

func (in *Registry) DeepCopy() *Registry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Registry.

func (*Registry) DeepCopyInto added in v0.0.3

func (in *Registry) DeepCopyInto(out *Registry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Registry) ImagePullSecretsVolume added in v0.0.3

func (r *Registry) ImagePullSecretsVolume() corev1.Volume

func (*Registry) Validate added in v0.0.5

func (r *Registry) Validate(context context.Context) *apis.FieldError

type ResolvedBlobSource added in v0.0.2

type ResolvedBlobSource struct {
	URL     string `json:"url"`
	SubPath string `json:"subPath,omitempty"`
}

func (*ResolvedBlobSource) ConfigChanged added in v0.0.3

func (bs *ResolvedBlobSource) ConfigChanged(lastBuild *Build) bool

func (*ResolvedBlobSource) DeepCopy added in v0.0.2

func (in *ResolvedBlobSource) DeepCopy() *ResolvedBlobSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedBlobSource.

func (*ResolvedBlobSource) DeepCopyInto added in v0.0.2

func (in *ResolvedBlobSource) DeepCopyInto(out *ResolvedBlobSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResolvedBlobSource) IsPollable added in v0.0.3

func (bs *ResolvedBlobSource) IsPollable() bool

func (*ResolvedBlobSource) IsUnknown added in v0.0.3

func (bs *ResolvedBlobSource) IsUnknown() bool

func (*ResolvedBlobSource) RevisionChanged added in v0.0.3

func (bs *ResolvedBlobSource) RevisionChanged(lastBuild *Build) bool

func (*ResolvedBlobSource) SourceConfig added in v0.0.3

func (bs *ResolvedBlobSource) SourceConfig() SourceConfig

type ResolvedGitSource added in v0.0.2

type ResolvedGitSource struct {
	URL      string        `json:"url"`
	Revision string        `json:"commit"`
	SubPath  string        `json:"subPath,omitempty"`
	Type     GitSourceKind `json:"type"`
}

func (*ResolvedGitSource) ConfigChanged added in v0.0.3

func (gs *ResolvedGitSource) ConfigChanged(lastBuild *Build) bool

func (*ResolvedGitSource) DeepCopy added in v0.0.2

func (in *ResolvedGitSource) DeepCopy() *ResolvedGitSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedGitSource.

func (*ResolvedGitSource) DeepCopyInto added in v0.0.2

func (in *ResolvedGitSource) DeepCopyInto(out *ResolvedGitSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResolvedGitSource) IsPollable added in v0.0.2

func (gs *ResolvedGitSource) IsPollable() bool

func (*ResolvedGitSource) IsUnknown added in v0.0.2

func (gs *ResolvedGitSource) IsUnknown() bool

func (*ResolvedGitSource) RevisionChanged added in v0.0.3

func (gs *ResolvedGitSource) RevisionChanged(lastBuild *Build) bool

func (*ResolvedGitSource) SourceConfig added in v0.0.3

func (gs *ResolvedGitSource) SourceConfig() SourceConfig

type ResolvedRegistrySource added in v0.0.3

type ResolvedRegistrySource struct {
	Image            string                        `json:"image"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"`
	SubPath          string                        `json:"subPath,omitempty"`
}

func (*ResolvedRegistrySource) ConfigChanged added in v0.0.3

func (rs *ResolvedRegistrySource) ConfigChanged(lastBuild *Build) bool

func (*ResolvedRegistrySource) DeepCopy added in v0.0.3

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedRegistrySource.

func (*ResolvedRegistrySource) DeepCopyInto added in v0.0.3

func (in *ResolvedRegistrySource) DeepCopyInto(out *ResolvedRegistrySource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResolvedRegistrySource) IsPollable added in v0.0.3

func (rs *ResolvedRegistrySource) IsPollable() bool

func (*ResolvedRegistrySource) IsUnknown added in v0.0.3

func (rs *ResolvedRegistrySource) IsUnknown() bool

func (*ResolvedRegistrySource) RevisionChanged added in v0.0.3

func (rs *ResolvedRegistrySource) RevisionChanged(lastBuild *Build) bool

func (*ResolvedRegistrySource) SourceConfig added in v0.0.3

func (rs *ResolvedRegistrySource) SourceConfig() SourceConfig

type ResolvedSource added in v0.0.2

type ResolvedSource interface {
	IsUnknown() bool
	IsPollable() bool
	ConfigChanged(lastBuild *Build) bool
	RevisionChanged(lastBuild *Build) bool
	SourceConfig() SourceConfig
}

type ResolvedSourceConfig added in v0.0.3

type ResolvedSourceConfig struct {
	Git      *ResolvedGitSource      `json:"git,omitempty"`
	Blob     *ResolvedBlobSource     `json:"blob,omitempty"`
	Registry *ResolvedRegistrySource `json:"registry,omitempty"`
}

func (*ResolvedSourceConfig) DeepCopy added in v0.0.3

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolvedSourceConfig.

func (*ResolvedSourceConfig) DeepCopyInto added in v0.0.3

func (in *ResolvedSourceConfig) DeepCopyInto(out *ResolvedSourceConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResolvedSourceConfig) ResolvedSource added in v0.0.3

func (sc ResolvedSourceConfig) ResolvedSource() ResolvedSource

type Source added in v0.0.1

type Source interface {
	BuildEnvVars() []corev1.EnvVar
	ImagePullSecretsVolume() corev1.Volume
}

type SourceConfig added in v0.0.3

type SourceConfig struct {
	Git      *Git      `json:"git,omitempty"`
	Blob     *Blob     `json:"blob,omitempty"`
	Registry *Registry `json:"registry,omitempty"`
	SubPath  string    `json:"subPath,omitempty"`
}

func (*SourceConfig) DeepCopy added in v0.0.3

func (in *SourceConfig) DeepCopy() *SourceConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceConfig.

func (*SourceConfig) DeepCopyInto added in v0.0.3

func (in *SourceConfig) DeepCopyInto(out *SourceConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SourceConfig) Source added in v0.0.3

func (sc *SourceConfig) Source() Source

func (*SourceConfig) Validate added in v0.0.5

func (s *SourceConfig) Validate(ctx context.Context) *apis.FieldError

type SourceResolver

type SourceResolver struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SourceResolverSpec   `json:"spec"`
	Status            SourceResolverStatus `json:"status"`
}

func (*SourceResolver) ConfigChanged added in v0.0.2

func (sr *SourceResolver) ConfigChanged(lastBuild *Build) bool

func (*SourceResolver) DeepCopy

func (in *SourceResolver) DeepCopy() *SourceResolver

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolver.

func (*SourceResolver) DeepCopyInto

func (in *SourceResolver) DeepCopyInto(out *SourceResolver)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SourceResolver) DeepCopyObject

func (in *SourceResolver) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SourceResolver) GetGroupVersionKind

func (*SourceResolver) GetGroupVersionKind() schema.GroupVersionKind

func (SourceResolver) IsBlob

func (sr SourceResolver) IsBlob() bool

func (SourceResolver) IsGit

func (sr SourceResolver) IsGit() bool

func (SourceResolver) IsRegistry

func (sr SourceResolver) IsRegistry() bool

func (*SourceResolver) PollingReady

func (sr *SourceResolver) PollingReady() bool

func (*SourceResolver) Ready

func (sr *SourceResolver) Ready() bool

func (*SourceResolver) ResolvedSource

func (sr *SourceResolver) ResolvedSource(config ResolvedSourceConfig)

func (*SourceResolver) RevisionChanged added in v0.0.3

func (sr *SourceResolver) RevisionChanged(lastBuild *Build) bool

func (*SourceResolver) SourceConfig

func (st *SourceResolver) SourceConfig() SourceConfig

type SourceResolverList

type SourceResolverList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []SourceResolver `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SourceResolverList) DeepCopy

func (in *SourceResolverList) DeepCopy() *SourceResolverList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolverList.

func (*SourceResolverList) DeepCopyInto

func (in *SourceResolverList) DeepCopyInto(out *SourceResolverList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SourceResolverList) DeepCopyObject

func (in *SourceResolverList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SourceResolverSpec

type SourceResolverSpec struct {
	ServiceAccount string       `json:"serviceAccount"`
	Source         SourceConfig `json:"source"`
}

func (*SourceResolverSpec) DeepCopy

func (in *SourceResolverSpec) DeepCopy() *SourceResolverSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolverSpec.

func (*SourceResolverSpec) DeepCopyInto

func (in *SourceResolverSpec) DeepCopyInto(out *SourceResolverSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SourceResolverStatus

type SourceResolverStatus struct {
	duckv1alpha1.Status `json:",inline"`
	Source              ResolvedSourceConfig `json:"source"`
}

func (*SourceResolverStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceResolverStatus.

func (*SourceResolverStatus) DeepCopyInto

func (in *SourceResolverStatus) DeepCopyInto(out *SourceResolverStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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