mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #106998 from eltociear/patch-7
Fix typo in get_test.go
This commit is contained in:
commit
083c3ac4e8
@ -50,7 +50,7 @@ type kubeletFlagsOpts struct {
|
|||||||
// (from lower to higher):
|
// (from lower to higher):
|
||||||
// - actual hostname
|
// - actual hostname
|
||||||
// - NodeRegistrationOptions.Name (same as "--node-name" passed to "kubeadm init/join")
|
// - NodeRegistrationOptions.Name (same as "--node-name" passed to "kubeadm init/join")
|
||||||
// - "hostname-overide" flag in NodeRegistrationOptions.KubeletExtraArgs
|
// - "hostname-override" flag in NodeRegistrationOptions.KubeletExtraArgs
|
||||||
// It also returns the hostname or an error if getting the hostname failed.
|
// It also returns the hostname or an error if getting the hostname failed.
|
||||||
func GetNodeNameAndHostname(cfg *kubeadmapi.NodeRegistrationOptions) (string, string, error) {
|
func GetNodeNameAndHostname(cfg *kubeadmapi.NodeRegistrationOptions) (string, string, error) {
|
||||||
hostname, err := kubeadmutil.GetHostname("")
|
hostname, err := kubeadmutil.GetHostname("")
|
||||||
|
@ -168,7 +168,7 @@ func TestGetObjectsWithOpenAPIOutputFormatPresent(t *testing.T) {
|
|||||||
defer tf.Cleanup()
|
defer tf.Cleanup()
|
||||||
codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...)
|
codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...)
|
||||||
|
|
||||||
// overide the openAPISchema function to return custom output
|
// override the openAPISchema function to return custom output
|
||||||
// for Pod type.
|
// for Pod type.
|
||||||
tf.OpenAPISchemaFunc = testOpenAPISchemaData
|
tf.OpenAPISchemaFunc = testOpenAPISchemaData
|
||||||
tf.UnstructuredClient = &fake.RESTClient{
|
tf.UnstructuredClient = &fake.RESTClient{
|
||||||
|
Loading…
Reference in New Issue
Block a user