Skip to content

Commit bb54109

Browse files
committed
Make deepcopy-gen testdata use run script
This makes deepcopy-gen's testdata's go:generate comment use the run script to run controller-gen, meaning people updating it will always get the local copy of controller-gen without having to build it separately.
1 parent 33d53c1 commit bb54109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deepcopy/testdata/cronjob_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
1313
limitations under the License.
1414
*/
1515

16-
//go:generate controller-gen object paths=.
16+
//go:generate ../../../.run-controller-gen.sh object paths=.
1717

1818
// +kubebuilder:object:generate=true
1919
// +groupName=testdata.kubebuilder.io

0 commit comments

Comments
 (0)