mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
Rename api.Namespace to api.NamespaceValue to avoid name collision
This commit is contained in:
@@ -63,8 +63,8 @@ func NamespaceFrom(ctx Context) (string, bool) {
|
||||
return namespace, ok
|
||||
}
|
||||
|
||||
// Namespace returns the value of the namespace key on the ctx, or the empty string if none
|
||||
func Namespace(ctx Context) string {
|
||||
// NamespaceValue returns the value of the namespace key on the ctx, or the empty string if none
|
||||
func NamespaceValue(ctx Context) string {
|
||||
namespace, _ := NamespaceFrom(ctx)
|
||||
return namespace
|
||||
}
|
||||
|
Reference in New Issue
Block a user