Fix typo in mount.go (#18575)

heirarchy -> hierarchy
This commit is contained in:
Ikko Eltociear Ashimine 2023-01-05 11:52:42 +09:00 committed by GitHub
parent 9143d2f186
commit 6927478ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1145,9 +1145,9 @@ func (c *Core) remountSecretsEngine(ctx context.Context, src, dst namespace.Moun
return nil
}
// From an input path that has a relative namespace heirarchy followed by a mount point, return the full
// From an input path that has a relative namespace hierarchy followed by a mount point, return the full
// namespace of the mount point, along with the mount point without the namespace related prefix.
// For example, in a heirarchy ns1/ns2/ns3/secret-mount, when currNs is ns1 and path is ns2/ns3/secret-mount,
// For example, in a hierarchy ns1/ns2/ns3/secret-mount, when currNs is ns1 and path is ns2/ns3/secret-mount,
// this returns the namespace object for ns1/ns2/ns3/, and the string "secret-mount"
func (c *Core) splitNamespaceAndMountFromPath(currNs, path string) namespace.MountPathDetails {
fullPath := currNs + path