mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-05 17:10:27 +00:00
Check whether static cert is already configured in UpdateTransportConfig
- Also update test-cmd.sh to pass a signing ca to the kube controller manager, so CSRs work properly in integration tests. Signed-off-by: Margo Crawford <margaretc@vmware.com> Kubernetes-commit: f015fd66ce95d02cd66efc263eb9e5441b42a17d
This commit is contained in:
committed by
Kubernetes Publisher
parent
0a04e978b0
commit
2b59dabd4c
@@ -1206,6 +1206,13 @@ func TestAuthorizationHeaderPresentCancelsExecAction(t *testing.T) {
|
||||
config.Password = "zelda"
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "cert auth",
|
||||
setTransportConfig: func(config *transport.Config) {
|
||||
config.TLS.CertData = []byte("some-cert-data")
|
||||
config.TLS.KeyData = []byte("some-key-data")
|
||||
},
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user