St. Louis Cardinals manager Mike Shildt was ejected for arguing after reliever Giovanny Gallegos was ordered to switch caps because umpires thought there was sunscreen on the bill.