summaryrefslogtreecommitdiff
path: root/vendor/k8s.io/apimachinery/pkg/types/namespacedname.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/k8s.io/apimachinery/pkg/types/namespacedname.go')
-rw-r--r--vendor/k8s.io/apimachinery/pkg/types/namespacedname.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/vendor/k8s.io/apimachinery/pkg/types/namespacedname.go b/vendor/k8s.io/apimachinery/pkg/types/namespacedname.go
index 88f0de36d..b19750f3a 100644
--- a/vendor/k8s.io/apimachinery/pkg/types/namespacedname.go
+++ b/vendor/k8s.io/apimachinery/pkg/types/namespacedname.go
@@ -16,10 +16,6 @@ limitations under the License.
package types
-import (
- "fmt"
-)
-
// NamespacedName comprises a resource name, with a mandatory namespace,
// rendered as "<namespace>/<name>". Being a type captures intent and
// helps make sure that UIDs, namespaced names and non-namespaced names
@@ -39,5 +35,5 @@ const (
// String returns the general purpose string representation
func (n NamespacedName) String() string {
- return fmt.Sprintf("%s%c%s", n.Namespace, Separator, n.Name)
+ return n.Namespace + string(Separator) + n.Name
}