diff --git a/pkg/cmd/config/config_test.go b/pkg/cmd/config/config_test.go index 1ca42642c..36c3b494e 100644 --- a/pkg/cmd/config/config_test.go +++ b/pkg/cmd/config/config_test.go @@ -921,7 +921,7 @@ func testClearLocationOfOrigin(config *clientcmdapi.Config) { } func testSetNilMapsToEmpties(curr reflect.Value) { actualCurrValue := curr - if curr.Kind() == reflect.Ptr { + if curr.Kind() == reflect.Pointer { actualCurrValue = curr.Elem() } diff --git a/pkg/cmd/config/navigation_step_parser.go b/pkg/cmd/config/navigation_step_parser.go index 59587ddb9..cc3ca5bfa 100644 --- a/pkg/cmd/config/navigation_step_parser.go +++ b/pkg/cmd/config/navigation_step_parser.go @@ -115,7 +115,7 @@ func findNameStep(parts []string, typeOptions sets.String) string { // getPotentialTypeValues takes a type and looks up the tags used to represent its fields when serialized. func getPotentialTypeValues(typeValue reflect.Type) (map[string]reflect.Type, error) { - if typeValue.Kind() == reflect.Ptr { + if typeValue.Kind() == reflect.Pointer { typeValue = typeValue.Elem() } diff --git a/pkg/cmd/config/set.go b/pkg/cmd/config/set.go index 09d025d99..1031dd99c 100644 --- a/pkg/cmd/config/set.go +++ b/pkg/cmd/config/set.go @@ -145,7 +145,7 @@ func modifyConfig(curr reflect.Value, steps *navigationSteps, propertyValue stri currStep := steps.pop() actualCurrValue := curr - if curr.Kind() == reflect.Ptr { + if curr.Kind() == reflect.Pointer { actualCurrValue = curr.Elem() } diff --git a/pkg/cmd/get/sorter.go b/pkg/cmd/get/sorter.go index 38eff349f..b083bf4dc 100644 --- a/pkg/cmd/get/sorter.go +++ b/pkg/cmd/get/sorter.go @@ -182,7 +182,7 @@ func isLess(i, j reflect.Value) (bool, error) { return i.Float() < j.Float(), nil case reflect.String: return sortorder.NaturalLess(i.String(), j.String()), nil - case reflect.Ptr: + case reflect.Pointer: return isLess(i.Elem(), j.Elem()) case reflect.Struct: // sort metav1.Time