mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-01 15:17:19 +00:00
run hack/update-netparse-cve.sh
Kubernetes-commit: 0cd75e8fec62a2531637e80bb950ac9983cac1b0
This commit is contained in:
committed by
Kubernetes Publisher
parent
9c45b4b2bf
commit
a6edfabde7
@@ -25,6 +25,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"k8s.io/client-go/util/keyutil"
|
||||
netutils "k8s.io/utils/net"
|
||||
)
|
||||
|
||||
func TestMakeCSR(t *testing.T) {
|
||||
@@ -33,7 +34,7 @@ func TestMakeCSR(t *testing.T) {
|
||||
CommonName: "kube-worker",
|
||||
}
|
||||
dnsSANs := []string{"localhost"}
|
||||
ipSANs := []net.IP{net.ParseIP("127.0.0.1")}
|
||||
ipSANs := []net.IP{netutils.ParseIPSloppy("127.0.0.1")}
|
||||
|
||||
keyData, err := ioutil.ReadFile(keyFile)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user