Skip to content

Commit c6c8999

Browse files
Check if any source file related to kubectl plugin changed
1 parent ea1cc38 commit c6c8999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function update_release_json() {
117117
}
118118

119119
function regenerate_public_rbac_multi_cluster() {
120-
if echo "$git_last_changed" | grep -q 'cmd/kubectl-mongodb'; then
120+
if echo "$git_last_changed" | grep -q -e 'cmd/kubectl-mongodb' -e 'pkg/kubectl-mongodb'; then
121121
echo 'regenerating multicluster RBAC public example'
122122
pushd pkg/kubectl-mongodb/common/
123123
EXPORT_RBAC_SAMPLES="true" go test ./... -run TestPrintingOutRolesServiceAccountsAndRoleBindings

0 commit comments

Comments
 (0)