mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
Merge pull request #118066 from BenTheElder/yamlfmt-cleanup
yamlfmt cleanup
This commit is contained in:
commit
9d613da22b
@ -1,4 +1,10 @@
|
|||||||
# See the OWNERS docs at https://go.k8s.io/owners
|
# See the OWNERS docs at https://go.k8s.io/owners
|
||||||
|
|
||||||
|
reviewers:
|
||||||
|
- bentheelder
|
||||||
|
- dims
|
||||||
approvers:
|
approvers:
|
||||||
- dims
|
- dims
|
||||||
|
labels:
|
||||||
|
- sig/testing
|
||||||
|
- sig/contributor-experience
|
||||||
|
@ -28,8 +28,6 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
indent := flag.Int("indent", 2, "default indent")
|
indent := flag.Int("indent", 2, "default indent")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if flag.NArg() > 0 {
|
|
||||||
for _, path := range flag.Args() {
|
for _, path := range flag.Args() {
|
||||||
sourceYaml, err := os.ReadFile(path)
|
sourceYaml, err := os.ReadFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -53,7 +51,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func fetchYaml(sourceYaml []byte) (*yaml.Node, error) {
|
func fetchYaml(sourceYaml []byte) (*yaml.Node, error) {
|
||||||
rootNode := yaml.Node{}
|
rootNode := yaml.Node{}
|
||||||
|
Loading…
Reference in New Issue
Block a user