Merge pull request #114044 from andrewsykim/fix-node-proxy-tests

test/e2e_node: set apiserver kubelet preferred addresses
This commit is contained in:
Kubernetes Prow Robot 2022-11-23 14:16:03 -08:00 committed by GitHub
commit 7530baa9a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,8 @@ func (a *APIServer) Start() error {
o.Authentication.ServiceAccounts.Issuers = []string{"https://foo.bar.example.com"} o.Authentication.ServiceAccounts.Issuers = []string{"https://foo.bar.example.com"}
o.Authentication.ServiceAccounts.KeyFiles = []string{saSigningKeyFile.Name()} o.Authentication.ServiceAccounts.KeyFiles = []string{saSigningKeyFile.Name()}
o.KubeletConfig.PreferredAddressTypes = []string{"InternalIP"}
errCh := make(chan error) errCh := make(chan error)
go func() { go func() {
defer close(errCh) defer close(errCh)