mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
vendor updates
This commit is contained in:
6
vendor/k8s.io/kubernetes/cmd/kubeadm/test/cmd/BUILD
generated
vendored
6
vendor/k8s.io/kubernetes/cmd/kubeadm/test/cmd/BUILD
generated
vendored
@ -22,10 +22,10 @@ go_test(
|
||||
"token_test.go",
|
||||
"version_test.go",
|
||||
],
|
||||
args = ["--kubeadm-path=../../kubeadm"],
|
||||
args = ["--kubeadm-path=$(location //cmd/kubeadm:kubeadm)"],
|
||||
data = ["//cmd/kubeadm"],
|
||||
importpath = "k8s.io/kubernetes/cmd/kubeadm/test/cmd",
|
||||
library = ":go_default_library",
|
||||
embed = [":go_default_library"],
|
||||
rundir = ".",
|
||||
tags = [
|
||||
"integration",
|
||||
"skip",
|
||||
|
4
vendor/k8s.io/kubernetes/cmd/kubeadm/test/cmd/version_test.go
generated
vendored
4
vendor/k8s.io/kubernetes/cmd/kubeadm/test/cmd/version_test.go
generated
vendored
@ -117,12 +117,12 @@ func TestCmdVersionOutputJsonOrYaml(t *testing.T) {
|
||||
|
||||
m := obj.(map[string]interface{})
|
||||
if m["clientVersion"] == nil {
|
||||
t.Errorf("failed to get the infomation of clientVersion from 'kubeadm version %s'", rt.args)
|
||||
t.Errorf("failed to get the information of clientVersion from 'kubeadm version %s'", rt.args)
|
||||
}
|
||||
info := m["clientVersion"].(map[string]interface{})
|
||||
for _, key := range VersionInfo {
|
||||
if len(info[key].(string)) == 0 {
|
||||
t.Errorf("failed to get the infomation of %s from 'kubeadm version %s'", key, rt.args)
|
||||
t.Errorf("failed to get the information of %s from 'kubeadm version %s'", key, rt.args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
4
vendor/k8s.io/kubernetes/cmd/kubeadm/test/util.go
generated
vendored
4
vendor/k8s.io/kubernetes/cmd/kubeadm/test/util.go
generated
vendored
@ -44,7 +44,7 @@ func SetupTempDir(t *testing.T) string {
|
||||
|
||||
// SetupMasterConfigurationFile is a utility function for kubeadm testing that writes a master configuration file
|
||||
// into /config subfolder of a given temporary directory.
|
||||
// The funtion returns the path of the created master configuration file.
|
||||
// The function returns the path of the created master configuration file.
|
||||
func SetupMasterConfigurationFile(t *testing.T, tmpdir string, cfg *kubeadmapi.MasterConfiguration) string {
|
||||
|
||||
cfgPath := filepath.Join(tmpdir, "config/masterconfig.yaml")
|
||||
@ -89,7 +89,7 @@ func SetupEmptyFiles(t *testing.T, tmpdir string, fileNames ...string) {
|
||||
|
||||
// SetupPkiDirWithCertificateAuthorithy is a utility function for kubeadm testing that creates a
|
||||
// CertificateAuthorithy cert/key pair into /pki subfolder of a given temporary directory.
|
||||
// The funtion returns the path of the created pki.
|
||||
// The function returns the path of the created pki.
|
||||
func SetupPkiDirWithCertificateAuthorithy(t *testing.T, tmpdir string) string {
|
||||
caCert, caKey := certtestutil.SetupCertificateAuthorithy(t)
|
||||
|
||||
|
Reference in New Issue
Block a user