This repository was archived by the owner on Mar 16, 2024. It is now read-only.
File tree 3 files changed +7
-8
lines changed 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
replace (
6
6
cuelang.org/go => cuelang.org/go v0.4.3
7
+
7
8
github.com/docker/docker => github.com/docker/docker v20.10.3-0.20220121014307-40bb9831756f+incompatible
8
9
github.com/rancher/apiserver => github.com/acorn-io/apiserver-1 v0.0.0-20220608053213-0ffc3be57697
9
10
github.com/rancher/wrangler => github.com/acorn-io/wrangler v0.0.0-20230619194218-746dc7cf6a0c
@@ -14,7 +15,7 @@ require (
14
15
cuelang.org/go v0.5.0
15
16
github.com/AlecAivazis/survey/v2 v2.3.6
16
17
github.com/acorn-io/aml v0.0.0-20230721050626-ddd76a9874fd
17
- github.com/acorn-io/baaah v0.0.0-20230707151126-5d519d272865
18
+ github.com/acorn-io/baaah v0.0.0-20230727135555-ef06bde4f2ed
18
19
github.com/acorn-io/mink v0.0.0-20230523184405-ceaaa366d500
19
20
github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78
20
21
github.com/acorn-io/z v0.0.0-20230714155009-a770ecbbdc45
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpH
94
94
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d /go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo =
95
95
github.com/acorn-io/aml v0.0.0-20230721050626-ddd76a9874fd h1:garYcFPFPRFp7NsY8BPg38OV09pC1DeEYt01lh11JAM =
96
96
github.com/acorn-io/aml v0.0.0-20230721050626-ddd76a9874fd /go.mod h1:UEx5RRLFjryCEHN2pM59+d8A0mPJ3VAxggJOTzPymwg =
97
- github.com/acorn-io/baaah v0.0.0-20230707151126-5d519d272865 h1:BPPGCEBgPxn7crFFWqLDJUlzdHQ23olFkdUqlXd3KA8 =
98
- github.com/acorn-io/baaah v0.0.0-20230707151126-5d519d272865 /go.mod h1:LtwaWrYK/VuGptWxeD5Sgl0sgJV1ksicpTzyLilow1U =
97
+ github.com/acorn-io/baaah v0.0.0-20230727135555-ef06bde4f2ed h1:8qAa5oYrHn39TPoJx8A2+qccR7dRkjqR5zneRS+PqW4 =
98
+ github.com/acorn-io/baaah v0.0.0-20230727135555-ef06bde4f2ed /go.mod h1:LtwaWrYK/VuGptWxeD5Sgl0sgJV1ksicpTzyLilow1U =
99
99
github.com/acorn-io/mink v0.0.0-20230523184405-ceaaa366d500 h1:tiM36bM+iMWuW9HM+YlM1GfNDXC7f565z8Be5epO0qM =
100
100
github.com/acorn-io/mink v0.0.0-20230523184405-ceaaa366d500 /go.mod h1:y6aYj2dF/SlU205bDfA43Y5c9sa/aYr4X5GDqYJzJTU =
101
101
github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78 h1:5zs9L/CXNkuTdJSbhFWczAorbmx67nqlqswx5CQi7XI =
Original file line number Diff line number Diff line change 1
1
package server
2
2
3
3
import (
4
- "github.com/acorn-io/baaah/pkg/clientaggregator"
5
4
"github.com/acorn-io/baaah/pkg/restconfig"
5
+ "github.com/acorn-io/baaah/pkg/runtime/multi"
6
6
"github.com/acorn-io/mink/pkg/server"
7
7
adminapi "github.com/acorn-io/runtime/pkg/apis/admin.acorn.io"
8
8
api "github.com/acorn-io/runtime/pkg/apis/api.acorn.io"
@@ -13,6 +13,7 @@ import (
13
13
apiserver "k8s.io/apiserver/pkg/server"
14
14
"k8s.io/apiserver/pkg/server/options"
15
15
"k8s.io/client-go/rest"
16
+ kclient "sigs.k8s.io/controller-runtime/pkg/client"
16
17
)
17
18
18
19
type Config struct {
@@ -41,10 +42,7 @@ func apiGroups(serverConfig Config) ([]*apiserver.APIGroupInfo, error) {
41
42
if err != nil {
42
43
return nil , err
43
44
}
44
- aggr := clientaggregator .New (c )
45
- aggr .AddGroup (api .Group , localClient )
46
- aggr .AddGroup (adminapi .Group , localClient )
47
- c = aggr
45
+ c = multi .NewWithWatch (c , map [string ]kclient.WithWatch {api .Group : localClient , adminapi .Group : localClient })
48
46
}
49
47
50
48
return registry .APIGroups (c , restConfig , localCfg )
You can’t perform that action at this time.
0 commit comments