This repository was archived by the owner on Mar 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 44
55replace (
66 cuelang.org/go => cuelang.org/go v0.4.3
7+
78 github.com/docker/docker => github.com/docker/docker v20.10.3-0.20220121014307-40bb9831756f+incompatible
89 github.com/rancher/apiserver => github.com/acorn-io/apiserver-1 v0.0.0-20220608053213-0ffc3be57697
910 github.com/rancher/wrangler => github.com/acorn-io/wrangler v0.0.0-20230619194218-746dc7cf6a0c
@@ -14,7 +15,7 @@ require (
1415 cuelang.org/go v0.5.0
1516 github.com/AlecAivazis/survey/v2 v2.3.6
1617 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
1819 github.com/acorn-io/mink v0.0.0-20230523184405-ceaaa366d500
1920 github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78
2021 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
9494github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d /go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo =
9595github.com/acorn-io/aml v0.0.0-20230721050626-ddd76a9874fd h1:garYcFPFPRFp7NsY8BPg38OV09pC1DeEYt01lh11JAM =
9696github.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 =
9999github.com/acorn-io/mink v0.0.0-20230523184405-ceaaa366d500 h1:tiM36bM+iMWuW9HM+YlM1GfNDXC7f565z8Be5epO0qM =
100100github.com/acorn-io/mink v0.0.0-20230523184405-ceaaa366d500 /go.mod h1:y6aYj2dF/SlU205bDfA43Y5c9sa/aYr4X5GDqYJzJTU =
101101github.com/acorn-io/namegenerator v0.0.0-20220915160418-9e3d5a0ffe78 h1:5zs9L/CXNkuTdJSbhFWczAorbmx67nqlqswx5CQi7XI =
Original file line number Diff line number Diff line change 11package server
22
33import (
4- "github.com/acorn-io/baaah/pkg/clientaggregator"
54 "github.com/acorn-io/baaah/pkg/restconfig"
5+ "github.com/acorn-io/baaah/pkg/runtime/multi"
66 "github.com/acorn-io/mink/pkg/server"
77 adminapi "github.com/acorn-io/runtime/pkg/apis/admin.acorn.io"
88 api "github.com/acorn-io/runtime/pkg/apis/api.acorn.io"
@@ -13,6 +13,7 @@ import (
1313 apiserver "k8s.io/apiserver/pkg/server"
1414 "k8s.io/apiserver/pkg/server/options"
1515 "k8s.io/client-go/rest"
16+ kclient "sigs.k8s.io/controller-runtime/pkg/client"
1617)
1718
1819type Config struct {
@@ -41,10 +42,7 @@ func apiGroups(serverConfig Config) ([]*apiserver.APIGroupInfo, error) {
4142 if err != nil {
4243 return nil , err
4344 }
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 })
4846 }
4947
5048 return registry .APIGroups (c , restConfig , localCfg )
You can’t perform that action at this time.
0 commit comments