Skip to content

Commit b6eb123

Browse files
author
Daniel Chen
authored
Merge pull request buildpacks-community#1205 from pivotal/clusterbuildpack-inline-image
Inline the `image` field for ClusterBuildpack
2 parents 6e20ed7 + d8e8976 commit b6eb123

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/apis/build/v1alpha2/cluster_buildpack_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type ClusterBuildpack struct {
2929
// +k8s:openapi-gen=true
3030
type ClusterBuildpackSpec struct {
3131
// +listType
32-
corev1alpha1.ImageSource `json:"source,omitempty"`
32+
corev1alpha1.ImageSource `json:",inline"`
3333
ServiceAccountRef *corev1.ObjectReference `json:"serviceAccountRef,omitempty"`
3434
}
3535

pkg/apis/build/v1alpha2/cluster_buildpack_validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ func (s *ClusterBuildpackSpec) Validate(ctx context.Context) *apis.FieldError {
2424
}
2525
}
2626

27-
return validate.Image(s.Image).ViaField()
27+
return validate.Image(s.Image)
2828
}

0 commit comments

Comments
 (0)