Merge pull request #2567 from pwittrock/kubectl-krm

Refactor kustomize config command structure
This commit is contained in:
Kubernetes Prow Robot
2020-06-06 09:03:45 -07:00
committed by GitHub
68 changed files with 669 additions and 3846 deletions

View File

@@ -9,7 +9,6 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"sigs.k8s.io/kustomize/kyaml/kio"
. "sigs.k8s.io/kustomize/kyaml/kio"
"sigs.k8s.io/kustomize/kyaml/yaml"
)
@@ -22,7 +21,7 @@ func TestByteWriter(t *testing.T) {
functionConfig string
results string
expectedOutput string
instance kio.ByteWriter
instance ByteWriter
}
testCases := []testCase{

View File

@@ -857,7 +857,7 @@ func ExampleRNode_Elements() {
log.Fatal(err)
}
for i, e := range elements {
fmt.Println(fmt.Sprintf("Element: %d", i))
fmt.Printf("Element: %d\n", i)
fmt.Println(e.MustString())
}
// Output: