File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -650,7 +650,7 @@ func TestCustomOpenApiFieldWithoutMergePatchExtension(t *testing.T) {
650
650
t .Helper ()
651
651
th := kusttest_test .MakeHarness (t )
652
652
writeTestSchema (th , "./" )
653
- th .WriteF ("yetanothercrd_base.yaml" , `
653
+ th .WriteF ("yetanothercrd_base.yaml" , `
654
654
apiVersion: example.com/v1alpha1
655
655
kind: MyCRD
656
656
metadata:
@@ -663,7 +663,7 @@ spec:
663
663
- name: bar
664
664
value: bar
665
665
` )
666
- th .WriteF ("yetanothercrd_patch.yaml" , `
666
+ th .WriteF ("yetanothercrd_patch.yaml" , `
667
667
apiVersion: example.com/v1alpha1
668
668
kind: MyCRD
669
669
metadata:
@@ -674,15 +674,15 @@ spec:
674
674
- name: bar
675
675
value: patched
676
676
` )
677
- th .WriteK ("." , `
677
+ th .WriteK ("." , `
678
678
resources:
679
679
- yetanothercrd_base.yaml
680
680
openapi:
681
681
path: mycrd_schema.json
682
682
patches:
683
683
- path: yetanothercrd_patch.yaml
684
684
` )
685
- m := th .Run ("." , th .MakeDefaultOptions ())
685
+ m := th .Run ("." , th .MakeDefaultOptions ())
686
686
th .AssertActualEqualsExpected (m , `
687
687
apiVersion: example.com/v1alpha1
688
688
kind: MyCRD
@@ -696,5 +696,5 @@ spec:
696
696
- name: bar
697
697
value: patched
698
698
` )
699
- })
699
+ })
700
700
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func Example_arrayReplace() {
47
47
// Output:
48
48
// Arguments to the entrypoint. The docker image's CMD is used if this is...
49
49
// [array]
50
- // []
50
+ // []
51
51
}
52
52
53
53
func Example_arrayElement () {
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ func TestIsAssociativeMultipleStrategy(t *testing.T) {
49
49
50
50
func TestIsAssociativeCrdList (t * testing.T ) {
51
51
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"
55
55
s .Extensions ["x-kubernetes-list-map-keys" ] = keys
56
56
s .Extensions ["x-kubernetes-list-type" ] = "map"
57
57
assert .True (
You can’t perform that action at this time.
0 commit comments