Skip to content

Commit

Permalink
Merge pull request #1205 from pivotal/clusterbuildpack-inline-image
Browse files Browse the repository at this point in the history
Inline the `image` field for ClusterBuildpack
  • Loading branch information
chenbh authored May 9, 2023
2 parents 6e20ed7 + d8e8976 commit b6eb123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/build/v1alpha2/cluster_buildpack_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/build/v1alpha2/cluster_buildpack_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ func (s *ClusterBuildpackSpec) Validate(ctx context.Context) *apis.FieldError {
}
}

return validate.Image(s.Image).ViaField()
return validate.Image(s.Image)
}

0 comments on commit b6eb123

Please # to comment.