Merge pull request #124575 from sttts/sttts-unused-peerca
kube-apiserver/aggregator: remove unused PeerCAFile in config
This commit is contained in:
		| @@ -115,7 +115,6 @@ func createAggregatorConfig( | |||||||
| 		ExtraConfig: aggregatorapiserver.ExtraConfig{ | 		ExtraConfig: aggregatorapiserver.ExtraConfig{ | ||||||
| 			ProxyClientCertFile:       commandOptions.ProxyClientCertFile, | 			ProxyClientCertFile:       commandOptions.ProxyClientCertFile, | ||||||
| 			ProxyClientKeyFile:        commandOptions.ProxyClientKeyFile, | 			ProxyClientKeyFile:        commandOptions.ProxyClientKeyFile, | ||||||
| 			PeerCAFile:                commandOptions.PeerCAFile, |  | ||||||
| 			PeerAdvertiseAddress:      commandOptions.PeerAdvertiseAddress, | 			PeerAdvertiseAddress:      commandOptions.PeerAdvertiseAddress, | ||||||
| 			ServiceResolver:           serviceResolver, | 			ServiceResolver:           serviceResolver, | ||||||
| 			ProxyTransport:            proxyTransport, | 			ProxyTransport:            proxyTransport, | ||||||
|   | |||||||
| @@ -162,10 +162,6 @@ type Extra struct { | |||||||
| 	PeerProxy utilpeerproxy.Interface | 	PeerProxy utilpeerproxy.Interface | ||||||
| 	// PeerEndpointLeaseReconciler updates the peer endpoint leases | 	// PeerEndpointLeaseReconciler updates the peer endpoint leases | ||||||
| 	PeerEndpointLeaseReconciler peerreconcilers.PeerEndpointLeaseReconciler | 	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 | 	// 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 | 	// 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. | 	// version skew. If unset, AdvertiseAddress/BindAddress will be used. | ||||||
|   | |||||||
| @@ -77,11 +77,6 @@ const ( | |||||||
|  |  | ||||||
| // ExtraConfig represents APIServices-specific configuration | // ExtraConfig represents APIServices-specific configuration | ||||||
| type ExtraConfig struct { | 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 | 	// 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 | 	// 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. | 	// version skew. If unset, AdvertiseAddress/BindAddress will be used. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot