diff --git a/pkg/apis/build/v1alpha2/cluster_buildpack_types.go b/pkg/apis/build/v1alpha2/cluster_buildpack_types.go index b364e2084..e5b4b7dac 100644 --- a/pkg/apis/build/v1alpha2/cluster_buildpack_types.go +++ b/pkg/apis/build/v1alpha2/cluster_buildpack_types.go @@ -29,7 +29,7 @@ type ClusterBuildpack struct { // +k8s:openapi-gen=true type ClusterBuildpackSpec struct { // +listType - corev1alpha1.ImageSource `json:"source,omitempty"` + corev1alpha1.ImageSource `json:",inline"` ServiceAccountRef *corev1.ObjectReference `json:"serviceAccountRef,omitempty"` } diff --git a/pkg/apis/build/v1alpha2/cluster_buildpack_validation.go b/pkg/apis/build/v1alpha2/cluster_buildpack_validation.go index d120ba7fe..17248e458 100644 --- a/pkg/apis/build/v1alpha2/cluster_buildpack_validation.go +++ b/pkg/apis/build/v1alpha2/cluster_buildpack_validation.go @@ -24,5 +24,5 @@ func (s *ClusterBuildpackSpec) Validate(ctx context.Context) *apis.FieldError { } } - return validate.Image(s.Image).ViaField() + return validate.Image(s.Image) }