Skip to content

Commit 767b6d1

Browse files
committed
Fix lint errors (#5)
1 parent 878c3ab commit 767b6d1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

api/krusty/openapicustomschema_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ func TestCustomOpenApiFieldWithoutMergePatchExtension(t *testing.T) {
650650
t.Helper()
651651
th := kusttest_test.MakeHarness(t)
652652
writeTestSchema(th, "./")
653-
th.WriteF("yetanothercrd_base.yaml", `
653+
th.WriteF("yetanothercrd_base.yaml", `
654654
apiVersion: example.com/v1alpha1
655655
kind: MyCRD
656656
metadata:
@@ -663,7 +663,7 @@ spec:
663663
- name: bar
664664
value: bar
665665
`)
666-
th.WriteF("yetanothercrd_patch.yaml", `
666+
th.WriteF("yetanothercrd_patch.yaml", `
667667
apiVersion: example.com/v1alpha1
668668
kind: MyCRD
669669
metadata:
@@ -674,15 +674,15 @@ spec:
674674
- name: bar
675675
value: patched
676676
`)
677-
th.WriteK(".", `
677+
th.WriteK(".", `
678678
resources:
679679
- yetanothercrd_base.yaml
680680
openapi:
681681
path: mycrd_schema.json
682682
patches:
683683
- path: yetanothercrd_patch.yaml
684684
`)
685-
m := th.Run(".", th.MakeDefaultOptions())
685+
m := th.Run(".", th.MakeDefaultOptions())
686686
th.AssertActualEqualsExpected(m, `
687687
apiVersion: example.com/v1alpha1
688688
kind: MyCRD
@@ -696,5 +696,5 @@ spec:
696696
- name: bar
697697
value: patched
698698
`)
699-
})
699+
})
700700
}

kyaml/openapi/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func Example_arrayReplace() {
4747
// Output:
4848
// Arguments to the entrypoint. The docker image's CMD is used if this is...
4949
// [array]
50-
// []
50+
// []
5151
}
5252

5353
func Example_arrayElement() {

kyaml/yaml/schema/schema_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ func TestIsAssociativeMultipleStrategy(t *testing.T) {
4949

5050
func TestIsAssociativeCrdList(t *testing.T) {
5151
s := makeSchema()
52-
// The value should be []interface{}, not []string
53-
keys := make([]interface{}, 1)
54-
keys[0] = "name"
52+
// The value should be []interface{}, not []string
53+
keys := make([]interface{}, 1)
54+
keys[0] = "name"
5555
s.Extensions["x-kubernetes-list-map-keys"] = keys
5656
s.Extensions["x-kubernetes-list-type"] = "map"
5757
assert.True(

0 commit comments

Comments
 (0)