mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-03 20:40:26 -05:00
Rename hack/*-yamlfmt to -owners-fmt
This commit is contained in:
parent
7adcd21148
commit
d176808d3a
2 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ kube::golang::setup_env
|
||||||
|
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
find_files() {
|
find_owners_files() {
|
||||||
git ls-files \
|
git ls-files \
|
||||||
'OWNERS*' \
|
'OWNERS*' \
|
||||||
'**/OWNERS*' \
|
'**/OWNERS*' \
|
||||||
|
|
@ -33,4 +33,4 @@ find_files() {
|
||||||
}
|
}
|
||||||
|
|
||||||
go -C "${KUBE_ROOT}/hack/tools" install sigs.k8s.io/yaml/yamlfmt
|
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.
|
# limitations under the License.
|
||||||
|
|
||||||
# This script checks whether the OWNERS files need to be formatted or not by
|
# 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
|
set -o errexit
|
||||||
|
|
@ -27,4 +27,4 @@ set -o pipefail
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/verify-generated.sh"
|
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
|
||||||
Loading…
Reference in a new issue