mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-27 10:19:35 +00:00
Rename hack/*-yamlfmt to -owners-fmt
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user