This repository was archived by the owner on Aug 28, 2025. It is now read-only.
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 4040 env :
4141 KUBEBUILDER_ASSETS :
4242 sh : $(pwd)/{{.LOCAL_BIN}}/setup-envtest use {{.ENVTEST_K8S_VERSION}} --bin-dir $(pwd)/{{.LOCAL_BIN}} -p path
43- GO111MODULE : on
4443 cmds :
4544 - go test ./... {{.ADDITIONAL_COMMAND_ARGS}}
4645 test :
Original file line number Diff line number Diff line change 44 "context"
55 "errors"
66 "reflect"
7- "sort"
87 "strings"
98
109 "github.com/graphql-go/graphql/language/ast"
@@ -149,17 +148,15 @@ func (r *Service) runWatch(
149148 select {
150149 case <- ctx .Done ():
151150 return
152- case resultChannel <- singleObj :
151+ case resultChannel <- singleObj . Object :
153152 }
154153 } else {
155154 // Multiple items mode
156- items := make ([]unstructured. Unstructured , 0 , len (previousObjects ))
155+ items := make ([]map [ string ] any , 0 , len (previousObjects ))
157156 for _ , item := range previousObjects {
158- items = append (items , * item )
157+ items = append (items , item . DeepCopy (). Object )
159158 }
160- sort .Slice (items , func (i , j int ) bool {
161- return items [i ].GetName () < items [j ].GetName ()
162- })
159+
163160 select {
164161 case <- ctx .Done ():
165162 return
You can’t perform that action at this time.
0 commit comments