Skip to content

Commit d8e8976

Browse files
author
Bohan Chen
committed
inline the image source for cluster buildpacks
this is what the Buildpack resource do and what the docs and rfc both say. Signed-off-by: Bohan Chen <bohanc@vmware.com>
1 parent 6e20ed7 commit d8e8976

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)