@@ -29,8 +29,8 @@ import (
29
29
"github.com/sirupsen/logrus"
30
30
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
31
31
"k8s.io/apimachinery/pkg/util/sets"
32
- "k8s.io/apiserver/pkg/apis/apiserver"
33
32
apiserverconfigv1 "k8s.io/apiserver/pkg/apis/apiserver/v1"
33
+ apiserverv1beta1 "k8s.io/apiserver/pkg/apis/apiserver/v1beta1"
34
34
"k8s.io/apiserver/pkg/authentication/user"
35
35
"k8s.io/client-go/util/keyutil"
36
36
)
@@ -785,19 +785,19 @@ func genEncryptionConfigAndState(controlConfig *config.Control) error {
785
785
}
786
786
787
787
func genEgressSelectorConfig (controlConfig * config.Control ) error {
788
- var clusterConn apiserver .Connection
788
+ var clusterConn apiserverv1beta1 .Connection
789
789
790
790
if controlConfig .EgressSelectorMode == config .EgressSelectorModeDisabled {
791
- clusterConn = apiserver .Connection {
792
- ProxyProtocol : apiserver .ProtocolDirect ,
791
+ clusterConn = apiserverv1beta1 .Connection {
792
+ ProxyProtocol : apiserverv1beta1 .ProtocolDirect ,
793
793
}
794
794
} else {
795
- clusterConn = apiserver .Connection {
796
- ProxyProtocol : apiserver .ProtocolHTTPConnect ,
797
- Transport : & apiserver .Transport {
798
- TCP : & apiserver .TCPTransport {
795
+ clusterConn = apiserverv1beta1 .Connection {
796
+ ProxyProtocol : apiserverv1beta1 .ProtocolHTTPConnect ,
797
+ Transport : & apiserverv1beta1 .Transport {
798
+ TCP : & apiserverv1beta1 .TCPTransport {
799
799
URL : fmt .Sprintf ("https://%s:%d" , controlConfig .BindAddressOrLoopback (false , true ), controlConfig .SupervisorPort ),
800
- TLSConfig : & apiserver .TLSConfig {
800
+ TLSConfig : & apiserverv1beta1 .TLSConfig {
801
801
CABundle : controlConfig .Runtime .ServerCA ,
802
802
ClientKey : controlConfig .Runtime .ClientKubeAPIKey ,
803
803
ClientCert : controlConfig .Runtime .ClientKubeAPICert ,
@@ -807,12 +807,12 @@ func genEgressSelectorConfig(controlConfig *config.Control) error {
807
807
}
808
808
}
809
809
810
- egressConfig := apiserver .EgressSelectorConfiguration {
810
+ egressConfig := apiserverv1beta1 .EgressSelectorConfiguration {
811
811
TypeMeta : metav1.TypeMeta {
812
812
Kind : "EgressSelectorConfiguration" ,
813
813
APIVersion : "apiserver.k8s.io/v1beta1" ,
814
814
},
815
- EgressSelections : []apiserver .EgressSelection {
815
+ EgressSelections : []apiserverv1beta1 .EgressSelection {
816
816
{
817
817
Name : "cluster" ,
818
818
Connection : clusterConn ,
0 commit comments