File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 40
40
env :
41
41
KUBEBUILDER_ASSETS :
42
42
sh : $(pwd)/{{.LOCAL_BIN}}/setup-envtest use {{.ENVTEST_K8S_VERSION}} --bin-dir $(pwd)/{{.LOCAL_BIN}} -p path
43
- GO111MODULE : on
44
43
cmds :
45
44
- go test ./... {{.ADDITIONAL_COMMAND_ARGS}}
46
45
test :
Original file line number Diff line number Diff line change 4
4
"context"
5
5
"errors"
6
6
"reflect"
7
- "sort"
8
7
"strings"
9
8
10
9
"github.com/graphql-go/graphql/language/ast"
@@ -149,17 +148,15 @@ func (r *Service) runWatch(
149
148
select {
150
149
case <- ctx .Done ():
151
150
return
152
- case resultChannel <- singleObj :
151
+ case resultChannel <- singleObj . Object :
153
152
}
154
153
} else {
155
154
// Multiple items mode
156
- items := make ([]unstructured. Unstructured , 0 , len (previousObjects ))
155
+ items := make ([]map [ string ] any , 0 , len (previousObjects ))
157
156
for _ , item := range previousObjects {
158
- items = append (items , * item )
157
+ items = append (items , item . DeepCopy (). Object )
159
158
}
160
- sort .Slice (items , func (i , j int ) bool {
161
- return items [i ].GetName () < items [j ].GetName ()
162
- })
159
+
163
160
select {
164
161
case <- ctx .Done ():
165
162
return
You can’t perform that action at this time.
0 commit comments