Rename hack/*-yamlfmt to -owners-fmt

This commit is contained in:
Tim Hockin
2025-07-14 11:46:22 -07:00
parent 7adcd21148
commit d176808d3a
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ kube::golang::setup_env
cd "${KUBE_ROOT}"
find_files() {
find_owners_files() {
git ls-files \
'OWNERS*' \
'**/OWNERS*' \
@@ -33,4 +33,4 @@ find_files() {
}
go -C "${KUBE_ROOT}/hack/tools" install sigs.k8s.io/yaml/yamlfmt
find_files | xargs yamlfmt -o yaml -w
find_owners_files | xargs yamlfmt -o yaml -w

View File

@@ -15,9 +15,9 @@
# limitations under the License.
# This script checks whether the OWNERS files need to be formatted or not by
# `yamlfmt`. Run `hack/update-yamlfmt.sh` to actually format sources.
# `yamlfmt`. Run `hack/update-owners-fmt.sh` to actually format sources.
#
# Usage: `hack/verify-yamlfmt.sh`.
# Usage: `hack/verify-owners-fmt.sh`.
set -o errexit
@@ -27,4 +27,4 @@ set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/verify-generated.sh"
kube::verify::generated "YAML files need to be formatted" "Please run 'hack/update-yamlfmt.sh'" hack/update-yamlfmt.sh
kube::verify::generated "YAML files need to be formatted" "Please run 'hack/update-owners-fmt.sh'" hack/update-owners-fmt.sh