diff --git a/cmd/kube-apiserver/app/aggregator.go b/cmd/kube-apiserver/app/aggregator.go index 0702029a73a..2e62c8d9e72 100644 --- a/cmd/kube-apiserver/app/aggregator.go +++ b/cmd/kube-apiserver/app/aggregator.go @@ -115,7 +115,6 @@ func createAggregatorConfig( ExtraConfig: aggregatorapiserver.ExtraConfig{ ProxyClientCertFile: commandOptions.ProxyClientCertFile, ProxyClientKeyFile: commandOptions.ProxyClientKeyFile, - PeerCAFile: commandOptions.PeerCAFile, PeerAdvertiseAddress: commandOptions.PeerAdvertiseAddress, ServiceResolver: serviceResolver, ProxyTransport: proxyTransport, diff --git a/pkg/controlplane/instance.go b/pkg/controlplane/instance.go index 9e8acca7ee1..4089fdcd40c 100644 --- a/pkg/controlplane/instance.go +++ b/pkg/controlplane/instance.go @@ -162,10 +162,6 @@ type Extra struct { PeerProxy utilpeerproxy.Interface // PeerEndpointLeaseReconciler updates the peer endpoint leases PeerEndpointLeaseReconciler peerreconcilers.PeerEndpointLeaseReconciler - // PeerCAFile is the ca bundle used by this kube-apiserver to verify peer apiservers' - // serving certs when routing a request to the peer in the case the request can not be served - // locally due to version skew. - PeerCAFile string // PeerAdvertiseAddress is the IP for this kube-apiserver which is used by peer apiservers to route a request // to this apiserver. This happens in cases where the peer is not able to serve the request due to // version skew. If unset, AdvertiseAddress/BindAddress will be used. diff --git a/staging/src/k8s.io/kube-aggregator/pkg/apiserver/apiserver.go b/staging/src/k8s.io/kube-aggregator/pkg/apiserver/apiserver.go index ff7421726d4..cedc9743538 100644 --- a/staging/src/k8s.io/kube-aggregator/pkg/apiserver/apiserver.go +++ b/staging/src/k8s.io/kube-aggregator/pkg/apiserver/apiserver.go @@ -77,11 +77,6 @@ const ( // ExtraConfig represents APIServices-specific configuration type ExtraConfig struct { - // PeerCAFile is the ca bundle used by this kube-apiserver to verify peer apiservers' - // serving certs when routing a request to the peer in the case the request can not be served - // locally due to version skew. - PeerCAFile string - // PeerAdvertiseAddress is the IP for this kube-apiserver which is used by peer apiservers to route a request // to this apiserver. This happens in cases where the peer is not able to serve the request due to // version skew. If unset, AdvertiseAddress/BindAddress will be used.